Skip to content

Instantly share code, notes, and snippets.

@tkatochin
Created February 24, 2012 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkatochin/1900066 to your computer and use it in GitHub Desktop.
Save tkatochin/1900066 to your computer and use it in GitHub Desktop.
自動的に認証しつつappgngineにGAE/Javaアプリをmvnビルド後にデプロイするシェル。詳細→ http://tkatochin.hatenablog.com/entry/2012/02/24/173853
#!/bin/sh
echo mvn -P $1 $2 $3 $4 $5 -DdownloadSources=true -Dgwt.compile.skip=true eclipse:eclipse package
mvn -P $1 $2 $3 $4 $5 -DdownloadSources=true -Dgwt.compiler.skip=true eclipse:eclipse package
RETVAL=$?
if [ $RETVAL -eq 0 ]
then(
expect -c "
set timeout -1
spawn appcfg.sh --email=$GAE_USER --passin backends update war
expect Password\ for\ $GAE_USER:\ ; send \"$GAE_PASS\r\"
interact
"
)
else echo "maven failure $RETVAL"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment