FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Using NetBeans/Ant with multiple, custom build.xml targets

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
bakb



Joined: 02 Nov 2009
Posts: 3

PostPosted: Mon Nov 02, 2009 7:25 pm    Post subject: Using NetBeans/Ant with multiple, custom build.xml targets Reply with quote

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
View user's profile Send private message
bakb



Joined: 02 Nov 2009
Posts: 3

PostPosted: Tue Nov 03, 2009 4:44 pm    Post subject: Reply with quote

BUMP

Need to know how to call specific build targets from NetBeans besides build and build&clean for a Java webapp.
Back to top
View user's profile Send private message
bakb



Joined: 02 Nov 2009
Posts: 3

PostPosted: Thu Nov 05, 2009 3:22 pm    Post subject: Reply with quote

Exclamation BUMP Exclamation
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB