Commits

tbrugz committed c8fb4c9

build: added 'clean' target, fixed jaxb src dir

  • Participants
  • Parent commits 04ac242

Comments (0)

Files changed (1)

 <project name="mondrianschema2graphml" xmlns:ivy="antlib:org.apache.ivy.ant">
 	
 	<property name="src.dir" value="src"/>
+	<property name="src.jaxb.dir" value="src_jaxb"/>
 	<property name="bin.dir" value="bin"/>
 	<property name="dist.dir" value="dist"/>
 	<property name="output.dir" value="work/output"/>
 		<pathelement location="${bin.dir}"/>
 	</path>
 
+	<target name="clean">
+		<delete dir="${bin.dir}"/>
+		<delete dir="${dist.dir}"/>
+		<delete dir="${output.dir}"/>
+	</target>
+
 	<target name="prepare">
 		<mkdir dir="${bin.dir}"/>
 		<mkdir dir="${dist.dir}"/>
 	</target>
 
 	<target name="compile" depends="prepare">
-		<javac srcdir="${src.dir}" destdir="${bin.dir}" classpathref="classpath.compile" debug="on"/>
+		<javac destdir="${bin.dir}" classpathref="classpath.compile" debug="on">
+			<src path="${src.dir}"/>
+			<src path="${src.jaxb.dir}"/>
+		</javac>
 		<copy todir="${bin.dir}" >
 			<fileset dir="${src.dir}">
 				<include name="**/*.properties"/>