Add an embedded distribution to the release build
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Dec 2010 20:35:15 +0000 (20:35 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 2 Dec 2010 20:35:15 +0000 (20:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1041573 13f79535-47bb-0310-9956-ffa450edef68

BUILDING.txt
build.xml

index 6b5eb30..89dc46f 100644 (file)
@@ -133,9 +133,11 @@ The documentation can be easly built:
     cd ${tomcat.source}
     ant extras
 
-(7) Building a full release (as provided via the ASF download pages):
-
+(7) Building the embedded packages.
     cd ${tomcat.source}
-    ant release
+    ant embed
 
+(8) Building a full release (as provided via the ASF download pages):
 
+    cd ${tomcat.source}
+    ant release
index 7ee8c8d..31060cd 100644 (file)
--- a/build.xml
+++ b/build.xml
       </fileset>
     </txt2html>
   </target>
-  <target name="embed" description="Create experimental embedded jars"
+  <target name="embed-jars" description="Create experimental embedded jars"
     depends="build-manifests,compile" >
 
     <mkdir dir="${tomcat.embed}" />
 
   </target>
 
-  <target name="embed-release"
+  <target name="embed"
           description="Creates the experimental embedded release"
-          depends="embed,embed-sources,embed-extras" />
+          depends="embed-jars,embed-sources,embed-extras" >
+
+    <fixcrlf srcdir="${tomcat.embed}" eol="crlf"
+        encoding="ISO-8859-1" fixlast="false" >
+      <patternset refid="text.files" />
+    </fixcrlf>
+    <zip destfile="${tomcat.embed}/${final.name}-embed.zip">
+      <fileset dir="${tomcat.embed}">
+        <include name="**" />
+        <exclude name="*.md5" />
+        <exclude name="*.zip" />
+        <exclude name="*.tar.gz" />
+      </fileset>
+    </zip>
+    <antcall target="md5sum">
+      <param name="file" value="${tomcat.embed}/${final.name}-embed.zip" />
+    </antcall>
+
+    <fixcrlf srcdir="${tomcat.embed}" eol="lf"
+        encoding="ISO-8859-1" fixlast="false" >
+      <patternset refid="text.files" />
+    </fixcrlf>
+    <tar longfile="gnu" compression="gzip"
+         tarfile="${tomcat.embed}/${final.name}-embed.tar.gz">
+      <tarfileset dir="${tomcat.embed}" prefix="${final.name}-embed">
+        <include name="**" />
+        <exclude name="*.md5" />
+        <exclude name="*.zip" />
+        <exclude name="*.tar.gz" />
+      </tarfileset>
+    </tar>
+    <antcall target="md5sum">
+      <param name="file" value="${tomcat.embed}/${final.name}-embed.tar.gz" />
+    </antcall>
+
+  </target>
 
   <target name="test-compile" depends="compile,download-test-compile" >
     <mkdir dir="${test.classes}"/>
     <mkdir dir="${tomcat.release}/v${version}/src" />
   </target>
 
-  <target name="dist-static" depends="dist-prepare, deploy, extras">
+  <target name="dist-static" depends="dist-prepare, deploy, extras, embed">
 
     <!-- Copy the top-level documentation files -->
     <copy todir="${tomcat.dist}" encoding="ISO-8859-1">
@@ -1602,6 +1637,15 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
       </fileset>
     </copy>
 
+    <mkdir dir="${tomcat.release}/v${version}/bin/embed" />
+    <copy todir="${tomcat.release}/v${version}/bin/embed">
+      <fileset dir="${tomcat.embed}">
+        <include name="*.zip"/>
+        <include name="*.tar.gz"/>
+        <include name="*.md5"/>
+      </fileset>
+    </copy>
+
   </target>
 
   <!-- Packages the core zip distro -->