+ try {
+ if (rootDir != null)
+ System.setProperty(SlcAntConstants.ROOT_DIR_PROPERTY,
+ rootDir.getURL().toString());
+ if (confDir != null)
+ System.setProperty(SlcAntConstants.CONF_DIR_PROPERTY,
+ confDir.getURL().toString());
+ } catch (IOException e) {
+ throw new SlcAntException("Cannot interpret dir as URL.", e);
+ }
+ if (workDir != null)
+ System.setProperty(SlcAntConstants.WORK_DIR_PROPERTY, workDir
+ .toString());
+