ANT: Optional Tasks

I try to set up ANT to user ftp...

Copied
commons-net-1.1.0.jar
to %JAVA_HOME%/lib and added to the "Ant additional classpath" like read in the forum ;).

But still doesn't work: "Could not create task or type of type: ftp"

Same problem exists with "scp". Can anybody help me?

0
10 comments
Avatar
Permanently deleted user

Johannes Schneider wrote:

I try to set up ANT to user ftp...

Copied
commons-net-1.1.0.jar
to %JAVA_HOME%/lib and added to the "Ant additional classpath" like read in the forum ;).

But still doesn't work: "Could not create task or type of type: ftp"

Same problem exists with "scp". Can anybody help me?


just a wild guess, but IDEA ships with ANT 1.5.x and perhaps the FTP
tasks uses a different lib than commons-net. This is at least true for
the telnet task which used a different lib back in 1.5.x where ANT 1.6
now uses commons-net

Marc

0
Avatar
Permanently deleted user

Ant 1.5 used NetComponents.jar

0
Avatar
Permanently deleted user

Hello Johannes,

FTP task requires a dependant library: NetComponents.jar, put it into
the Ant's additional classpath.

If you want ftp task to be recognized in build.xml file, put
NetComponents.jar into IDEA_HOME\lib and restart IDEA.

You can download the required library from
http://www.savarese.org/oro/index.html#NetComponents .

Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

-


Original Message-----
From: "Johannes Schneider" <idea@johannes-schneider.info>
Sent: Monday, February 16, 2004, 11:22:24 AM
To: jetbrains.intellij.eap
Subject: ANT: Optional Tasks

I try to set up ANT to user ftp...

Copied
commons-net-1.1.0.jar
to %JAVA_HOME%/lib and added to the "Ant additional classpath" like read in the forum ;).

But still doesn't work: "Could not create task or type of type: ftp"

Same problem exists with "scp". Can anybody help me?

0

I think you can also click on the properties icon in the 'ant build' tool window (second icon from the right in 4.0) and add the library to the additional paths tab.

At least that worked for me.

0
Avatar
Permanently deleted user

"Ronald Kinion" <no_mail@jetbrains.com> wrote in message
news:27813066.1077140414732.JavaMail.itn@is.intellij.net...

I think you can also click on the properties icon in the 'ant build' tool

window (second icon from the right in 4.0) and add the library to the
additional paths tab.
>

At least that worked for me.


Yes, it's much more proper way then copying files to IDEA lib directory.
JARs specified in Build File Properties dialog will be used to run ant from
IDEA.

--

Dmitry Peshehonov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"



0
Avatar
Permanently deleted user

Does it work in IDEA 4.5?
Seems like not (at least in build #2233). :(
p.s. Works pretty fine in 4.0.3

0

It would be a great improvement if you could detect the additionally entered JARs and parse them at runtime, rather that forcing a restart of IDEA.

Developing and then testing custom Ant tasks would be made much simpler by this alteration.

Nick

0
Avatar
Permanently deleted user

It would be great if, like the Plugin Manager, you could choose which ANT tasks to download and install.

v. nice.

-Tim

0

You could always write a plugin to do this. {:-)

Nick

0
Avatar
Permanently deleted user

I've found that something like this works, (without restarting idea):
than later on in your task you say: ]]>

0

Please sign in to leave a comment.