Skip to content

Instantly share code, notes, and snippets.

@checko
Created December 4, 2014 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save checko/f97cd56226766684e1ec to your computer and use it in GitHub Desktop.
Save checko/f97cd56226766684e1ec to your computer and use it in GitHub Desktop.
ant, rules to copy resources
commit fe9083623469a2e8e533179226766b84bfcd09a9
Author: charles-chang <charles-chang@royaltek.com>
Date: Wed Dec 3 16:40:16 2014 +0800
fix nullpointerexceotion on ImageIcon
diff --git a/AndroidScreencast/build.xml b/AndroidScreencast/build.xml
index 58c87df..42b2a32 100644
--- a/AndroidScreencast/build.xml
+++ b/AndroidScreencast/build.xml
@@ -31,6 +31,10 @@
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<mkdir dir="${dist}"/>
+ <copy todir="${build}">
+ <fileset dir="${src}"
+ includes="**/*.png" />
+ </copy>
<jar jarfile="${dist}/${mainjar}" basedir="${build}"/>
<copy file="${sdk-ddmlib}" tofile="${dist}/${ddmlib}"/>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment