We solved this problem this way. Suppose your own Ant build script is called "myBuild.xml" and is placed in the same folder as build.xml. Open the build.xml file and replace its contents with:
<?xml version="1.0" encoding="UTF-8"?> <project name="payroll_web_ice_jq" default="default" basedir="."> <condition property="import.path" value="myBuild.xml"> <not><isset property="netbeans.user"/></not> </condition> <condition property="import.path" value="nbproject/build-impl.xml"> <isset property="netbeans.user"/> </condition> <import file="${import.path}" /> </project>
As you can see, we are checking for the existence of the netbeans.user property, which should exist only in Netbeans and not on the command line. It works for us.
source share