PK ;V<'=HZ commands.py# Stax commands
# ~~~~
import sys
# ~~~~~~~~~~~~~~~~~~~~~~ New
if play_command == 'new':
appconf = open(os.path.join(application_path, 'conf/application.conf'), 'a')
appconf.write("\n")
appconf.write("# Stax Database configuration\n")
appconf.write("# ~~~~~\n")
appconf.write("# to deploy on stax: uncomment, replace yourProject, yourDBName, login and password by the correct values\n")
appconf.write("# before generating the war\n")
appconf.write("# db.url=jdbc:stax://yourDBName\n")
appconf.write("# db.driver=com.staxnet.jdbc.Driver\n")
appconf.write("# db.user=dblogin\n")
appconf.write("# db.pass=dbpassword\n\n")
appconf.write("# jpa.dialect=org.hibernate.dialect.MySQLDialect\n")
# ~~~~~~~~~~~~~~~~~~~~~~ War
if play_command == 'war':
f = open(os.path.join(war_path, 'WEB-INF', 'stax-application.xml'), 'w')
f.write("\n")
f.write(" \n")
f.write("")
print "~\n~ Including Stax declaration..."
if war_zip_path:
print "~ You can now deploy it:"
print "~ stax app:deploy -a login/yourProject " + war_zip_path + "\n~"
else:
print "** WARNING ** Stax requires you to zip your war."
print "Use the --zip option unless you want to tweak your war before deployement."
PK IV<>X|" " manifestversion=1.0
frameworkVersions=1.1
PK lV