def execute(context): version = context.config("pt2matsim_version") branch = context.config("pt2matsim_branch") # Clone repository and checkout version git.run(context, [ "clone", "https://github.com/matsim-org/pt2matsim.git", "--branch", branch, "--single-branch", "pt2matsim", "--depth", "1" ]) # git.run(context, [ # "clone", "/home/valoo/Projects/IFSTTAR/pt2matsim", # "pt2matsim" # ]) # Build pt2matsim maven.run(context, ["package"], cwd="%s/pt2matsim" % context.path()) jar_path = "%s/pt2matsim/target/pt2matsim-%s-shaded.jar" % (context.path(), version) # Test pt2matsim java.run(context, "org.matsim.pt2matsim.run.CreateDefaultOsmConfig", ["test_config.xml"], jar_path) assert os.path.exists("%s/test_config.xml" % context.path())
def run(context, command, arguments): version = context.config("pt2matsim_version") # Make sure there is a dependency context.stage("matsim.runtime.pt2matsim") jar_path = "%s/pt2matsim/target/pt2matsim-%s-shaded.jar" % ( context.path("matsim.runtime.pt2matsim"), version) java.run(context, command, arguments, jar_path)
def run(context, command, arguments): version = context.config("eqasim_version") # Make sure there is a dependency context.stage("matsim.runtime.eqasim") jar_path = "%s/eqasim-java/sao_paulo/target/sao_paulo-%s.jar" % ( context.path("matsim.runtime.eqasim"), version) java.run(context, command, arguments, jar_path)