Skip to content

Instantly share code, notes, and snippets.

@drone29a
Last active December 20, 2015 08:29
Show Gist options
  • Save drone29a/6100464 to your computer and use it in GitHub Desktop.
Save drone29a/6100464 to your computer and use it in GitHub Desktop.
Use lein localrepo to install jMonkeyEngine3 jars. Build jME3 with "ant build-engine" then run this script from "<jme3_root>/engine/dist/lib".
import os
import subprocess
path = os.path.dirname(os.path.realpath(__file__))
def install_cmd(fname, group_id, art_id, version):
return "lein localrepo install %s %s/%s %s" % (fname, group_id, art_id, version)
for fname in os.listdir(path):
name = os.path.splitext(fname)[0]
cmd = install_cmd(fname, "jme3-local", name, "3.0-SNAPSHOT")
subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment