|
1 | | -<?xml version="1.0"?> |
2 | | -<project name="FatJar cloudkey.jar (experimental)" default="main" basedir="."> |
3 | | - <!-- this file was created by Fat-Jar Eclipse Plug-in --> |
4 | | - <!-- the ANT-Export is in a very early stage, so this --> |
5 | | - <!-- is only experimental, ANT 1.6 or above is --> |
6 | | - <!-- required, feedback is always welcome: --> |
7 | | - <!-- http://sourceforge.net/projects/fjep --> |
8 | | - <!-- uncomment the following lines if using ANT outside Eclipse --> |
9 | | - <!-- |
10 | | - <property name="fjepPath" value="reference:file:plugins/net.sf.fjep.fatjar_0.0.31/fatjar.jar"/> |
11 | | - <taskdef name="fatjar.build" classname="net.sf.fjep.anttask.FJBuildTask" classpath="${fjepPath}"/> |
12 | | - <typedef name="fatjar.manifest" classname="net.sf.fjep.anttask.FJManifestType" classpath="${fjepPath}"/> |
13 | | - <typedef name="fatjar.exclude" classname="net.sf.fjep.anttask.FJExcludeType" classpath="${fjepPath}"/> |
14 | | - <typedef name="fatjar.jarsource" classname="net.sf.fjep.anttask.FJJarSourceType" classpath="${fjepPath}"/> |
15 | | - <typedef name="fatjar.filesource" classname="net.sf.fjep.anttask.FJFileSourceType" classpath="${fjepPath}"/> |
16 | | - --> |
17 | | - <!-- uncomment the above lines to use ANT outside of Eclipse --> |
18 | | - <target name="main"> |
19 | | - <fatjar.build output="cloudkey.jar"> |
20 | | - <fatjar.manifest/> |
21 | | - <fatjar.filesource path="/Users/nyvath/Documents/cloudkey/cloudkey-java/bin" relpath=""> |
22 | | - <fatjar.exclude relpath="third-party/"/> |
23 | | - <fatjar.exclude relpath="Config.jsp"/> |
24 | | - <fatjar.exclude relpath="MediaCreate.jsp"/> |
25 | | - <fatjar.exclude relpath="MediaList.jsp"/> |
26 | | - <fatjar.exclude relpath="Upload.jsp"/> |
27 | | - </fatjar.filesource> |
28 | | - <fatjar.jarsource file="/Users/nyvath/Documents/cloudkey/cloudkey-java/src/third-party/jackson-core-asl-1.8.1.jar" relpath=""/> |
29 | | - <fatjar.jarsource file="/Users/nyvath/Documents/cloudkey/cloudkey-java/src/third-party/jackson-mapper-asl-1.8.1.jar" relpath=""/> |
30 | | - <fatjar.jarsource file="/Users/nyvath/Documents/cloudkey/cloudkey-java/src/third-party/commons-codec-1.4.jar" relpath=""/> |
31 | | - <fatjar.jarsource file="/Users/nyvath/Documents/cloudkey/cloudkey-java/src/third-party/commons-logging-1.1.1.jar" relpath=""/> |
32 | | - <fatjar.jarsource file="/Users/nyvath/Documents/cloudkey/cloudkey-java/src/third-party/commons-httpclient-3.1.jar" relpath=""/> |
33 | | - </fatjar.build> |
34 | | - </target> |
35 | | -</project> |
| 1 | +<?xml version="1.0"?> |
| 2 | +<project name="CloudKey" default="jar" basedir="."> |
| 3 | + <property name="src" location="src"/> |
| 4 | + <property name="build" location="build"/> |
| 5 | + <property name="thirdparty" value="third-party" /> |
| 6 | + |
| 7 | + <target name="init"> |
| 8 | + <tstamp/> |
| 9 | + |
| 10 | + <mkdir dir="${build}"/> |
| 11 | + </target> |
| 12 | + |
| 13 | + <target name="compile" description="Compiles CloudKey" depends="init"> |
| 14 | + <javac srcdir="${src}" destdir="${build}"> |
| 15 | + <classpath> |
| 16 | + <path location="${thirdparty}/commons-codec-1.4.jar"/> |
| 17 | + <path location="${thirdparty}/commons-httpclient-3.1.jar"/> |
| 18 | + <path location="${thirdparty}/commons-logging-1.1.1.jar"/> |
| 19 | + <path location="${thirdparty}/jackson-core-asl-1.8.1.jar"/> |
| 20 | + <path location="${thirdparty}/jackson-mapper-asl-1.8.1.jar"/> |
| 21 | + </classpath> |
| 22 | + </javac> |
| 23 | + </target> |
| 24 | + |
| 25 | + <target name="jar" description="JARs CloudKey" depends="compile"> |
| 26 | + <jar destfile="cloudkey.jar" basedir="${build}"/> |
| 27 | + </target> |
| 28 | + |
| 29 | + <target name="clean" description="Clean up" > |
| 30 | + <delete dir="${build}"/> |
| 31 | + </target> |
| 32 | + |
| 33 | +</project> |
0 commit comments