/*
- * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ * Copyright (C) 2007-2012 Argeo GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package org.argeo.slc.core.execution.tasks;
import java.io.File;
*/
protected String getExecDirToUse() {
try {
- File dir = null;
if (execDir != null) {
return execDir;
- // Replace '/' by local file separator, for portability
- // execDir.replace('/', File.separatorChar);
- // dir = new File(execDir).getCanonicalFile();
- // dir = execDir.;
}
-
- if (dir == null)
- return System.getProperty("user.dir");
- else
- return dir.getPath();
+ return System.getProperty("user.dir");
} catch (Exception e) {
throw new SlcException("Cannot find exec dir", e);
}