title: problem in build.xml
body: <p>My build.xml is building successfully.But it is not creating or copying all the folders and files. It took only 1 sec for building. I think it have to to round about 1 min. I tried to find out whats wrong by giving echo in different point. I could see that when I put echo somewhere it show the message in the echo two time,somewhere it is not showing. I doubt it is going to torque build.xml file in the project while execution. I am pasting the build.xml here. Please help</p>
  
  
  
  <p></p>
  
  <pre><code>&lt;property name="build.home" value="build/jsp" /&gt;
  &lt;property name="tomcat.home" location="../Tomcat 5.0/" /&gt;
  &lt;path id="project.class.path"&gt;
      &lt;fileset dir="./lib/"&gt;
          &lt;include name="**/*.jar" /&gt;
      &lt;/fileset&gt;
  &lt;/path&gt;
  
  &lt;target name="reltag"&gt;
      &lt;tstamp&gt;
          &lt;format property="now" pattern="d MMM yyyy HH:mm" /&gt;
      &lt;/tstamp&gt;
      &lt;property name="reltag" value="Built date: ${now}" /&gt;
  &lt;/target&gt;
  
  &lt;target name="dev" depends="compile" description="Builds for development"&gt;
      &lt;mkdir dir="jsp/WEB-INF/lib" /&gt;
      &lt;mkdir dir="jsp/WEB-INF/classes" /&gt;
      &lt;copy todir="jsp/WEB-INF/lib"&gt;
          &lt;fileset dir="lib"&gt;
              &lt;exclude name="**/CVS/*" /&gt;
          &lt;/fileset&gt;
      &lt;/copy&gt;
  
      &lt;copy todir="jsp/WEB-INF/classes"&gt;
          &lt;fileset dir="classes"&gt;
              &lt;exclude name="**/CVS/*" /&gt;
          &lt;/fileset&gt;
      &lt;/copy&gt;
  &lt;/target&gt;
  
  &lt;target name="compile" depends="myproject-gen,reltag"&gt;
      &lt;copy file="setup/Version.java.template" tofile="java/myproject/Version.java" overwrite="true"&gt;
          &lt;filterset&gt;
              &lt;filter token="VERSION" value="${reltag}" /&gt;
          &lt;/filterset&gt;
      &lt;/copy&gt;
      &lt;mkdir dir="classes" /&gt;
      &lt;depend srcdir="java" destdir="classes" cache="depcache" /&gt;
      &lt;javac srcdir="java" destdir="classes"&gt;
          &lt;classpath refid="project.class.path" /&gt;
      &lt;/javac&gt;
  &lt;/target&gt;
  
  &lt;target name="myproject-gen" description="Generates torque classes and SQL for myproject"&gt;
      &lt;!-- generate the java files --&gt;
      &lt;ant dir="torque" target="om" /&gt;
      &lt;antcall target="myproject-sql-mysql" /&gt;
  &lt;/target&gt;
  
  &lt;!-- generate the schema.sql script for MySQL --&gt;
  &lt;target name="myproject-sql-mysql" depends="myproject-sql-mysql-check" unless="mysql.schema.up.to.date"&gt;
      &lt;echo message="Generating SQL file for MySQL" /&gt;
      &lt;ant dir="torque" target="sql"&gt;
          &lt;property name="torque.database" value="mysql" /&gt;
          &lt;property name="torque.runOnlyOnSchemaChange" value="false" /&gt;
      &lt;/ant&gt;
      &lt;move file="sql/gen/myproject-schema.sql" tofile="sql/gen/myproject-schema-mysql.sql" overwrite="true" /&gt;
      &lt;copy file="sql/gen/myproject-schema-mysql.sql" tofile="jsp/admin/database.sql" overwrite="true"/&gt;
      &lt;copy file="sql/init.sql" tofile="jsp/admin/init.sql" overwrite="true" /&gt;
  &lt;/target&gt;
  
  &lt;!-- check if we need to generate the sql file --&gt;
  &lt;target name="myproject-sql-mysql-check"&gt;
      &lt;uptodate property="mysql.schema.up.to.date" targetfile="sql/gen/myproject-schema-mysql.sql" srcfile="torque/myproject-schema.xml" /&gt;
  &lt;/target&gt;
  
  
  // when i gave the echo inside this target block I was not able to get it and when i gave  the mkdir outside this block it create the folder
  
  &lt;target name="myproject-war" depends="compile-jsp"&gt;
      &lt;mkdir dir="build" /&gt;
      &lt;jar destfile="build/myproject.war" basedir="build/jsp" /&gt;
  &lt;/target&gt;
  
  &lt;target name="prepare_for_war_file"&gt;
      &lt;mkdir dir="build\jsp-classes\org\apache\jsp" /&gt;
      &lt;!--
      &lt;move todir="${build.home}/WEB-INF/classes/org/apache/jsp"&gt;
              &lt;fileset dir="${build.home}"&gt;
              &lt;include name="*.jsp"/&gt;
              &lt;/fileset&gt;
      &lt;/move&gt; 
      --&gt;
      &lt;!-- copy everything which is not a jsp to admin directory --&gt;
      &lt;copy tofile="${build.home}/admin/database.sql"&gt;
          &lt;fileset file="sql/gen/*-schema-mysql.sql" /&gt;
      &lt;/copy&gt;
      &lt;copy file="sql/init.sql" todir="${build.home}/admin" /&gt;
      &lt;mkdir dir="${build.home}/pdb_files" /&gt;
      &lt;!-- copy images directory --&gt;
      &lt;copy todir="${build.home}/images"&gt;
          &lt;fileset dir="jsp/images" /&gt;
      &lt;/copy&gt;
      &lt;copy todir="${build.home}/hand"&gt;
          &lt;fileset dir="jsp/hand" /&gt;
      &lt;/copy&gt;
      &lt;!-- copy javascript directory --&gt;
      &lt;copy todir="${build.home}/javascript"&gt;
          &lt;fileset dir="jsp/javascript" /&gt;
      &lt;/copy&gt;
      &lt;!-- copy META-INF directory --&gt;
      &lt;copy todir="${build.home}/META-INF"&gt;
          &lt;fileset dir="jsp/META-INF" /&gt;
      &lt;/copy&gt;
      &lt;!-- copy stylesheet directory --&gt;
      &lt;copy todir="${build.home}/stylesheet"&gt;
          &lt;fileset dir="jsp/stylesheet" /&gt;
      &lt;/copy&gt;
      &lt;!-- copy WEB-INF directory  --&gt;
      &lt;copy todir="${build.home}/WEB-INF/classes/"&gt;
          &lt;fileset dir="classes/" includes="**" /&gt;
      &lt;/copy&gt;
      &lt;copy todir="${build.home}/WEB-INF/lib"&gt;
          &lt;fileset dir="lib" includes="*.*" excludes="Cabwiz" /&gt;
      &lt;/copy&gt;
      &lt;!-- copy license and properties --&gt;
      &lt;!--&lt;copy file="WebContent/myproject.license" todir="${build.home}"/&gt; --&gt;
      &lt;copy file="jsp/myproject.properties" todir="${build.home}" /&gt;
      &lt;!-- move jsp classes to the correct package structure so war file will work when deployed --&gt;
      &lt;move todir="${build.home}/WEB-INF/classes/org/apache/jsp"&gt;
          &lt;fileset dir="${build.home}" includes="**/*.class" excludes="WEB-INF/**" /&gt;
      &lt;/move&gt;
      &lt;antcall target="create-web_XML"&gt;
      &lt;/antcall&gt;
  &lt;/target&gt;
  
  &lt;target name="create-web_XML"&gt;
      &lt;loadfile property="generated.web.xml" srcFile="jsp/WEB-INF/generated_web.xml" /&gt;
      &lt;copy file="jsp/WEB-INF/web_template.xml" tofile="jsp/WEB-INF/web.xml.deployable" overwrite="true"&gt;
          &lt;filterset begintoken="&amp;lt;!--" endToken="--&amp;gt;"&gt;
              &lt;filter token="GENERATED_WEB_XML" value="${generated.web.xml}" /&gt;
          &lt;/filterset&gt;
      &lt;/copy&gt;
      &lt;copy file="jsp/WEB-INF/web.xml.deployable" tofile="build/jsp/WEB-INF/web.xml" /&gt;
  &lt;/target&gt;
  
  &lt;target name="compile-jsp" depends="dev"&gt;
      &lt;antcall target="prepare_for_war_file"&gt;
      &lt;/antcall&gt;
      &lt;property environment="env" /&gt;
      &lt;taskdef classname="org.apache.jasper.JspC" name="jasper2"&gt;
          &lt;classpath id="jspc.classpath"&gt;
              &lt;pathelement location="${java.home}/../lib/tools.jar" /&gt;
              &lt;fileset dir="${env.tomcat.home}/bin2"&gt;
                  &lt;include name="*.jar" /&gt;
              &lt;/fileset&gt;
              &lt;fileset dir="${env.tomcat.home}/server/lib"&gt;
                  &lt;include name="*.jar" /&gt;
              &lt;/fileset&gt;
              &lt;fileset dir="${env.tomcat.home}/common/lib"&gt;
                  &lt;include name="*.jar" /&gt;
              &lt;/fileset&gt;
          &lt;/classpath&gt;
      &lt;/taskdef&gt;
      &lt;mkdir dir="java/jsp-src" /&gt;
      &lt;jasper2 validateXml="false" package="org.apache.jsp" uriroot="jsp" webXmlFragment="jsp/WEB-INF/generated_web.xml" outputDir="java/jsp-src" /&gt;
      &lt;jspc srcdir="jsp" destdir="java/jsp-src"&gt;
          &lt;include name="include/**/*.jsp" /&gt;
          &lt;include name="**/*.jsp" /&gt;
      &lt;/jspc&gt;
      &lt;mkdir dir="build/jsp-classes" /&gt;
      &lt;property environment="env" /&gt;
      &lt;javac destdir="build/jsp/WEB-INF/classes" optimize="off" debug="on" failonerror="true" srcdir="java/jsp-src" excludes="**/*.smap"&gt;
          &lt;classpath&gt;
              &lt;pathelement location="classes" /&gt;
              &lt;fileset dir="lib"&gt;
                  &lt;include name="*.jar" /&gt;
              &lt;/fileset&gt;
              &lt;pathelement location="${env.tomcat.home}/common/classes" /&gt;
              &lt;fileset dir="${env.tomcat.home}/common/lib"&gt;
                  &lt;include name="*.jar" /&gt;
              &lt;/fileset&gt;
              &lt;pathelement location="${env.tomcat.home}/shared/classes" /&gt;
              &lt;fileset dir="${env.tomcat.home}/shared/lib"&gt;
                  &lt;include name="*.jar" /&gt;
              &lt;/fileset&gt;
              &lt;fileset dir="${env.tomcat.home}/bin"&gt;
                  &lt;include name="*.jar" /&gt;
              &lt;/fileset&gt;
          &lt;/classpath&gt;
          &lt;include name="**" /&gt;
          &lt;!--&lt;exclude name="**/includes/*menu_jsp.java" /&gt;--&gt;
      &lt;/javac&gt;
  &lt;/target&gt;
  
  &lt;target name="clean" description="Deletes the java/classes dir and torque base objects"&gt;
      &lt;delete dir="classes" /&gt;
      &lt;delete dir="${build.home}" /&gt;
      &lt;delete&gt;
          &lt;fileset file="build/*" /&gt;
      &lt;/delete&gt;
      &lt;delete dir="java/myproject/torque/map" /&gt;
      &lt;delete dir="java/jsp-src" /&gt;
      &lt;delete dir="jsp/WEB-INF/classes" /&gt;
      &lt;delete dir="jsp/WEB-INF/lib" /&gt;
      &lt;delete&gt;
          &lt;fileset dir="java/myproject/torque" includes="Base*.java" /&gt;
      &lt;/delete&gt;
      &lt;touch file="torque/myproject-schema.xml" /&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p></p>