Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSAD and ANT

 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I am new to WSAD.

Meanwhile, I have to build my application using ANT in a DOS window as follows:

C:\S2-TF\ant>setAntHome
C:\S2-TF\tfbuild>ant clean -all
C:\S2-TF\tfbuild>ant

and my setAntHome.bat file looks like:

There must be a way to run ANT to build my applications in WSAD and I do not have to open a DOS window.

Would you help in showing me how to configure WSAD to do it? Thanks.
[ February 28, 2006: Message edited by: Daniel Gee ]
 
Chandra Sagi
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In WSAD, go to Window menu, click showView and select ant. You should see ant view to your right. Click on the icon with ant+ sign and add your build file. After that everything else would be straight forward.

Thanks
Chandu
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

In WSAD, I can see the 'plus' signs (add build file) in the Ant view.

My build file is under the 'C:\S2-TF\tfbuild' directory.

Do I also have to configure WSAD to set JAVA_HOME, set ANT_HOME, and set PATH? Because I have to run the setAntHome.bat (see below) before I run the Ant. How do I configure WSAD about the JAVA_HOME, ANT_HOME, and PATH?

 
Chandra Sagi
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not necessary. I guess since WSAD is build on eclipse should have inbuilt ant in it. You need to simply add your build.xml file to some directory in your WSAD workspace and add it in your ant view. You should be good to go from there without setting any classpaths or running batch files.

Thanks
Chandu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic