Hello,

I'm wrinting a plugin for Maven, and now with Maven 1.0 i have a strange behavior. The following used to work with RC2, but now i get:

File...... C:\Java\Maven-1.0\cache\maven-sourceforge-plugin-1.3\plugin.jelly
Element... sf:ftpBean
Line...... 26
Column.... 11
Property 'filesIterator' has no write method

Do you have any clue what happening there? Here is the definition of the sf:ftpBean element.
The ${files} variable is defined with a <fileScanner>


  <define:taglib uri="sf">
     <define:jellybean
       name="ftpBean"
       className="net.sourceforge.mavenplugins.sourceforge.FTPBean"
       method="execute">
     </define:jellybean>

     <define:jellybean name="ftp">
       <sf:ftpBean
         site="${site}"
         destDir="${destDir}"
         filesIterator="${files.iterator()}"
         userEmail="${userEmail}"
       />
     </define:jellybean>
 </define:taglib>

And here is a summary of the bean, you can see that the write methode setFilesIterator() exists!

public class FTPBean {

   /**
    * Gets the files.
    * @return the files.
    */
   public Iterator getFilesIterator() {
       if (_files == null) {
           return Collections.EMPTY_LIST.iterator();
       }
       return _files.iterator();
   }

   /**
    * Sets the files.
    * @param files The files to set.
    */
   public void setFilesIterator(Iterator iterator) {
       _files = new ArrayList();
       while (iterator.hasNext()) {
           _files.add(iterator.next());
       }
   }

   // ....
}

Thanks for your help,
Ludovic

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to