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