title: Weird error in using Ant
body: <p>This is my build.xml using ant.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project name="compile" default="css.concatenate" basedir="."&gt;
  &lt;property name="charset" value="utf-8"/&gt;
  
  &lt;!-- compile LESS --&gt;
  
  &lt;target name="css.concatenate"&gt;
      &lt;concat destfile="${basedir}/src/main/webapp/cons/cons.less"&gt;
          &lt;fileset dir="${basedir}/src/main/webapp/less"&gt;
              &lt;include name="*.less"/&gt;
          &lt;/fileset&gt;
      &lt;/concat&gt;
      &lt;echo&gt;cons is done!&lt;/echo&gt;
  &lt;/target&gt;
  
  &lt;target name="lessc" depends="css.concatenate"&gt;
      &lt;echo&gt;now in compression&lt;/echo&gt;
      &lt;java classname="CpLess" fork="true"&gt;
          &lt;arg value="${basedir}/src/main/webapp/cons"/&gt;&lt;!-- input folder that contains less file --&gt;
          &lt;arg value="${basedir}/src/main/webapp/css"/&gt;&lt;!-- output folder --&gt;
          &lt;classpath&gt;
              &lt;pathelement location="${basedir}/lib/commons-logging.jar"/&gt;
              &lt;pathelement location="${basedir}/lib/js.jar"/&gt;
              &lt;pathelement location="${basedir}/lib/lesscss-engine.jar"/&gt;
              &lt;pathelement location="${basedir}/lib/yuicompressor.jar"/&gt;
              &lt;pathelement location="${basedir}/lib/zkjszips.jar"/&gt;
              &lt;pathelement location="${basedir}/lib/zkless.jar"/&gt;
              &lt;pathelement location="${basedir}/lib/zul.jar"/&gt; &lt;!-- only needed if using _zkmixins.less --&gt;
          &lt;/classpath&gt;
      &lt;/java&gt;
  &lt;/target&gt;
  
  &lt;target name="rename" depends="lessc"&gt;
      &lt;echo&gt;renaming...&lt;/echo&gt;
      &lt;rename src="${basedir}/src/main/webapp/css/cons.css.dsp" dest="${basedir}/src/main/webapp/css/core.css"/&gt;
      &lt;delete file="${basedir}/src/main/webapp/css/cons.css.dsp.src"/&gt;
      &lt;echo&gt;rename done&lt;/echo&gt;
  &lt;/target&gt;
  
  
  &lt;target name="trasition" &gt;
              &lt;echo&gt; in trasition &lt;/echo&gt;
  
  &lt;/target&gt;
  
  
  
  &lt;/project&gt;
  </code></pre>
  
  <p>When I run this, it comes into the error like this:</p>
  
  <pre><code>Buildfile: C:\Users\di_yu\workspace\lessCompiler\build.xml
  css.concatenate:
   [echo] cons is done!
  lessc:
   [echo] now in compression
   [java] Compiling...      C:\Users\di_yu\workspace\lessCompiler\src\main\webapp\cons\cons.less
  css.concatenate:
   [echo] cons is done!
  css.concatenate:
   [echo] cons is done!
  lessc:
   [echo] now in compression
   [java] Compiling...    C:\Users\di_yu\workspace\lessCompiler\src\main\webapp\cons\cons.less
   rename:
   [echo] renaming...
   [rename] DEPRECATED - The rename task is deprecated.  Use move instead.
   [delete] Deleting:  C:\Users\di_yu\workspace\lessCompiler\src\main\webapp\css\cons.css.dsp.src
   [echo] rename done
   trasition:
   [echo]  in trasition 
  
  BUILD FAILED
  Target "precompile-templates" does not exist in the project "compile". 
  
  Total time: 4 seconds
  </code></pre>
  
  <p>As you can see, it says "precompile-templates" target is not exist. However, I didn't call this task at all. I just delete it from my build.xml and there are no other targets related to it. How does the error come? PS: I use eclipse's run as ANT to run this build.xml.</p>