build java ant project 1

build java ant project

#This command can be used to build your java ant project
#to get org-netbeans-modules-java-j2seproject-copylibstask.jar go to https://github.com/UchePhilz/ant-build-extra-jar
#add the jar files in a dir and point to it here -Dlibs.CopyLibs.classpath=
ant -f /path/to/project -Dnb.internal.action.name=rebuild -DforceRedeploy=false -Dbrowser.context=/path/to/project -Dj2ee.server.home=$JAVA_HOME -Dlibs.CopyLibs.classpath=/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar clean dist

Here is what the above code is Doing:
1. It’s using the ant command to build the project.
2. It’s passing the path to the project as an argument.
3. It’s passing the path to the org-netbeans-modules-java-j2seproject-copylibstask.jar as an argument.
4. It’s passing the path to the project as an argument.
5. It’s passing the path to the JAVA_HOME as an argument.
6. It’s passing the path to the org-netbeans-modules-java-j2seproject-copylibstask.jar as an argument.
7. It’s passing the clean and dist commands as arguments.

Similar Posts