groostav
09/20/2017, 5:16 PMexec
in the background from ant, and I'm stunned at how hard it is. The internet suggested
<exec executable="cmd">
<arg value="/C"/>
<arg value="start"/>
<arg value="/B"/>
<arg value="${myProgram}"/>
</exec>
except that if myProgram
contains spaces then this solution fails. Further, if you quote wrap it, the quotes are stripped off prematurely by one of the three interpreters looking at the value so myProgram
has to be a one-word thing. My only work-around was to explicitly set the working directory with an <exec ... dir="..../bin">
Does anybody here have a better solution?karelpeeters
09/20/2017, 7:51 PMdanny
09/20/2017, 8:25 PM\\
will escape spaces on Windows, did you try that?danny
09/20/2017, 8:26 PM