Skip to content

Instantly share code, notes, and snippets.

Created January 21, 2010 10:11
Show Gist options
  • Save anonymous/282704 to your computer and use it in GitHub Desktop.
Save anonymous/282704 to your computer and use it in GitHub Desktop.
def gaeversion = new String(project.version).replace('.','-')
if (gaeversion.endsWith("SNAPSHOT")) {
gaeversion = gaeversion.substring(0, gaeversion.length() - 9)
}
project.properties['gaeversion'] = gaeversion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment