You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-cvs@xml.apache.org by mr...@apache.org on 2006/11/20 05:29:11 UTC

svn commit: r477036 - /xml/commons/trunk/java/external/build.xml

Author: mrglavas
Date: Sun Nov 19 20:29:10 2006
New Revision: 477036

URL: http://svn.apache.org/viewvc?view=rev&rev=477036
Log:
Merging in build.xml changes from the external-extended branch
and adding a separate 'exportsrc.xml.apis' target for packaging
the source of xml-apis.jar only.

Modified:
    xml/commons/trunk/java/external/build.xml

Modified: xml/commons/trunk/java/external/build.xml
URL: http://svn.apache.org/viewvc/xml/commons/trunk/java/external/build.xml?view=diff&rev=477036&r1=477035&r2=477036
==============================================================================
--- xml/commons/trunk/java/external/build.xml (original)
+++ xml/commons/trunk/java/external/build.xml Sun Nov 19 20:29:10 2006
@@ -40,7 +40,7 @@
   <property name="build.classes.dir" value="${build.dir}/classes" />
   <property name="build.docs.dir" value="${build.dir}/docs" />
   <property name="build.javadocs.dir" value="${build.docs.dir}/javadoc" />
-  <property name="external.javadoc.title" value="JAXP 1.3, DOM3, SAX2.0.2(sax2r3)" />
+  <property name="external.javadoc.title" value="JAXP 1.3, DOM3, SAX2.0.2(sax2r3), SAC 1.3" />
 	
   <property name="dist.basename" value="${name.external}-${impl.version}" />
 
@@ -49,13 +49,23 @@
   <property name="docs.dir" value="xdocs" />
   <property name="api.jar.location" value="${build.dir}" />
   <property name="api.jar.name" value="xml-apis.jar" />
+  <property name="api-ext.jar.name" value="xml-apis-ext.jar" />
   <property name="api.jar" value="${api.jar.location}/${api.jar.name}" />
+  <property name="api-ext.jar" value="${api.jar.location}/${api-ext.jar.name}" />
 
   <!-- License and readme files of various types -->
   <property name="licenses.external.dir" value="."/>
   <patternset id="licenses.external">
     <include name="LICENSE.dom-documentation.txt" />
     <include name="LICENSE.dom-software.txt" />
+    <include name="LICENSE.sac.html" />
+    <include name="README.dom.txt" />
+    <include name="LICENSE.sax.txt" />
+    <include name="README.sax.txt" />
+  </patternset>
+  <patternset id="licenses.external.xml.apis">
+    <include name="LICENSE.dom-documentation.txt" />
+    <include name="LICENSE.dom-software.txt" />
     <include name="README.dom.txt" />
     <include name="LICENSE.sax.txt" />
     <include name="README.sax.txt" />
@@ -70,7 +80,7 @@
     <include name="KEYS" />
   </patternset>  
 
-  <target name="all" depends="jar,javadoc,exportsrc,bin.distro"
+  <target name="all" depends="jar,javadoc,exportsrc.all,bin.distro"
     description="Jar external classes, create javadoc, create sources.tar.gz, create binary.tar.gz">
   </target>
 
@@ -113,13 +123,62 @@
     </copy>
 
     <jar jarfile="${api.jar}" 
-        basedir="${build.classes.dir}" 
-        manifest="${build.dir}/manifest.commons"  />
+        manifest="${build.dir}/manifest.commons">
+      <fileset dir="${build.classes.dir}">
+        <exclude name="**/sac/**"/>
+        <exclude name="**/smil/**"/>
+        <exclude name="**/svg/**"/>
+      	<exclude name="license/LICENSE.sac.html"/>
+      </fileset>
+    </jar>
+
+    <echo message="Jarring ${api-ext.jar} from ${build.classes.dir}" />
+    <jar jarfile="${api-ext.jar}">
+      <manifest>
+        <section name="org/w3c/css/sac/">
+          <attribute name="Specification-Title" value="Simple API for CSS"/>
+          <attribute name="Specification-Version" value="1.3"/>
+          <attribute name="Specification-Vendor" value="World Wide Web Consortium"/>
+          <attribute name="Specification-URL" value="http://www.w3.org/Style/CSS/SAC/"/>
+          <attribute name="Implementation-Title" value="org.w3c.css.sac"/>
+          <attribute name="Implementation-Version" value="1.3"/>
+          <attribute name="Implementation-Vendor" value="World Wide Web Consortium"/>
+          <attribute name="Implementation-URL" value="http://www.w3.org/Style/CSS/SAC/"/>
+        </section>
+        <section name="org/w3c/dom/smil/">
+          <attribute name="Specification-Title" value="Document Object Model (DOM) for Synchronized Multimedia Integration Language (SMIL)"/>
+          <!--attribute name="Specification-Version" value="1.0"/-->
+          <attribute name="Specification-Vendor" value="World Wide Web Consortium"/>
+          <attribute name="Specification-URL" value="http://www.w3.org/TR/SMIL2/"/>
+          <attribute name="Implementation-Title" value="org.w3c.dom.smil"/>
+          <!--attribute name="Implementation-Version" value="1.0"/-->
+          <attribute name="Implementation-Vendor" value="World Wide Web Consortium"/>
+          <attribute name="Implementation-URL" value="http://dev.w3.org/cvsweb/java/classes/org/w3c/dom/smil/"/>
+        </section>
+        <section name="org/w3c/dom/svg/">
+          <attribute name="Specification-Title" value="Document Object Model (DOM) for Scalable Vector Graphics (SVG)"/>
+          <attribute name="Specification-Version" value="1.1"/>
+          <attribute name="Specification-Vendor" value="World Wide Web Consortium"/>
+          <attribute name="Specification-URL" value="http://www.w3.org/TR/SVG11/"/>
+          <attribute name="Implementation-Title" value="org.w3c.dom.svg"/>
+          <attribute name="Implementation-Version" value="1.1"/>
+          <attribute name="Implementation-Vendor" value="World Wide Web Consortium"/>
+          <attribute name="Implementation-URL" value="http://www.w3.org/TR/SVG11/java.html"/>
+        </section>
+      </manifest>
+      <fileset dir="${build.classes.dir}">
+        <include name="license/**"/>
+        <exclude name="license/*sax*"/>
+        <include name="**/sac/**"/>
+        <include name="**/smil/**"/>
+        <include name="**/svg/**"/>
+      </fileset>
+    </jar>
   </target>
 
   <target name="javadoc" depends="prepare"
     description="Build javadocs and copy doc over">
-    <javadoc packagenames="org.xml.sax.*,org.w3c.dom.*,javax.xml.*"
+    <javadoc packagenames="org.xml.sax.*,org.w3c.*,javax.xml.*"
       sourcepath="${src.dir}" 
       destdir="${build.javadocs.dir}" 
       version="yes" 
@@ -134,7 +193,7 @@
     </copy>
    </target>
 
-  <target name="exportsrc" depends="prepare"
+  <target name="exportsrc.all" depends="prepare"
     description="Create a simple distribution of sources">
     <!-- Note: this *only* a copy of the .java sources that 
          go into our .jar file, not all our sources! -->
@@ -179,6 +238,55 @@
       </zipfileset>
     </zip>
   </target>
+  
+  <target name="exportsrc.xml.apis" depends="prepare"
+    description="Create a simple distribution of sources">
+    <!-- Note: this *only* a copy of the .java sources that 
+         go into our .jar file, not all our sources! -->
+
+    <patternset id="external-srcs" >
+    <!-- Relative to external/src, which is ${src.dir}  -->
+      <include name="org/"/>
+      <include name="javax/"/>
+      <exclude name="**/sac/**"/>
+      <exclude name="**/smil/**"/>
+      <exclude name="**/svg/**"/>
+    </patternset>
+
+    <tar tarfile="${build.dir}/${name.external}-${impl.version}-src.tar" >
+      <tarfileset dir="${src.dir}">
+        <patternset refid="external-srcs"/>
+      </tarfileset>
+      <tarfileset dir="${build.dir}">
+        <include name="manifest.commons"/>
+      </tarfileset>
+      <tarfileset dir="${licenses.external.dir}">
+        <patternset refid="licenses.external.xml.apis"/>
+      </tarfileset>
+      <tarfileset dir="${licenses.asf.dir}">
+        <patternset refid="licenses.asf"/>
+      </tarfileset>
+    </tar>
+
+    <!-- Xerces would like a zipped version instead for various reasons
+        principally involving CVS limitations.  -->
+    <gzip src="${build.dir}/${name.external}-${impl.version}-src.tar" zipfile="${build.dir}/${name.external}-${impl.version}-src.tar.gz"/>
+    <delete file="${build.dir}/${name.external}-${impl.version}-src.tar" />
+    <zip zipfile="${build.dir}/${name.external}-${impl.version}-src.zip" >
+      <zipfileset dir="${src.dir}">
+        <patternset refid="external-srcs"/>
+      </zipfileset>
+      <zipfileset dir="${build.dir}">
+        <include name="manifest.commons"/>
+      </zipfileset>
+      <zipfileset dir="${licenses.external.dir}">
+        <patternset refid="licenses.external.xml.apis"/>
+      </zipfileset>
+      <zipfileset dir="${licenses.asf.dir}">
+        <patternset refid="licenses.asf"/>
+      </zipfileset>
+    </zip>
+  </target>
 
   <target name="bin.distro" depends="jar,javadoc"
     description="Create a binary distribution for xml-common-external">
@@ -190,7 +298,8 @@
       <fileset dir="${build.docs.dir}"/>
     </copy>
     <copy todir="${build.dir}/${dist.basename}">
-      <fileset dir="${build.dir}" includes="xml-apis.jar"/>
+      <fileset dir="${build.dir}" includes="${api.jar.name}"/>
+      <fileset dir="${build.dir}" includes="${api-ext.jar.name}"/>
       <fileset dir="${build.dir}" includes="manifest.commons"/>  
     </copy>
     <copy todir="${build.dir}/${dist.basename}">
@@ -223,6 +332,7 @@
   <target name="clean" 
       description="Clean the output build area">
     <delete file="${api.jar}"/>
+    <delete file="${api-ext.jar}"/>
     <delete dir="${build.dir}"/>
     <delete file="${src.dir}/org/apache/xmlcommons/Version.java"/>
   </target>