I'm hitting a strange error trying to get ANT (1.3 with a couple of
patches) to compile the FTP optional task.

I downloaded the NetComponents.jar and placed it into the lib/optional
directory in my ant source tree.

I then to a build and I get this:

     [exec] build:
     [exec]     [javac] Compiling 2 source files to 
D:\LE\thirdparty\jakarta-ant-1.3\build\classes
     [exec]     [javac] 
D:\LE\thirdparty\jakarta-ant-1.3\src\main\org\apache\tools\ant\taskdefs\optional\net\FTP.java:386:
 
setupDirectoryScanner(org.apache.tools.ant.DirectoryScanner,org.apache.tools.ant.Project)
 in org.apache.tools.ant.types.FileSet cannot be applied to 
(org.apache.tools.ant.FileScanner,org.apache.tools.ant.Project)
     [exec]     [javac]             fs.setupDirectoryScanner(ds, project);
     [exec]     [javac]               ^
     [exec]
     [exec] BUILD FAILED
     [exec]     [javac] 1 error

Looking at the source, it appears to be a simple typo.

        FileScanner ds;

        if (action == SEND_FILES) {
            ds = fs.getDirectoryScanner(project);
        } else {
            ds = new FTPDirectoryScanner(ftp);
            fs.setupDirectoryScanner(ds, project);
            ds.scan();
        }                        

I think ds should be declared as a DirectoryScanner.

But my question is "how has this ever worked for anyone?"

Am I missing something?

-- 
Larry V. Streepy, Jr.
Chief Technical Officer and VP of Engineering

Health Language, Inc.  -- "We speak the language of healthcare"

970/626-5028 (office)           mailto:[EMAIL PROTECTED]
970/626-4425 (fax)              http://www.healthlanguage.com

Reply via email to