Created
July 2, 2014 00:48
-
-
Save chtlp/206f56da99b6a89ef917 to your computer and use it in GitHub Desktop.
a shortcut to run a specific class in sbt
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
#! /usr/bin/python | |
import os, sys | |
if __name__ == '__main__': | |
args = ' '.join(sys.argv[1:]) | |
cmd = ''' | |
java -Dhttp.proxyHost=172.31.255.99 -Dhttp.proxyPort=8080 -Xms1024m -Xmx40960m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=128m -jar /usr/share/sbt/bin/sbt-launch.jar 'run-main %s' | |
'''.strip() % args | |
print cmd | |
os.system(cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment