aschearer / shade
- Source
- Commits
- Network (17)
- Issues (0)
- Downloads (0)
- Wiki (13)
- Graphs
-
Tree:
9db3e18
shade / build.xml
| 7078afe7 » | aschearer | 2008-09-18 | 1 | <?xml version="1.0" ?> | |
| 2 | |||||
| 9db3e18c » | aschearer | 2008-09-19 | 3 | <!-- | |
| 4 | |||||
| 5 | Shade build file. | ||||
| 6 | |||||
| 7 | Please run ant setup before you do anything else. This will set up the | ||||
| 8 | environment for you. | ||||
| 9 | |||||
| 10 | ant setup Initialize Shade environment. RUN THIS FIRST!! | ||||
| 11 | ant build Run to compile the code. | ||||
| 12 | ant run Run to launch Shade (should be run after ant build...) | ||||
| 13 | ant clean Remove .class files from object directory. | ||||
| 14 | |||||
| 15 | Alex Schearer | ||||
| 7078afe7 » | aschearer | 2008-09-18 | 16 | --> | |
| 9db3e18c » | aschearer | 2008-09-19 | 17 | <project name="Shade" basedir="."> | |
| 18 | |||||
| 19 | <property name="src.dir" value="src" /> | ||||
| 20 | <property name="res.dir" value="res" /> | ||||
| 21 | <property name="lib.dir" value="lib" /> | ||||
| 22 | <property name="obj.dir" value="bin" /> | ||||
| 23 | <property name="target.dir" value="." /> | ||||
| 24 | |||||
| 25 | <!-- Compile and archive Shade. --> | ||||
| 26 | <target name="build"> | ||||
| 27 | <antcall target="compile" /> | ||||
| 28 | <antcall target="archive" /> | ||||
| 29 | </target> | ||||
| 30 | |||||
| 31 | <!-- Run Shade. --> | ||||
| 32 | <target name="run"> | ||||
| 33 | <java jar="${target.dir}/shade.jar" fork="true" failonerror="true"> | ||||
| 34 | <jvmarg value="-Djava.library.path=lib/natives" /> | ||||
| 35 | </java> | ||||
| 36 | </target> | ||||
| 37 | |||||
| 38 | <!-- Compile the code put results into obj.dir. --> | ||||
| 39 | <target name="compile"> | ||||
| 40 | <mkdir dir="${obj.dir}" /> | ||||
| 41 | <javac destdir="${obj.dir}" debug="on"> | ||||
| 42 | <src path="${src.dir}" /> | ||||
| 43 | <classpath> | ||||
| 44 | <pathelement path="${lib.dir}/slick.jar" /> | ||||
| 45 | </classpath> | ||||
| 46 | </javac> | ||||
| 47 | </target> | ||||
| 48 | |||||
| 49 | <!-- Jar compiled code and place result into target.dir. --> | ||||
| 50 | <target name="archive"> | ||||
| 51 | <jar destfile="${target.dir}/shade.jar" manifest="manifest.txt"> | ||||
| 52 | <fileset dir="${obj.dir}" /> | ||||
| 53 | <fileset dir="${res.dir}" /> | ||||
| 54 | </jar> | ||||
| 7078afe7 » | aschearer | 2008-09-18 | 55 | </target> | |
| 56 | |||||
| 9db3e18c » | aschearer | 2008-09-19 | 57 | <!-- Clean up the obj.dir. --> | |
| 58 | <target name="clean"> | ||||
| 59 | <delete dir="${obj.dir}" /> | ||||
| 7078afe7 » | aschearer | 2008-09-18 | 60 | </target> | |
| 61 | |||||
| 9db3e18c » | aschearer | 2008-09-19 | 62 | <!-- Set up the Shade environment including preparing the natives. --> | |
| 63 | <target name="setup"> | ||||
| 64 | <mkdir dir="${lib.dir}/natives" /> | ||||
| 65 | <unzip src="${lib.dir}/natives-win32.jar" dest="${lib.dir}/natives" /> | ||||
| 66 | <unzip src="${lib.dir}/natives-mac.jar" dest="${lib.dir}/natives" /> | ||||
| 67 | <unzip src="${lib.dir}/natives-linux.jar" dest="${lib.dir}/natives" /> | ||||
| 7078afe7 » | aschearer | 2008-09-18 | 68 | </target> | |
| 69 | </project> | ||||
