aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2015-06-06 00:44:13 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2015-06-06 00:44:13 +0200
commit4c5d38229b2526322fcf62a5c96b252534389e86 (patch)
tree06d8d7b77b7b01aa968572a58bf4158c4ba17e09 /build
parent5b3dc9b92cac06a635c26955dd3ec3c85666686b (diff)
Started refactoring, sorted out compiling in build script
Diffstat (limited to 'build')
-rw-r--r--build/cardbasecli.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/build/cardbasecli.xml b/build/cardbasecli.xml
index a3e09b0..6490ae6 100644
--- a/build/cardbasecli.xml
+++ b/build/cardbasecli.xml
@@ -24,15 +24,21 @@
<!-- External libraries classpath, we don't need sources and javadoc -->
<path id="classpath">
<fileset dir="${basedir}/">
+ <include name="${res.dir}/*" />
+
<include name="${lib.dir}/*.jar" />
<exclude name="${lib.dir}/*sources.jar"/>
<exclude name="${lib.dir}/*javadoc.jar"/>
</fileset>
</path>
- <!-- Compile project including external libraries -->
+ <!-- Compile project including external libraries and copy resource files across as well -->
<target name="compile" depends="init" description="compile the source">
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${bin.dir}" classpathref="classpath" />
+
+ <copy todir="${bin.dir}">
+ <fileset dir="${res.dir}" excludes=""/>
+ </copy>
</target>
<!-- Create the jar and declare the ext libraries in manifest.mf file -->
@@ -43,7 +49,6 @@
<jar jarfile="${dist.dir}/${jar.name}.jar" basedir="${bin.dir}">
<zipgroupfileset dir="${lib.dir}" includes="*.jar" excludes="*sources.jar, *javadoc.jar" />
- <fileset dir="${res.dir}" includes="**" excludes="" />
<manifest>
<attribute name="Main-Class" value="${main-class}" />