forked from CorsixTH/CorsixTH
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
38c462a
commit fd0310f
Showing
1 changed file
with
32 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,32 @@ | ||
<project name="LevelEdit" default="dist" basedir="."> | ||
<description>CorsixTH Level Editor</description> | ||
|
||
<property name="src" location="src"/> | ||
<property name="build" location="build"/> | ||
<property name="dist" location="dist"/> | ||
|
||
<target name="init"> | ||
<mkdir dir="${build}"/> | ||
</target> | ||
|
||
<target name="compile" depends="init" description="compile LevelEdit"> | ||
<javac srcdir="${src}" destdir="${build}" includeantruntime="false"/> | ||
<copy todir="${build}"> | ||
<fileset dir="${src}" includes="*.png" /> | ||
</copy> | ||
</target> | ||
|
||
<target name="dist" depends="compile" description="generate JAR"> | ||
<mkdir dir="${dist}"/> | ||
<jar jarfile="${dist}/LevelEdit.jar" basedir="${build}"> | ||
<manifest> | ||
<attribute name="Main-Class" value="com.corsixth.leveledit.Main"/> | ||
</manifest> | ||
</jar> | ||
</target> | ||
|
||
<target name="clean"> | ||
<delete dir="${build}"/> | ||
<delete dir="${dist}"/> | ||
</target> | ||
</project> |