[aXSL-commit] SF.net SVN: axsl: [476] trunk/axsl/lib
An API for XSL-FO.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-04-29 21:29:15
|
Revision: 476 Author: victormote Date: 2006-04-29 14:28:50 -0700 (Sat, 29 Apr 2006) ViewCVS: http://svn.sourceforge.net/axsl/?rev=476&view=rev Log Message: ----------- 1. Add build target that creates the needed SVG jar file. 2. Replace the old SVG lib jar file and comments with newly-generated one. Modified Paths: -------------- trunk/axsl/axsl-area-out/.classpath trunk/axsl/axsl-fotree/.classpath trunk/axsl/axsl-graphic/.classpath trunk/axsl/axsl-pdf/.classpath trunk/axsl/scripts/build.xml Added Paths: ----------- trunk/axsl/lib/svg-1.1-readme.txt trunk/axsl/lib/svg-1.1.jar Removed Paths: ------------- trunk/axsl/lib/svg-1_1-readme.txt trunk/axsl/lib/svg-1_1.jar Modified: trunk/axsl/axsl-area-out/.classpath =================================================================== --- trunk/axsl/axsl-area-out/.classpath 2006-04-29 18:40:39 UTC (rev 475) +++ trunk/axsl/axsl-area-out/.classpath 2006-04-29 21:28:50 UTC (rev 476) @@ -5,6 +5,6 @@ <classpathentry kind="src" path="/axslFont"/> <classpathentry kind="src" path="/axslGraphic"/> <classpathentry kind="src" path="/axslCommon"/> - <classpathentry kind="var" path="AXSL_LIB_ROOT/svg-1_1.jar"/> + <classpathentry kind="var" path="AXSL_LIB_ROOT/svg-1.1.jar"/> <classpathentry kind="output" path="build/eclipse"/> </classpath> Modified: trunk/axsl/axsl-fotree/.classpath =================================================================== --- trunk/axsl/axsl-fotree/.classpath 2006-04-29 18:40:39 UTC (rev 475) +++ trunk/axsl/axsl-fotree/.classpath 2006-04-29 21:28:50 UTC (rev 476) @@ -6,6 +6,6 @@ <classpathentry kind="src" path="/axslGraphic"/> <classpathentry kind="src" path="/axslCommon"/> <classpathentry kind="src" path="/axslText"/> - <classpathentry kind="var" path="AXSL_LIB_ROOT/svg-1_1.jar"/> + <classpathentry kind="var" path="AXSL_LIB_ROOT/svg-1.1.jar"/> <classpathentry kind="output" path="build/eclipse"/> </classpath> Modified: trunk/axsl/axsl-graphic/.classpath =================================================================== --- trunk/axsl/axsl-graphic/.classpath 2006-04-29 18:40:39 UTC (rev 475) +++ trunk/axsl/axsl-graphic/.classpath 2006-04-29 21:28:50 UTC (rev 476) @@ -2,6 +2,6 @@ <classpath> <classpathentry kind="src" path="src/java"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="var" path="AXSL_LIB_ROOT/svg-1_1.jar"/> + <classpathentry kind="var" path="AXSL_LIB_ROOT/svg-1.1.jar"/> <classpathentry kind="output" path="build/eclipse"/> </classpath> Modified: trunk/axsl/axsl-pdf/.classpath =================================================================== --- trunk/axsl/axsl-pdf/.classpath 2006-04-29 18:40:39 UTC (rev 475) +++ trunk/axsl/axsl-pdf/.classpath 2006-04-29 21:28:50 UTC (rev 476) @@ -4,6 +4,6 @@ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry combineaccessrules="false" kind="src" path="/axslFont"/> <classpathentry combineaccessrules="false" kind="src" path="/axslGraphic"/> - <classpathentry kind="var" path="AXSL_LIB_ROOT/svg-1_1.jar"/> + <classpathentry kind="var" path="AXSL_LIB_ROOT/svg-1.1.jar"/> <classpathentry kind="output" path="build/eclipse"/> </classpath> Added: trunk/axsl/lib/svg-1.1-readme.txt =================================================================== --- trunk/axsl/lib/svg-1.1-readme.txt (rev 0) +++ trunk/axsl/lib/svg-1.1-readme.txt 2006-04-29 21:28:50 UTC (rev 476) @@ -0,0 +1,20 @@ +Notes for svg-1.1.jar +===================== +There does not seem to be a standard jar file containing the SVG +bindings for java. + +The SVG jar file distributed with aXSL was built using the "svg-lib" +target of the aXSL Ant build script. See the script for documentation +of the sources of the build. Essentially the build downloads the +java bindings from www.w3c.org, then compiles a bare minimum subset +of the classes needed for aXSL. + +The substance of the contents of this jar file can be found in other +distributions. For example, Apache Batik contains these same class +files. Many applications will not need to distribute this jar file +because they will have the same class files in other library jar files +already. + +Victor Mote, April 29, 2006 + +# Last Line of Memo. # Property changes on: trunk/axsl/lib/svg-1.1-readme.txt ___________________________________________________________________ Name: svn:keywords + "Author Id Rev Date URL" Name: svn:eol-style + native Added: trunk/axsl/lib/svg-1.1.jar =================================================================== (Binary files differ) Property changes on: trunk/axsl/lib/svg-1.1.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Deleted: trunk/axsl/lib/svg-1_1-readme.txt =================================================================== --- trunk/axsl/lib/svg-1_1-readme.txt 2006-04-29 18:40:39 UTC (rev 475) +++ trunk/axsl/lib/svg-1_1-readme.txt 2006-04-29 21:28:50 UTC (rev 476) @@ -1,4 +0,0 @@ -The svg-1_1.jar file was created by downloading Batik 1.5.1, -building it, and then creating a jar file from the svg build -files compiled during that build. - Deleted: trunk/axsl/lib/svg-1_1.jar =================================================================== (Binary files differ) Modified: trunk/axsl/scripts/build.xml =================================================================== --- trunk/axsl/scripts/build.xml 2006-04-29 18:40:39 UTC (rev 475) +++ trunk/axsl/scripts/build.xml 2006-04-29 21:28:50 UTC (rev 476) @@ -90,7 +90,7 @@ <!-- =================================================================== --> <!-- Creates the class package --> <!-- =================================================================== --> - <target name="package" depends="compile, style" + <target name="package" depends="clean, compile, style, javadoc-api" description="Generates the jar files (default target)"> <echo message="Creating the jar file ${build.dir}/${name}.jar"/> @@ -190,6 +190,63 @@ </target> <!-- =================================================================== --> + <!-- Build the SVG library --> + <!-- There is no standard SVG jar file, so we build what we need from --> + <!-- the W3C source bindings here. --> + <!-- =================================================================== --> + <target name="svg-lib" description="Build the SVG library" depends="init"> + <property name="svg.version" value="1.1"/> + <property name="build.svg" location="${build.dir}/svg"/> + <property name="svg.zip" location="${build.svg}/svg-java-binding.zip"/> + <property name="smil.zip" location="${build.svg}/smil-java-binding.zip"/> + <property name="svg.src" location="${build.svg}/src/org/w3c/dom/svg"/> + <property name="svg.classes" location="${build.svg}/classes"/> + <delete dir="${build.svg}"/> + <mkdir dir="${svg.src}"/> + <mkdir dir="${svg.classes}"/> + <get src="http://www.w3.org/TR/SVG11/java-binding.zip" + dest="${svg.zip}"/> + <unzip src="${svg.zip}" dest="${svg.src}"/> + <delete file="${svg.zip}"/> + <delete> + <fileset dir="${svg.src}" includes="**/*.java"> + <exclude name="**/SVGDocument.java"/> + <exclude name="**/SVGElement.java"/> + <exclude name="**/SVGSVGElement.java"/> + <exclude name="**/SVGTests.java"/> + <exclude name="**/SVGLangSpace.java"/> + <exclude name="**/SVGRect.java"/> + <exclude name="**/SVGStringList.java"/> + <exclude name="**/SVGException.java"/> + <exclude name="**/SVGTransform.java"/> + <exclude name="**/SVGPoint.java"/> + <exclude name="**/SVGMatrix.java"/> + <exclude name="**/SVGAngle.java"/> + <exclude name="**/SVGLength.java"/> + <exclude name="**/SVGNumber.java"/> + <exclude name="**/SVGViewSpec.java"/> + <exclude name="**/SVGAnimatedLength.java"/> + <exclude name="**/SVGTransformList.java"/> + <exclude name="**/SVGFitToViewBox.java"/> + <exclude name="**/SVGAnimatedPreserveAspectRatio.java"/> + <exclude name="**/SVGAnimatedRect.java"/> + <exclude name="**/SVGZoomAndPan.java"/> + <exclude name="**/SVGLocatable.java"/> + <exclude name="**/SVGStylable.java"/> + <exclude name="**/SVGPreserveAspectRatio.java"/> + <exclude name="**/SVGExternalResourcesRequired.java"/> + <exclude name="**/SVGAnimatedBoolean.java"/> + <exclude name="**/SVGAnimatedString.java"/> + </fileset> + </delete> + <javac destdir="${svg.classes}" + srcdir="${svg.src}"/> + <jar jarfile="${build.dir}/svg-${svg.version}.jar" + basedir="${svg.classes}"/> + <delete dir="${build.svg}"/> + </target> + + <!-- =================================================================== --> <!-- Clean targets --> <!-- =================================================================== --> <target name="clean" depends="init" description="Cleans the build directory"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |