ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry V. Streepy, Jr." <>
Subject FTP optional task won't compile
Date Wed, 25 Jul 2001 16:51:22 GMT
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\
in cannot be applied to (,
     [exec]     [javac]             fs.setupDirectoryScanner(ds, project);
     [exec]     [javac]               ^
     [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);

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) 
970/626-4425 (fax)    

View raw message