I have a java application project (ant) under Netbeans and I want to programmatically call the action similar to Netbeans' clean and build (clean the project and than build it) command using something like javac or ant. How am I supposed to do that? I've already look at this but it didn't help me.
1
votes
What a clean build differ from a dirty build?
- Roman C
Sorry, there was an "and" missing, it's clean and build
- HericDenis
Downvoter can please tell me the reason?
- HericDenis
I'm currently in the home office, and running netbeans over an ssh tunnel is awfully slow. For that reason, an option to start netbeans with a command line parameter to automatically clean and build a given project would be very helpful. Writing the ant script myself, as proposed by Paulius, seems like busywork.
- Erich Kitzmueller
1 Answers
1
votes
Netbeans for clean and build is using Ant (If it is not a maven project). Make some research of it (try with Writing a Simple Buildfile) and you will be able to do the same with your project by writing Ant build script for it.