Created
March 24, 2012 06:12
-
-
Save sourcerebels/2178921 to your computer and use it in GitHub Desktop.
Maven > Install > Android > Maps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Run inside Maven project directory. | |
# | |
REVISION=$1 | |
JAR=${ANDROID_HOME}/add-ons/addon-google_apis-google-${REVISION}/libs/maps.jar | |
VERSION=${REVISION}_r1 | |
echo "Revision: $REVISION" | |
echo "Jar: $JAR" | |
echo "Version: $VERSION" | |
if [ -f $JAR ]; then | |
mvn install:install-file \ | |
-Dfile=$JAR \ | |
-DgroupId=com.google.android.maps \ | |
-DartifactId=maps \ | |
-Dversion=$VERSION \ | |
-Dpackaging=jar | |
else | |
echo "Error. File $JAR does not exists" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment