1 Reply Latest reply: Oct 3, 2013 7:13 PM by user10981010 RSS

    Portal Ant Build script is taking 90 minutes to build war and ear file

    Venkat Sarvabatla

      The below ant build script is taking 85 minutes . Please review and give your feed back.

       

      <target name="build" depends="init" description="compiles the source files; does not package the results">

         

          <if>

            <isreference refid="apt.factory.path"/>

            <then>

              <mkdir dir="${apt.src.output.dir}"/>

              <for-each-java-src-path>

                <if>

                  <available file="${.java.src.dir}"/>

                  <then>

                    <mkdir dir="${.java.src.output}"/>

                    <apt

                      sourcepath="${java.sourcepath}"

                      srcdir="${.java.src.dir}"

                      includes="${.java.src.include}"

                      excludes="${.java.src.exclude}"

                      destdir="${.java.src.output}"

                      preprocessdir="${apt.src.output.dir}"

                      classpathref="java.classpath"

                      factorypathref="apt.factory.path"

                      options="${apt.options}"

                      compile="false"

                      memoryMaximumSize="1024m"/>

                  </then>

                </if>

              </for-each-java-src-path>

            </then>

          </if>