forked from headius/jibernate
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Piotr Gega (pietia)
committed
Mar 6, 2011
1 parent
573b220
commit 92e07d8
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- Thanks to Ola Bini's Ribs ;) --> | ||
<project basedir="." default="jar" name="jibernate"> | ||
<path id="build.classpath"> | ||
<fileset dir="lib" includes="*.jar" excludes="dm-hibernate*.jar"/> | ||
</path> | ||
|
||
<patternset id="java.src.pattern"> | ||
<include name="**/*.java"/> | ||
</patternset> | ||
|
||
<target name="prepare" description="Creates the directories needed for building"> | ||
<mkdir dir="build/classes"/> | ||
</target> | ||
|
||
<target name="compile" depends="prepare" description="Compile the source files for the project."> | ||
<javac destdir="build/classes" debug="true" source="1.5" target="1.5"> | ||
<classpath refid="build.classpath"/> | ||
<src path="src/main/java"/> | ||
<patternset refid="java.src.pattern"/> | ||
</javac> | ||
</target> | ||
|
||
<target name="jar" depends="compile" description="Create the dm-hibernate-adapter_ext.jar file"> | ||
<jar destfile="lib/dm-hibernate-adapter_ext.jar"> | ||
<fileset dir="build/classes"> | ||
<include name="**/*.class"/> | ||
<include name="**/*.properties"/> | ||
</fileset> | ||
<manifest> | ||
<attribute name="Built-By" value="${user.name}"/> | ||
</manifest> | ||
</jar> | ||
</target> | ||
|
||
<target name="clean" depends="prepare" description="clean almost everything"> | ||
<delete dir="build/classes"/> | ||
<delete file="lib/dm-hibernate-adapter_ext.jar" quiet="true"/> | ||
</target> | ||
</project> |