Closed maybeec closed 7 years ago
Since I have absolutely no idea how to fix this I'm evaluating a work around right now.
The CLI-Task is able to start in a given directory, like the oasp4j-root. Currently we use absolute paths that can contain white spaces. Although, the oasp4j-ide folder structure is white space free. I plan on running the CLI-Task in the oasp4j root and referencing the destinations relative to the root and thus removing any white space from the used paths.
Problem with my last idea is that TARGETDIR
cannot handle relative paths. But I found a workaround that seems to work (but still needs to be tested and commited).
I created an helper script that resolves a relative path via the windows cmd tools. This approach seems to do it
Basically, the parameter value behind
/Log
is the problem. I investigated a little further and finally found that the parameter value has to be quoted double:http://stackoverflow.com/questions/18833536/how-to-handle-spaces-in-path-of-log-file https://issues.jenkins-ci.org/browse/JENKINS-19447 https://github.com/jenkinsci/jenkins/pull/946/commits/4f6e649294e27feb3afc870d0ca959e771ff9778