Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run for windows #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mkeskells
Copy link

when running with windows cmd you need to specify the extensions .cmd/.bat
write the params to file to reduce the command length

run.py Outdated
@@ -63,19 +65,32 @@ def findFiles(path, regex):
def call_compiler(scalaLocation, output, additionalScalacOptions, additionalConfig=[]):
agentJar = os.path.join(".", "umad", "target", "umad-1.0-SNAPSHOT.jar")
configOverrides = map(lambda v: "-J-D" + v, options.config + additionalConfig)
with open('params.txt', 'w') as params:
Copy link
Owner

@pkukielka pkukielka Sep 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like this for less duplication?

paramsList = [configOverrides, scalacOptions, sources, debugOptions, additionalScalacOptions]
with open('params.txt', 'w') as paramsFile:
    for params in paramsList:
        for param in params:
            paramsFile.write(param + "\n")

run.py Outdated
@@ -63,19 +65,32 @@ def findFiles(path, regex):
def call_compiler(scalaLocation, output, additionalScalacOptions, additionalConfig=[]):
agentJar = os.path.join(".", "umad", "target", "umad-1.0-SNAPSHOT.jar")
configOverrides = map(lambda v: "-J-D" + v, options.config + additionalConfig)
with open('params.txt', 'w') as params:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put this file somewhere in tmp dir instead of project dir?

.cmd and .bat files need suffix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants