| View previous topic :: View next topic |
| Author |
Message |
bakb
Joined: 02 Nov 2009 Posts: 3
|
Posted: Mon Nov 02, 2009 7:25 pm Post subject: Using NetBeans/Ant with multiple, custom build.xml targets |
|
|
Hi there,
I have a single project (a Tomcat webapp) that has several distributions which includes different files for each client, with optional custom tasks, one for each customer I install to.
In the past, I used a MakeFile and was able to have a separate target for each client, i.e. 'make dist-client1', 'make dist-client2', etc. This was very useful because I was delievering the same product to different customers. I also just had a make target that I would use for development, whereby a WAR file wouldn't be made, as I didn't need one seeing as my Tomcat server just runs what's in the build/web subfolder of my project.
That having been said, how could I implement this behaviour with NetBeans/Ant? Translating the actual MakeFile to a build.xml is not an issue, but how could I point netbeans to the right target (i.e. 'dist-client1', 'dist-client2', etc.)? As I see it, NetBeans can only handle two targets: build and clean&build; I hope I don't have to specify a project for each client!
Many thanks for your insight! |
|
| Back to top |
|
 |
bakb
Joined: 02 Nov 2009 Posts: 3
|
Posted: Tue Nov 03, 2009 4:44 pm Post subject: |
|
|
BUMP
Need to know how to call specific build targets from NetBeans besides build and build&clean for a Java webapp. |
|
| Back to top |
|
 |
bakb
Joined: 02 Nov 2009 Posts: 3
|
Posted: Thu Nov 05, 2009 3:22 pm Post subject: |
|
|
BUMP  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|