ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: ftp task
Date Wed, 30 Jul 2003 10:30:21 GMT
I have not clue about your error.

Maybe you downloaded ant1.6alpha on a bad day ?

I am running on CVS head, and I can use the ftp task.

I am not an expert, but can it be that you have a file other than ant.jar in
your classpath when you are running ant and containing a pirate
defaults.properties file ?

Otherwise I am puzzled.

Antoine

"Blanchet Samuel" <sblanchet@sopragroup.com> schrieb im Newsbeitrag
news:2B77C2DE2313254A9065D1C3B68A0CFE32E5C3@nt1022.pa.sopra...


I'm using Ant1.6a

In the default.properties, the value is :

ftp=org.apache.tools.ant.taskdefs.optional.net.FTP

and the org/apache/tools/ant/taskdefs/optional/net/FTP.class
is present in my distro.

The full error is :

E:\Travail\livraisons\livraison.xml:442: No public execute() in class
org.apache
.commons.net.ftp.FTP
        at
org.apache.tools.ant.TaskAdapter.checkTaskClass(TaskAdapter.java:108)

        at org.apache.tools.ant.Project.checkTaskClass(Project.java:960)
        at org.apache.tools.ant.Project.addTaskDefinition(Project.java:922)
        at
org.apache.tools.ant.taskdefs.Taskdef.addDefinition(Taskdef.java:82)
        at
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:259)

        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:189)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:225)
        at org.apache.tools.ant.Task.perform(Task.java:398)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1405)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:414)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:144)

        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:225)
        at org.apache.tools.ant.Task.perform(Task.java:398)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1405)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1279)
        at org.apache.tools.ant.Main.runBuild(Main.java:611)
        at org.apache.tools.ant.Main.start(Main.java:198)
        at org.apache.tools.ant.Main.main(Main.java:245)


 Sam


-----Message d'origine-----
De : news [mailto:news@main.gmane.org]De la part de Antoine Levy-Lambert
Envoyé : mercredi 30 juillet 2003 11:52
À : user@ant.apache.org
Objet : Re: ftp task


"Blanchet Samuel" <sblanchet@sopragroup.com> schrieb im Newsbeitrag
news:2B77C2DE2313254A9065D1C3B68A0CFE32E5C2@nt1022.pa.sopra...
Hi,

>I've downloaded and installed the commons-net-1.0.0.jar library

Are you on ant1.6 or ant 1.5 ?

for ant1.5 you need netcomponents, not commons-net.


>No public execute() in class org.apache.commons.net.ftp.FTP

The error message No public execute() would happen if ant is trying to
execute a task, and the corresponding class does not have an execute method.

I would understand this message if someone had written in

org/apache/tools/taskdefs/defaults.properties
ftp=org.apache.commons.net.ftp.FTP

Which version of ant are you using ?

If you are using ant1.6alpha, check whether the
org/apache/tools/ant/taskdefs/optional/net/FTP.class
is present in the distro that you are using.

Send the output of ant -verbose, it might help.

Antoine




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message