title: Can't Build NetBeans/Ant Project
body: <p>I have inherited a project originally written in NetBeans using Ant to build.  I am an Eclipse user and have used Ant but do not completely understand the NetBeans specific way of using Ant.  I know it uses a <code>build-impl.xml</code> file (imported into the <code>build.xml</code>), but am at a loss as to how that file is <code>generated/updated</code> by the IDE.</p>
  
  <p>I made some minor changes to a couple of classes and want to build a jar.  I tried running the <code>"clean"</code> and <code>"jar"</code> targets in Eclipse from both the <code>build.xml</code> and <code>build-impl.xml</code> but get the following errors:</p>
  
  <pre><code>BUILD FAILED
  C:\Devel\Projects\MyProject\nbproject\build-impl.xml:661: The following error occurred while executing this line:
  C:\Devel\Projects\MyProject\nbproject\build-impl.xml:337: Compile failed; see the compiler error output for details.
  </code></pre>
  
  <p>Line 661 is the j2seproject3 element in this target:</p>
  
  <pre><code>&lt;target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"&gt;
      &lt;j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/&gt;
      &lt;copy todir="${build.classes.dir}"&gt;
          &lt;fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/&gt;
      &lt;/copy&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>Line 337 is the javac line from this target:</p>
  
  <pre><code>&lt;target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"&gt;
      &lt;macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"&gt;
          &lt;attribute default="${src.dir}" name="srcdir"/&gt;
          &lt;attribute default="${build.classes.dir}" name="destdir"/&gt;
          &lt;attribute default="${javac.classpath}" name="classpath"/&gt;
          &lt;attribute default="${javac.processorpath}" name="processorpath"/&gt;
          &lt;attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/&gt;
          &lt;attribute default="${includes}" name="includes"/&gt;
          &lt;attribute default="${excludes}" name="excludes"/&gt;
          &lt;attribute default="${javac.debug}" name="debug"/&gt;
          &lt;attribute default="${empty.dir}" name="sourcepath"/&gt;
          &lt;attribute default="${empty.dir}" name="gensrcdir"/&gt;
          &lt;element name="customize" optional="true"/&gt;
          &lt;sequential&gt;
              &lt;property location="${build.dir}/empty" name="empty.dir"/&gt;
              &lt;mkdir dir="${empty.dir}"/&gt;
              &lt;javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}"&gt;
                  &lt;src&gt;
                      &lt;dirset dir="@{gensrcdir}" erroronmissingdir="false"&gt;
                          &lt;include name="*"/&gt;
                      &lt;/dirset&gt;
                  &lt;/src&gt;
                  &lt;classpath&gt;
                      &lt;path path="@{classpath}"/&gt;
                  &lt;/classpath&gt;
                  &lt;compilerarg line="${endorsed.classpath.cmd.line.arg}"/&gt;
                  &lt;compilerarg line="${javac.compilerargs}"/&gt;
                  &lt;customize/&gt;
              &lt;/javac&gt;
          &lt;/sequential&gt;
      &lt;/macrodef&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>I have no idea what these two targets are about and why they're failing.  I downloaded NetBeans7 hoping that building it there would succeed, but get the same errors.</p>
  
  <p>Can I safely remove these targets from my build?  Do I need to update the project.properties file?</p>
  
  <p>Any help getting this to build is appreciated.</p>