自動的に認証しつつ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