• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

IDEA 4, ANT and FTP Task

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gregg,
There also may be some "option" to have IDEA use an external ANT installation rather than the one it came bundled with.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nathaniel Stoddard:
Gregg,
There also may be some "option" to have IDEA use an external ANT installation rather than the one it came bundled with.


I couldn't find this option, but I did find out that IDEA uses a built in ANT 1.5. I also found out where you can add additional libraries for ANT to use. So I did that. But it still doesn't work.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.)
 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic