Skip to content

Instantly share code, notes, and snippets.

@enru
Created November 19, 2011 21:11
Show Gist options
  • Select an option

  • Save enru/1379364 to your computer and use it in GitHub Desktop.

Select an option

Save enru/1379364 to your computer and use it in GitHub Desktop.
copies files & sets up phonegap in a new android app
<project name="PhoneGapCopy" default="init" basedir=".">
<description>
sets up phonegap in a new android app
usage: ant -f phonegapcopy.xml -DPHONEGAP_HOME=/home/enru/phonegap-9f0856d
</description>
<property name="PHONEGAP_HOME" value=""/>
<target name="init">
<copy todir="./libs/">
<fileset dir="${PHONEGAP_HOME}/Android/">
<include name="phonegap-*.jar"/>
</fileset>
</copy>
<copy todir="./assets/www/">
<fileset dir="${PHONEGAP_HOME}/Android/">
<include name="phonegap-*.js"/>
</fileset>
</copy>
<copy todir="./res/xml/">
<fileset dir="${PHONEGAP_HOME}/Android/xml">
<include name="*.xml"/>
</fileset>
</copy>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment