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
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Customization of ant in WSAD" Watch "Customization of ant in WSAD" New topic

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?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17168

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.

An IDE is no substitute for an Intelligent Developer.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32649

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Customization of ant in WSAD
It's not a secret anymore!