Skip to content

Commit

Permalink
Add version update task.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwbrooks committed Jul 26, 2011
1 parent 3e2d7f3 commit e4cb90e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build.xml
Expand Up @@ -150,6 +150,26 @@ Path:
</echo> </echo>
</target> </target>


<target name="version">
<replace dir="." token="${version}" value="${value}" />

<echo>
Version Update Complete!
========================

Version:
--------

Previous: ${version}
Current: ${value}

Important Reminder:
-------------------

Please review and check the updated files into your version control!
</echo>
</target>

<!-- UPDATE A PROJECT --> <!-- UPDATE A PROJECT -->


<target name="update" depends="clean, build-javascript, build-extension"> <target name="update" depends="clean, build-javascript, build-extension">
Expand Down Expand Up @@ -281,6 +301,10 @@ COMMANDS
dist ............ Create a PhoneGap distribution build dist ............ Create a PhoneGap distribution build
ant dist ant dist


version ......... Update PhoneGap version
ant version VERSION
ant version -Dvalue="1.0.0"

create-plugin ... Create a new plugin create-plugin ... Create a new plugin
ant create-plugin PATH ant create-plugin PATH
ant create-plugin -Dplugin.path="C:\dev\my_plugin" ant create-plugin -Dplugin.path="C:\dev\my_plugin"
Expand Down

0 comments on commit e4cb90e

Please sign in to comment.