This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes WSAD and ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WSAD and ANT" Watch "WSAD and ANT" New topic
Author

WSAD and ANT

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
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

Joined: May 05, 2005
Posts: 162
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

Joined: Aug 29, 2003
Posts: 202
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

Joined: May 05, 2005
Posts: 162
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSAD and ANT
 
Similar Threads
E WSVR0009E: Error occurred during startup
Upgrading JDK version to JDK 1.4.2_12 in WSAD 5.1.2 including server
Error while starting the server
Problem starting WTE in WSAD 5.0.1
wsStartServer ANT task