Commits

tbrugz committed acdd1fc

adding build.xml

Comments (0)

Files changed (2)

+<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"/>
+
+	<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}" classpath="lib/commons-logging-1.1.1.jar:lib/log4j-1.2.15.jar:lib/svg2kml.jar" debug="on"/>
+		<copy todir="${bin.dir}" >
+			<fileset dir="${src.dir}">
+				<include name="**/*.properties"/>
+			</fileset>
+		</copy>
+	</target>
+
+	<target name="build" depends="prepare">
+		<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>
+
+</project>
 
 mondrianschema2graphml howto:
 
-- edit mondrianschema2graphml.properties, set "`schemain`" and "`graphmlout`" properties
+- run `ant compile`
+- edit `mondrianschema2graphml.properties`, set "`schemain`" and "`graphmlout`" properties
 - run "`java -cp bin;lib/svg2kml.jar;lib/commons-logging-1.1.1.jar;lib/log4j-1.2.15.jar tbrugz/mondrian/schema2graphml/MondrianSchema2GraphML`"
 
 yEd, [www.yworks.com/products/yed/](http://www.yworks.com/products/yed/), is recomended for opening the generated graphML files
 
 Author:
 
-Telmo Brugnara <[tbrugz@gmail.com](tbrugz@gmail.com)>
+Telmo Brugnara <[tbrugz@gmail.com](mailto:tbrugz@gmail.com)>
 
 License:
 
 - commons-logging (included)
 - svg2kml.jar (included - see: [https://bitbucket.org/tbrugz/kmlutils](https://bitbucket.org/tbrugz/kmlutils))
 
-Files licenced under EPL 1.0 - [http://www.eclipse.org/legal/epl-v10.html](http://www.eclipse.org/legal/epl-v10.html):
+Files licenced under EPL 1.0 - [www.eclipse.org/legal/epl-v10.html](http://www.eclipse.org/legal/epl-v10.html):
 
 - dtd/mondrian.dtd
 - work/input/FoodMart.xml