setup for builds using ant
This commit is contained in:
parent
eb7217a91a
commit
d8b5122bb6
3 changed files with 87 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,3 +2,5 @@
|
|||
*.ipk
|
||||
*.*~
|
||||
dropbox-auth.js
|
||||
build.properties
|
||||
build.number
|
||||
|
|
84
bbww/build.xml
Normal file
84
bbww/build.xml
Normal file
|
@ -0,0 +1,84 @@
|
|||
<project name="TdoTxtBeta" default="ripple" basedir=".">
|
||||
<description>
|
||||
Todo.txt Enyo build file for the BlackBerry PlayBook
|
||||
</description>
|
||||
|
||||
<!-- set device specific properties -->
|
||||
<property file="build.properties"/>
|
||||
|
||||
<!-- set global properties for this build -->
|
||||
<property name="src" location="../app"/>
|
||||
<property name="build" location="build"/>
|
||||
<property name="dist" location="dist"/>
|
||||
|
||||
<!-- set ripple and webowrks specific properites -->
|
||||
<property name="ripplesite" location="C:\Users\${user}\RippleSites\${ant.project.name}"/>
|
||||
<property name="bbwp" location="C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\bbwp"/>
|
||||
|
||||
|
||||
<!-- create the directory structure used by various targets -->
|
||||
<target name="init">
|
||||
<tstamp/>
|
||||
<mkdir dir="${build}"/>
|
||||
<mkdir dir="${dist}"/>
|
||||
<mkdir dir="${ripplesite}"/>
|
||||
</target>
|
||||
|
||||
<!-- copy application into a location accessible by ripple -->
|
||||
<target name="ripple" depends="init">
|
||||
<copy todir="${ripplesite}">
|
||||
<fileset dir="${src}" excludes="**/icon.png" />
|
||||
</copy>
|
||||
<copy todir="${ripplesite}/enyo-1.0-r1">
|
||||
<fileset dir="enyo-1.0-r1" />
|
||||
</copy>
|
||||
<copy file="appindex.html" todir="${ripplesite}" />
|
||||
<copy file="appicon.png" todir="${ripplesite}" />
|
||||
<copy file="config.xml" todir="${ripplesite}" />
|
||||
<copy file="dropbox-auth.js" todir="${ripplesite}/source" />
|
||||
</target>
|
||||
|
||||
<!-- copy application into a location used by compile -->
|
||||
<target name="setup" depends="init">
|
||||
<copy todir="${build}">
|
||||
<fileset dir="${src}" excludes="**/icon.png" />
|
||||
</copy>
|
||||
<copy todir="${build}/enyo-1.0-r1">
|
||||
<fileset dir="enyo-1.0-r1" />
|
||||
</copy>
|
||||
<copy file="appindex.html" todir="${build}" />
|
||||
<copy file="appicon.png" todir="${build}" />
|
||||
<copy file="config.xml" todir="${build}" />
|
||||
<copy file="dropbox-auth.js" todir="${build}/source" />
|
||||
</target>
|
||||
|
||||
<!-- package the application into a zip file used by compile -->
|
||||
<target name="zip" depends="setup">
|
||||
<zip destfile="${ant.project.name}.zip" basedir="${build}" />
|
||||
</target>
|
||||
|
||||
<!-- compile the application using the BlackBerry WebWorks SDK -->
|
||||
<target name="compile" depends="zip">
|
||||
<buildnumber/>
|
||||
<exec executable="${bbwp}/bbwp">
|
||||
<arg line="${ant.project.name}.zip -buildId ${build.number} -o ${dist} -d" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<!-- deploy the application to the simulator or test device -->
|
||||
<target name="deploy" depends="compile">
|
||||
<exec executable="${bbwp}/blackberry-tablet-sdk/bin/blackberry-deploy.bat">
|
||||
<arg line="-installApp -launchApp -device ${device} -password ${password} -package ${dist}/${ant.project.name}.bar" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<!-- clean up the build file structure -->
|
||||
<target name="clean"
|
||||
description="clean up" >
|
||||
<delete dir="${ripplesite}"/>
|
||||
<delete dir="${build}"/>
|
||||
<delete dir="${dist}"/>
|
||||
<delete file="${ant.project.name}.zip"/>
|
||||
</target>
|
||||
|
||||
</project>
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<widget xmlns="http://www.w3.org/ns/widgets"
|
||||
xmlns:rim="http://www.blackberry.com/ns/widgets"
|
||||
version="0.4.0.0">
|
||||
version="0.4.0">
|
||||
|
||||
<name>Todo.txt Enyo beta</name>
|
||||
|
||||
|
|
Loading…
Reference in a new issue