I downloaded the commons-net library, put it in my ant/lib folder. I can run the ftp task no problem from the command line. But in IDEA I get "Could not create task or type of type ftp" And the editor shows errors in my build.xml because of the ftp task. Does anyone know how I can fix this? Thanks.
Gregg, I've never used IDEA 4. But, could it be using its own installation of Ant. I know other IDEs have their own. So, if you put the commons-net library in YOUR ANT's lib directory, it wouldn't have any impact on your IDE's. Possibly? I use NetBeans--it's the same way.
Thats a good suggestion. But I'm not sure if IDEA uses it's own or not. I looked it IDEA's lib folder and there is an ant.jar file. So I put my commons-net.jar in the lib folder as well, and still getting the same results.
Gregg, You may want to check this page out: web page found through Google. What version of Ant would you like to use? (The 3rd from bottom post seems to have a nice solution -- try it out. I'll keep my fingers crossed for you.)
You can add the jar file to your IDEA project's classpath, then make sure that you have set the property on the build.xml file (from within IDEA) to include your project's classpath when IDEA runs your xml script.
Rob, I'm glad you responded to me because I had almost forgotten about this thread and I solved my problem tonight. IDEA uses Ant 1.5. commons-net won't work with 1.5. I had to go out and find NetComponent.jar and add that to my ant build properties class-path inside of IDEA. Now all is well with the world.