Skip to content

Commit

Permalink
Added build.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
johncurrier committed Apr 28, 2005
1 parent d0388e1 commit 305cc46
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="rebuild" name="SchemaSpy">
<property name="dest" value="classes"/>
<property name="dist" value="dist"/>
<property name="src" value="src"/>
<path id="project.class.path">
<pathelement location="${dest}"/>
</path>
<!--Patternset to exclude files from the output directory:-->
<patternset id="dest.exclude">
<exclude name="package cache/"/>
<exclude name="dependency cache/"/>
</patternset>
<target name="archive" depends="resource">
<jar compress="true" destfile="${dist}/schemaSpy.jar" manifest="${src}/META-INF/MANIFEST.MF">
<fileset dir="${dest}">
<patternset refid="dest.exclude"/>
<include name="**/*.*"/>
</fileset>
<manifest>
<attribute name="Main-Class" value="net.sourceforge.schemaspy.Main"/>
</manifest>
</jar>
<jar compress="true" destfile="${dist}/schemaSpy_source.jar">
<fileset dir="${src}"/>
</jar>
</target>
<target name="clean">
<delete file="${dist}/schemaSpy.jar"/>
<delete file="${dist}/schemaSpy_source.jar"/>
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${dest}"/>
</delete>
</target>
<target name="resource">
<copy todir="${dest}">
<fileset dir="${src}">
<include name="**/*.properties"/>
</fileset>
</copy>
</target>
<target name="javadoc"/>
<target name="compile" depends="init">
<javac srcdir="${src}"
includes="**/*.java"
destdir="${dest}"
/>
</target>

<target name="make" depends="compile,archive"/>
<target name="rebuild" depends="clean,make"/>
<target name="init">
<mkdir dir="${dest}"/>
<mkdir dir="${dist}"/>
</target>
</project>

0 comments on commit 305cc46

Please sign in to comment.