• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do I configure Ant? Is it a GUI interface?

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been reading the documentation all afternoon and nothing is clear.
Is it supposed to launch when I put the ant_home in my env. variables path?
How do I launch this thing,etc
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jay,
Once you have set the environment variables, you type "ant" to run the script which launches Ant. You may want to read this JavaWorld article for a more verbose description of how to set up Ant. Sometimes seeing things explained another way helps everything fall into place.

If you are stuck on something in particular, posting the error message may get your more specific help.
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just read your subject. No, it is not a GUI interface.
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks i'll check that link
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean when you say "type in ant"?
Type it in where?
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean when you say "type in ant"?
Type it in where?
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On the command line, in the directory containing your build.xml file.

If you don't have a build.xml file, you'll have to write one... it's a big XML file that contains various "targets" that control whatever you want to do. It helps to see an example of the format ANT expects before trying to write this from scratch... have a look at the tutorial "Hello World with ANT", or look up some open source projects that use ANT and see how they do things.

Alternatively, many IDEs have built-in ANT support, and will let you generate ANT scripts to build your project and run ANT targets in your build.xml through your IDE. Of course, the exact way to do this depends on the IDE you're using...
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't find a build folder anywhere. So you're saying I should just use the command prompt and type in my commands from there?
I might just try to use Eclipse for what I'm trying to do, I'm basically just trying to do J2EE examples.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I can't find a build folder anywhere.


Hmm. Did you create one for your project?


So you're saying I should just use the command prompt and type in my commands from there?
[/QB]


Ant is just a Java applciation. You run it like you would any other.



I might just try to use Eclipse for what I'm trying to do, I'm basically just trying to do J2EE examples.


Its worth persevering with Ant a little; its not that hard once you get up to speed. Working out why something goes wrong with it when running it inside an IDE can be much harder.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure Jay is comfortable with command lines. His questions all sound like someone used to doing everything from a GUI.

Jay, I strongly recommend that you do develop some command-line proficiency, even if you only work with Microsoft Windows. Some things just work better from a simple script than an endlessly-repeated series of manual mouse events.

However, in the short term, I recommend forgoing Ant and just using Eclipse's builtin GUI-based compile and text facilities for your initial Java experiments. It's easier to learn one thing at a time.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic