Re-work the script to make it more Gump friendly
authorbillbarker <billbarker@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Mar 2010 03:52:01 +0000 (03:52 +0000)
committerbillbarker <billbarker@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 12 Mar 2010 03:52:01 +0000 (03:52 +0000)
No functional change for normal builds, but allows skipping a taskdef that Gump doesn't want or need when running tests.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@922136 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index 5c878d7..98932ae 100644 (file)
--- a/build.xml
+++ b/build.xml
     </javac>
 
     <!-- Add sources for examples -->
+    <antcall target="examples-sources" />
+
+    <copy file="${tomcat-dbcp.jar}" todir="${tomcat.build}/lib"
+      failonerror="false"/>
+    <copy file="${jasper-jdt.jar}" todir="${tomcat.build}/lib" />
+
+  </target>
+
+  <target name="examples-sources" description="Create examples sources"
+          unless="examples.sources.skip" >
     <taskdef name="txt2html"
              classname="org.apache.tomcat.buildutil.Txt2Html"
              classpath="${tomcat.classes}" />
         <exclude name="source.jsp"/>
       </fileset>
     </txt2html>
-
-    <copy file="${tomcat-dbcp.jar}" todir="${tomcat.build}/lib"
-      failonerror="false"/>
-    <copy file="${jasper-jdt.jar}" todir="${tomcat.build}/lib" />
-
   </target>
-
   <target name="embed" description="Create experimental embedded jars"
     depends="build-manifests,compile" >