This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- build file for mso.jar --> |
| 3 |
<project name="msoparser" default="mso.jar" basedir="."> |
| 4 |
<!-- The latest version of the POI library can be found at |
| 5 |
http://poi.apache.org |
| 6 |
http://archive.apache.org/dist/poi/release/bin/ |
| 7 |
Download it and adapt the path below to use it. |
| 8 |
--> |
| 9 |
<property name="classpath" location="bin;/usr/share/java/jaxp_parser_impl.jar;/usr/share/java/xercesImpl.jar;lib/poi-3.7-20101029.jar" /> |
| 10 |
<target name="compileGenerator"> |
| 11 |
<mkdir dir="bin" /> |
| 12 |
<copy file="src/mso.xml" todir="bin" /> |
| 13 |
<copy file="src/mso.xsd" todir="bin" /> |
| 14 |
<javac source="1.6" srcdir="src" destdir="bin" excludes="mso/javaparser/**" classpath="${classpath}" debug="on" debuglevel="source" /> |
| 15 |
</target> |
| 16 |
<target name="generateParsers" depends="compileGenerator" description="compile the source "> |
| 17 |
<dependset> |
| 18 |
<srcfilelist dir="src" files="mso.xsd;mso.xml" /> |
| 19 |
<targetfilelist dir="src/mso/javaparser" files="GeneratedMsoParser.java" /> |
| 20 |
</dependset> |
| 21 |
<java classname="mso.generator.ParserGeneratorRunner" classpath="${classpath}" /> |
| 22 |
</target> |
| 23 |
<target name="compileJavaParser" depends="generateParsers" description="compile the source "> |
| 24 |
<javac source="1.6" srcdir="src" destdir="bin" excludes="mso/javaparser" classpath="${classpath}" debug="on" debuglevel="source" /> |
| 25 |
</target> |
| 26 |
<target name="testJavaParser" depends="compileJavaParser" description="compile the source "> |
| 27 |
<java classname="mso.javaparser.ParserTester" classpath="${classpath}" /> |
| 28 |
</target> |
| 29 |
<target name="mso.jar" depends="testJavaParser" description="package the compiled code in a jar"> |
| 30 |
<jar destfile="mso.jar" basedir="bin" includes="mso/generator/**,mso.xml,mso.xsd" level="9"> |
| 31 |
<manifest> |
| 32 |
<attribute name="Main-Class" value="mso.generator.ParserGeneratorRunner" /> |
| 33 |
</manifest> |
| 34 |
</jar> |
| 35 |
</target> |
| 36 |
<target name="clean"> |
| 37 |
<delete dir="bin" /> |
| 38 |
<delete dir="mso.jar" /> |
| 39 |
</target> |
| 40 |
</project> |