wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Customization of ant in WSAD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Customization of ant in WSAD" Watch "Customization of ant in WSAD" New topic
Author

Customization of ant in WSAD

Joe Cheung
Ranch Hand

Joined: Oct 18, 2002
Posts: 104
I found that some files that are necessary to run my java project, says a properties file, in a JAVA source package folder were not copied to the "default output folder" when I built the project. How can I customize the build process to include these files into the corresponding package folder in WSAD?


Joe
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

If you are cleverer than I am, I think you can add a builder to the WSAD project that will cause it to copy the files for you. I've never studied it properly, however, since my production builds are typically done on a non-GUI machine and I require Ant to be able to do these builds from the command line. So the way I do it is create a standalone build.xml file at the top of the project, then right-click on its icon and select "Ant build" off the popup menu.


Customer surveys are for companies who didn't pay proper attention to begin with.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Joe,
If you put them in a source folder, they will get copied to the default output folder.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Customization of ant in WSAD
 
Similar Threads
Re: Strange phenomenon in source folders
Properties file in WAS?? URGENT!!
WSAD ant ant build script
How to create package for web app in Eclipse
Folders in Eclipse Java project