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

Unable to run the script in cygwin #1

Open
StefanUG opened this issue May 24, 2010 · 0 comments
Open

Unable to run the script in cygwin #1

StefanUG opened this issue May 24, 2010 · 0 comments

Comments

@StefanUG
Copy link

I was running the pomgen script in cygwin, and it failed when trying to execute java (tattletale), because of the /cygdrive/ paths.

To fix this, I added a non-intrusive function, and calls it in the command-line for java like this.

The new function looks like this:
def cygpath(path)
if (path.include? "cygdrive") then
path = cygpath -mp #{path}
path = path.strip
end
return path
end

and the modified call for the java command looks like this (line:69)
java -Xmx512m -jar #{cygpath($Tattletale)} #{cygpath(jarpath)} #{cygpath(outdir)}

Please include these few extra lines, if you would want to support running the script from cygwin.

Thanks a lot.

Regards, Stefan

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

No branches or pull requests

1 participant