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

Error on Linux agent #1

Open
elgris opened this issue Aug 29, 2012 · 4 comments
Open

Error on Linux agent #1

elgris opened this issue Aug 29, 2012 · 4 comments
Labels

Comments

@elgris
Copy link

elgris commented Aug 29, 2012

Hello. When I try to launch FitNesse runner under Linux agent, FitNesse could not be started.
Th reason is:
Runtime.getRuntime().exec(cmdFitnesse, null, new File(rootFolder));
where 'cmdFitnesse' contains command to run jar file and this command is surrounded by double-quotes("). When I remove double quotes, it starts working like a charm. Another problem with that: if I remove quotes, path to jar-file must not contain spaces.

@EKibort
Copy link
Owner

EKibort commented Aug 29, 2012

Thank you. But I don't have linux agents and never checked it. If you remove quotes you will have a problems on Windows agents with paths like "Program Files".

@elgris
Copy link
Author

elgris commented Aug 29, 2012

Agreed. But for Linux (Ubuntu in particular) it's well known issue with Java. Example here: http://www.cmsimike.com/blog/2010/11/15/linux-runtime-getruntime-exec-and-quotes/
I created a patch in which Windows systems use quotes, but non-Windows don't. It works well still.
By the way, do you mind if I create a fork of your project for our needs? In our company we have a lot of tasks for FitNesse and TeamCity so this plugin will grow. I believe :)

@EKibort
Copy link
Owner

EKibort commented Aug 29, 2012

You can create fork and pull you request here. I hope it helps us to improve this plugin. :)

@EKibort
Copy link
Owner

EKibort commented Feb 9, 2013

I hope commit ccd1e2d can help you with linux issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants