Including -lib command line parameters in ant build.xml -


i have build script requires -lib command line switch so:

ant -lib lib/jsch-20101122.jar ....

this works fine, i'd include command line argument part of build.xml file , make build cleaner.

i'd prefer not include jar in ant_home/bin directory.

is there way it?

i assume, want use scp-task (http://ant.apache.org/manual/tasks/scp.html)

the official doc (http://ant.apache.org/manual/install.html#optionaltasks) optional tasks offers no real alternative (you may want @ classpath alternative, though).

the scp-task not seem have classpath setting.


Comments