Source

mondrianschema2graphml / build.xml

Full commit
<project name="mondrianschema2graphml">
	
	<property name="src.dir" value="src"/>
	<property name="bin.dir" value="bin"/>
	<property name="dist.dir" value="dist"/>
	<property name="output.dir" value="work/output"/>
	
	<path id="classpath.compile">
		<pathelement location="lib/commons-logging-1.1.1.jar"/>
		<pathelement location="lib/log4j-1.2.15.jar"/>
		<pathelement location="lib/svg2kml.jar"/>
	</path>
	
	<path id="classpath.run">
		<path refid="classpath.compile"/>
		<pathelement location="${bin.dir}"/>
	</path>

	<target name="prepare">
		<mkdir dir="${bin.dir}"/>
		<mkdir dir="${dist.dir}"/>
		<mkdir dir="${output.dir}"/>
	</target>

	<target name="compile" depends="prepare">
		<javac srcdir="${src.dir}" destdir="${bin.dir}" classpathref="classpath.compile" debug="on"/>
		<copy todir="${bin.dir}" >
			<fileset dir="${src.dir}">
				<include name="**/*.properties"/>
			</fileset>
		</copy>
	</target>

	<target name="build" depends="prepare, compile">
		<jar destfile="${dist.dir}/mondrianschema2graphml.jar"
			basedir="${bin.dir}"
			includes="**/*.class, *.properties">
			<manifest>
				<attribute name="Main-Class" value="tbrugz.mondrian.schema2graphml.MondrianSchema2GraphML"/>
			</manifest>
		</jar>
	</target>

	<target name="run">
		<java classpathref="classpath.run" classname="tbrugz.mondrian.schema2graphml.MondrianSchema2GraphML" />
	</target>
	
	<target name="xslt">
		<property file="mondrianschema2graphml.properties"/>
		<xslt style="xsl/mondrianschema2graphml.xsl" in="${schemain}" out="${graphmlout}"/>
		<!--xslt style="xsl/mondrianschema2graphml.xsl" in="work/input/FoodMart.xml" out="work/output/foodmart-xslt-schema.graphml"/-->
	</target>
	
	<!-- TODO: validate-schema, all -->

</project>