rge.jlatexmath.0.9.6.source-code.build.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="ISO-8859-1"?> <project name="jlatexmath" basedir="." default="buildJar"> <import file="version.xml"/> <!-- Init --> <target name="init" description="Initialize build"> <property name="project.root.dir" value="." /> <property name="fop.base.dir" value="${project.root.dir}/plugin/fop" /> <property name="doc.dir" value="${project.root.dir}/doc/" /> <property name="project.src.basedir" value="${project.root.dir}/src/" /> <property name="class.dir" value="/org/scilab/forge/jlatexmath" /> <property name="project.src.dir" value="${project.root.dir}/src/${class.dir}" /> <property name="project.bin.dir" value="${project.root.dir}/bin" /> <property name="project.ex.dir" value="${project.root.dir}/examples" /> <property name="ex.basic" value="${project.ex.dir}/Basic" /> <property name="ex.macros" value="${project.ex.dir}/Macros" /> <property name="package.dir" value="dist/" /> <property name="output.jar.dir" value="${package.dir}" /> <property name="jarfile" value="${package.dir}/jlatexmath-${version}.jar" /> <mkdir dir="${project.bin.dir}"/> <mkdir dir="${project.bin.dir}/cyrillic"/> <mkdir dir="${project.bin.dir}/greek"/> <mkdir dir="${package.dir}"/> <mkdir dir="${ex.macros}/bin"/> </target> <!-- Info --> <target name="info" depends="init" description="Display configuration"> <echo message="**********************" /> <echo message="* JLaTeXMath *" /> <echo message="**********************" /> <echo message="Author : Calixte Denizet" /> <echo message="Script version : 1.0.0" /> <echo message="Ant version : ${ant.version}" /> <echo message="Java version : ${ant.java.version}" /> <echo message="Java home directory : ${java.home}" /> <echo message="Java classpath : ${java.class.path}" /> </target> <!-- Remove all temp directories and/or files--> <target name="clean" depends="info" description="Removes all generated files"> <delete dir="${project.bin.dir}"/> <delete dir="${doc.dir}"/> <delete> <fileset dir="${ex.basic}" includes="**/Example*.png **/*.class"/> </delete> <delete dir="${ex.macros}/bin"> <fileset dir="${ex.macros}" includes="**/*.png **/*.class **/*.jar"/> </delete> </target> <target name="example" depends="buildJar"> <javac includeantruntime="false" srcdir="${ex.basic}" destdir="${ex.basic}" debug="on" source="${java_version}" target="${java_version}" classpath="${output.jar.dir}/jlatexmath-${version}.jar:${output.jar.dir}/jlm_cyrillic.jar:${output.jar.dir}/jlm_greek.jar"> </javac> <java fork="true" classpath="${ex.basic}:${output.jar.dir}/jlatexmath-${version}.jar:${output.jar.dir}/jlm_cyrillic.jar:${output.jar.dir}/jlm_greek.jar" dir="${ex.basic}" className="Main"/> </target> <target name="Macros" depends="compile"> <javac includeantruntime="false" srcdir="${ex.macros}" destdir="${ex.macros}/bin" debug="on" source="${java_version}" target="${java_version}" classpath="${output.jar.dir}/jlatexmath-${version}.jar"> </javac> <move file="${ex.macros}/bin/Main.class" todir="${ex.macros}"/> <jar jarfile="${ex.macros}/Foo.jar" basedir="${ex.macros}/bin"/> <java fork="true" classpath="${ex.macros}:${ex.macros}/Foo.jar:${output.jar.dir}/jlatexmath-${version}.jar" dir="${ex.macros}" className="Main"/> </target> <target name="examples" depends="example"/> <!-- Compile source files --> <target name="compileWithoutAlph" depends="init"> <javac includeantruntime="false" srcdir="${project.src.dir}" destdir="${project.bin.dir}" debug="on" source="${java_version}" target="${java_version}" excludes="cyrillic/** greek/** **/WebStartAlphabetRegistration.java"> <!--compilerarg value="-Xlint"/--> </javac> </target> <!-- Compile source files --> <target name="compile" depends="init"> <javac includeantruntime="false" srcdir="${project.src.dir}" destdir="${project.bin.dir}" debug="on" source="${java_version}" target="${java_version}" excludes="**/WebStartAlphabetRegistration.java"> <!--compilerarg value="-Xlint"/--> </javac> </target> <target name="compileMinimal" depends="compileWithoutAlph, cyrillic, greek"> <javac includeantruntime="false" srcdir="${project.src.dir}" destdir="${project.bin.dir}" debug="on" source="${java_version}" target="${java_version}" classpath="${project.bin.dir}/cyrillic:${project.bin.dir}/greek"> <include name="**/WebStartAlphabetRegistration.java"/> </javac> </target> <target name="cyrillic" depends="init"> <javac includeantruntime="false" srcdir="${project.src.dir}/cyrillic" destdir="${project.bin.dir}/cyrillic" debug="on" source="${java_version}" target="${java_version}" classpath="${project.bin.dir}"> <!--compilerarg value="-Xlint"/--> </javac> <copy todir="${project.bin.dir}/cyrillic/${class.dir}/cyrillic" > <fileset dir="${project.src.dir}/cyrillic"> <exclude name="**/*.java"/> <exclude name="LICENSE"/> <exclude name="COPYING"/> <exclude name="MANIFEST.MF"/> </fileset> </copy> <mkdir dir="${project.bin.dir}/cyrillic/META-INF" /> <copy file="${project.src.dir}/cyrillic/LICENSE" todir="${project.bin.dir}/cyrillic/META-INF" /> <copy file="${project.src.dir}/cyrillic/COPYING" todir="${project.bin.dir}/cyrillic/META-INF" /> <jar jarfile="dist/jlm_cyrillic.jar" basedir="${project.bin.dir}/cyrillic" manifest="${project.src.dir}/cyrillic/MANIFEST.MF"/> </target> <target name="greek" depends="init"> <javac includeantruntime="false" srcdir="${project.src.dir}/greek" destdir="${project.bin.dir}/greek" debug="on" source="${java_version}" target="${java_version}" classpath="${project.bin.dir}"> <!--compilerarg value="-Xlint"/--> </javac> <copy todir="${project.bin.dir}/greek/${class.dir}/greek" > <fileset dir="${project.src.dir}/greek"> <exclude name="**/*.java"/> <exclude name="LICENSE"/> <exclude name="COPYING"/> <exclude name="MANIFEST.MF"/> </fileset> </copy> <mkdir dir="${project.bin.dir}/greek/META-INF" /> <copy file="${project.src.dir}/greek/LICENSE" todir="${project.bin.dir}/greek/META-INF" /> <copy file="${project.src.dir}/greek/COPYING" todir="${project.bin.dir}/greek/META-INF" /> <jar jarfile="dist/jlm_greek.jar" basedir="${project.bin.dir}/greek" manifest="${project.src.dir}/greek/MANIFEST.MF"/> </target> <!-- Build JAR files--> <target name="minimal" depends="buildJarMinimal"/> <target name="buildJarMinimal" depends="compileMinimal"> <copy todir="${project.bin.dir}${class.dir}" > <fileset dir="${project.src.dir}"> <exclude name="**/*.java"/> <exclude name="cyrillic/**"/> <exclude name="greek/**"/> </fileset> </copy> <mkdir dir="${project.bin.dir}/META-INF" /> <copy file="LICENSE" todir="${project.bin.dir}/META-INF" /> <copy file="COPYING" todir="${project.bin.dir}/META-INF" /> <delete dir="${project.bin.dir}/META-INF/services"/> <jar jarfile="${package.dir}/jlatexmath-minimal-${version}.jar" basedir="${project.bin.dir}" manifest="MANIFEST.MF" excludes="cyrillic/** greek/** **/greek/** **/cyrillic/** **/fop/** **/services/**"/> <zip destfile="${package.dir}/jlatexmath-minimal.zip"> <fileset dir="${package.dir}" includes="jlm_greek.jar"/> <fileset dir="${package.dir}" includes="jlm_cyrillic.jar"/> <fileset dir="${package.dir}" includes="jlatexmath-minimal-${version}.jar"/> <fileset dir="." includes="README_MINIMAL"/> </zip> </target> <target name="buildJar" depends="compile"> <copy todir="${project.bin.dir}${class.dir}" > <fileset dir="${project.src.dir}"> <exclude name="**/*.java"/> </fileset> </copy> <mkdir dir="${project.bin.dir}/META-INF" /> <copy file="LICENSE" todir="${project.bin.dir}/META-INF" /> <copy file="COPYING" todir="${project.bin.dir}/META-INF" /> <delete dir="${project.bin.dir}/META-INF/services"/> <jar jarfile="${package.dir}/jlatexmath-${version}.jar" basedir="${project.bin.dir}" manifest="MANIFEST.MF" excludes="cyrillic/** greek/**"/> </target> <target name="fop" depends="plugin"/> <target name="plugin" depends="init"> <ant antfile="build.xml" dir="${fop.base.dir}" inheritAll="false"/> <copy file="${fop.base.dir}/dist/jlatexmath-fop-${version}.jar" todir="${package.dir}"/> </target> <target name="plugin-src" depends="init"> <ant antfile="build.xml" target="source" dir="${fop.base.dir}" inheritAll="false"/> <copy file="${fop.base.dir}/dist/jlatexmath-fop-src-${version}.zip" tofile="${package.dir}/jlatexmath-fop-src-${version}.zip"/> </target> <target name="font-alone" depends="init"> <zip destfile="${package.dir}/jlatexmath-fonts.zip"> <fileset dir="${project.src.dir}/greek/fonts" includes="*.ttf"/> <fileset dir="${project.src.dir}/cyrillic/fonts" includes="*.ttf"/> <fileset dir="${project.src.dir}/fonts/maths" includes="*.ttf"/> <fileset dir="${project.src.dir}/fonts/latin" includes="*.ttf"/> <fileset dir="${project.src.dir}/fonts/euler" includes="*.ttf"/> <fileset dir="${project.src.dir}/fonts/base" includes="*.ttf"/> </zip> </target> <target name="embedded-zip" depends="embedded"> <zip destfile="${package.dir}/jlatexmath-embedded-fop-${version}.zip"> <fileset dir="${package.dir}" includes="jlatexmath-embedded-fop-${version}.jar"/> <fileset dir="${fop.base.dir}" includes="examples/*"/> </zip> </target> <target name="embedded" depends="compile"> <ant antfile="build.xml" dir="${fop.base.dir}" inheritAll="false" target="embedded"/> <copy todir="${project.bin.dir}${class.dir}" > <fileset dir="${project.src.dir}"> <exclude name="**/*.java"/> </fileset> </copy> <mkdir dir="${project.bin.dir}/META-INF" /> <copy file="LICENSE" todir="${project.bin.dir}/META-INF" /> <copy file="COPYING" todir="${project.bin.dir}/META-INF" /> <jar jarfile="${package.dir}/jlatexmath-embedded-fop-${version}.jar" basedir="${project.bin.dir}" manifest="MANIFEST.MF" excludes="cyrillic/** greek/**"/> <ant antfile="build.xml" dir="${fop.base.dir}" inheritAll="false" target="clean_embedded"/> </target> <target name="source" depends="info" > <zip destfile="${output.jar.dir}/jlatexmath-src-${version}.zip"> <zipfileset prefix="jlatexmath-${version}/" dir="${project.root.dir}" includes="COPYING LICENSE README build.xml version.xml MANIFEST.MF src/**/*.java src/**/*.xml src/**/*.ttf src/**/licences/* src/**/README examples/**/*.java examples/**/lion.png examples/**/*.xml examples/**/README" /> </zip> </target> <target name="src-all" depends="info" > <zip destfile="${output.jar.dir}/jlatexmath-src-all-${version}.zip" > <zipfileset prefix="jlatexmath-${version}/" dir="${project.root.dir}" includes="COPYING LICENSE README fop.properties build.xml version.xml MANIFEST.MF src/**/*.java src/**/*.xml src/**/*.ttf src/**/licences/* src/**/greek/* src/**/cyrillic/* src/**/README examples/**/*.java examples/**/lion.png examples/**/*.xml examples/**/README plugin/**/src/**/*.java plugin/**/src/META-INF/**/* plugin/**/build.xml plugin/**/COPYING plugin/**/LICENSE plugin/**/MANIFEST.MF plugin/**/examples/*.*" /> </zip> </target> <target name="all" depends="init, buildJar, buildJarMinimal, source, src-all, embedded, plugin, plugin-src, embedded-zip, doc"/> <target name="doc" depends="compile" description="Generates the API specification (javadoc)"> <javadoc packagenames="org.scilab.forge.jlatexmath.*" sourcepath="${project.src.basedir}" defaultexcludes="yes" destdir="${doc.dir}" author="true" version="true" use="true" > </javadoc> </target> </project>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy