When using an out of the box Idea installation and scripting an ant build file, you may get the following error:
Cannot resolve symbol sshexec
Cannot resolve symbol scp
This is because the additional jar that needs this task ie jsch-0.1.55.jar is not in the class path.
A lot of ant task needs additional jar to be able to run. The steps below will show you how to install all of them.
Why ? because:
See install the additional jars
cd %ANT_HOME%
ant -f fetch.xml -Ddest=user
echo %USERPROFILE%\.ant\lib
C:\Users\userName\.ant\lib
Idea reads the directory C:\Users\userName\.ant\lib at start time, you need them to restart Intellij.
Solved ..