All Downloads are FREE. Search and download functionalities are using the official Maven repository.

examples.Export.build.xml Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="jlatexmath" basedir="." default="example">
<import file="../../version.xml"/>
<property file="../../fop.properties"/>
	<!-- Init -->
	<target name="init" description="Initialize build">
	  <property name="project.src.dir" value="." />
	  <property name="myclasspath" value="/usr/local/share/java/" />
	</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>
		  <fileset dir="${project.src.dir}" includes="**/*.pdf **/*.ps **/*.eps **/*.svg **/*.class"/>
		</delete>
	</target>

	<!-- Compile source files -->
	<target name="example" depends="info">
	  <javac srcdir="${project.src.dir}" destdir="${project.src.dir}" classpath="${project.src.dir}/../../dist/jlatexmath-${version}.jar:${fop.jar}:${xmlgraphics-commons.jar}:${batik.jar}:${avalon-framework.jar}:${commons-io.jar}:${commons-logging.jar}:${xml-apis-ext.jar}:${project.src.dir}/../../dist/jlm_cyrillic.jar:${project.src.dir}/../../dist/jlm_greek.jar" debug="on" source="5" target="5">
	  </javac>
	  <echo message="Generating PDF, PS, EPS and SVG..."/>
	  <java fork="true" dir="${project.src.dir}" classpath=".:${project.src.dir}/../../dist/jlatexmath-${version}.jar:${fop.jar}:${xmlgraphics-commons.jar}:${batik.jar}:${avalon-framework.jar}:${commons-io.jar}:${commons-logging.jar}:${xml-apis-ext.jar}:${project.src.dir}/../../dist/jlm_cyrillic.jar:${project.src.dir}/../../dist/jlm_greek.jar" className="Main">
	    <jvmarg value="-Djava.util.logging.config.file=${project.src.dir}/logging.properties"/>
	  </java>
	</target>

</project>





© 2015 - 2025 Weber Informatics LLC | Privacy Policy