Ant and SCP task

Hi

Running IDEA 6.0.4

Wondering why IDEA is marking the scp task in Ant as unknownthis is an optional task which (according to the Ant manual) is "packaged together with the core Ant tasks". It's dependent on the JSch JAR file, which is available in IDEA's Ant directory (IDEA_HOME/lib/ant). Do I need a taskdef for this? I tried adding the jsch.jar to the Build classpath (in the Ant tool properties dialog) to no effect. I'm sure I'm missing something obvious, sorry


TIA
Patrick

3 comments
Comment actions Permalink

Did you ever get an answer for this? I'm having exactly the same problem - the only optional task I need; the only one that isn't there! I've tried adding the jsch.jar file (the actual implementation, mind you) to the Ant home, as well as specifying it in the "additional classpath" for my build script. No luck so far.

0
Comment actions Permalink

Hello Kurt,

Are you using IDEA 7?

Please, select your script in ant build window, then see Properties dialog
/ Execution tab. In "Run with ant" section press "Set default" button. There
you can see ant configurations. Make sure that one you have selected for
your script really includes jsch.jar.

Did you ever get an answer for this? I'm having exactly the same
problem - the only optional task I need; the only one that isn't
there! I've tried adding the jsch.jar file (the actual implementation,
mind you) to the Ant home, as well as specifying it in the "additional
classpath" for my build script. No luck so far.

Alexander.


1
Comment actions Permalink

I'm sorry; I should have responded - this worked for me Alex. Thanks.

0

Please sign in to leave a comment.