public static String toCPath(final String s) { if (PathHelper.isRelative(s)) return "./" + s; else return s.substring(1); }
public File getCCompiledOutputFile(final String path, final Map<Object, Object> context) throws ADLException { if (isRelative(path)) throw new IllegalArgumentException("path must be absolute"); final File outDir = getOutputDir(context); return mkdirs(new File(outDir, path)); }
public File getCSourceOutputFile(final String path, final Map<Object, Object> context) throws ADLException { if (isRelative(path)) throw new IllegalArgumentException("path must be absolute"); final File outDir = getOutputDir(context); return mkdirs(new File(outDir, path)); }
public File getMetadataOutputFile(final String path, final Map<Object, Object> context) throws ADLException { if (isRelative(path)) throw new IllegalArgumentException("path must be absolute"); final File outDir = getOutputDir(context); return mkdirs(new File(outDir, path)); }
if (!isRelative(path)) return path;
"Invalid executable name \"" + outputPath + "\"."); if (isRelative(outputPath)) { outputPath = "/" + outputPath;