Commits

tbrugz  committed 1cee3bd

build.xml: added 'run' target

  • Participants
  • Parent commits acdd1fc

Comments (0)

Files changed (2)

 	<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}"/>
 	</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"/>
+		<javac srcdir="${src.dir}" destdir="${bin.dir}" classpathref="classpath.compile" debug="on"/>
 		<copy todir="${bin.dir}" >
 			<fileset dir="${src.dir}">
 				<include name="**/*.properties"/>
 		</copy>
 	</target>
 
-	<target name="build" depends="prepare">
+	<target name="build" depends="prepare, compile">
 		<jar destfile="${dist.dir}/mondrianschema2graphml.jar"
 			basedir="${bin.dir}"
 			includes="**/*.class, *.properties">
 		</jar>
 	</target>
 
+	<target name="run">
+		<java classpathref="classpath.run" classname="tbrugz.mondrian.schema2graphml.MondrianSchema2GraphML" />
+	</target>
+	
+	<!-- TODO: validate-schema, all -->
+
 </project>

File readme.markdown

 
 License:
 
-GNU Lesser General Public License - [http://www.gnu.org/licenses/lgpl.html](http://www.gnu.org/licenses/lgpl.html)
+GNU Lesser General Public License - [www.gnu.org/licenses/lgpl.html](http://www.gnu.org/licenses/lgpl.html)
 
 Dependencies: