Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jirislaby:statica
stanse
stpreproc-path-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File stpreproc-path-fix.patch of Package stanse
--- src/cz/muni/stanse/cparser/CUnit.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) --- a/src/cz/muni/stanse/cparser/CUnit.java +++ b/src/cz/muni/stanse/cparser/CUnit.java @@ -144,25 +144,13 @@ public final class CUnit extends Unit { Process p; String line; - // this is necessary - // the environment is modified only AFTER the command is - // executed! - String command = Stanse.getInstance().getRootDirectory() + File.separator + - "bin" + File.separator + "stpreproc"; String jobEntry = "{" + args.get(0) + "}"; for (int i = 1; i < args.size(); ++i) { jobEntry += ",{"; jobEntry += args.get(i); jobEntry += "}"; } - ProcessBuilder builder = new ProcessBuilder("perl", command, jobEntry); - Map<String, String> env = builder.environment(); - if (env.containsKey("Path")) { - env.put("PATH", env.get("Path")); - env.remove("Path"); - } - env.put("PATH", env.get("PATH") + File.pathSeparator + - Stanse.getInstance().getRootDirectory() + File.separator + "bin"); + ProcessBuilder builder = new ProcessBuilder("stpreproc", jobEntry); try { p = builder.start();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor