I am writing my first automation script in groovy and I ended up at a checkpoint. When using the AntBuilder class to run sshexec (), I run the following error:
: Problem: failed to create task or type sshexec Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.SSHExec was not found. This looks like one of Ant optional components. Action: Check that the appropriate optional JAR exists in -ANT_HOME\lib -the IDE Ant configuration dialogs Do not panic, this is a common problem. The commonest cause is a missing JAR. This is not a bug; it is a configuration problem
So far, the best I have found for this is to use
Grape.grab(group : "com.jcraft", module : "jsch", classLoader : this.class.classLoader.rootLoader) Grape.grab(group:"ant", module:"ant-jsch", classLoader:this.class.classLoader.rootLoader)
to download the necessary modules. However, I would like to exclude the delay time of Grape loading banks from the remote Maven repository.
Is there a way to load and save modules for future use, perhaps in JAVA_PATH or something like that?
Ryan source share