Skip to content

Instantly share code, notes, and snippets.

@chtlp
Created July 2, 2014 00:48
Show Gist options
  • Save chtlp/206f56da99b6a89ef917 to your computer and use it in GitHub Desktop.
Save chtlp/206f56da99b6a89ef917 to your computer and use it in GitHub Desktop.
a shortcut to run a specific class in sbt
#! /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