public void afterPropertiesSet() throws Exception {
List<Object> command = new ArrayList<Object>();
if (jvm != null)
- command.add(asFile(jvm).getAbsolutePath());
+ command.add(asFile(jvm).getPath());
else
command.add("java");
protected File asFile(Resource res) {
try {
- return res.getFile().getCanonicalFile();
+ return res.getFile();
} catch (FileNotFoundException e) {
return copyToTempFile(res);
} catch (IOException e) {
+ generateScript);
try {
FileUtils.writeStringToFile(scriptFile,
- (osConsole != null ? osConsole : "")
+ (osConsole != null ? osConsole + " " : "")
+ commandLine.toString());
} catch (IOException e) {
throw new SlcException("Could not generate script "