private TargetFileSet readFileSet(IXMLElement fileSetNode, File baseDir) throws CompilerException { String dir_attr = getDirSubstitutedAttributeValue(fileSetNode); File extractedBaseDir = baseDir; if (dir_attr != null) { extractedBaseDir = FileUtil.getAbsoluteFile(dir_attr, baseDir.getAbsolutePath()); } String targetDir = fileSetNode.getAttribute("targetdir", "${INSTALL_PATH}"); return readFileSet(fileSetNode, extractedBaseDir, targetDir); }
private void readConfigFileTaskCommonAttributes(InstallData idata, IXMLElement el, ConfigFileTask task) throws InstallerException { File tofile = FileUtil.getAbsoluteFile(replacer.substitute(requireAttribute(el, "tofile")), idata.getInstallPath()); task.setToFile(tofile); task.setOldFile(FileUtil.getAbsoluteFile(getAttribute(el, "patchfile"), idata.getInstallPath())); File newfile = FileUtil.getAbsoluteFile(getAttribute(el, "originalfile"), idata.getInstallPath()); task.setNewFile(newfile); String boolattr = getAttribute(el, "cleanup"); if (boolattr != null) { task.setCleanup(Boolean.parseBoolean(boolattr)); } }
if (strattr != null) fs.setDir(FileUtil.getAbsoluteFile(strattr, installPath)); if (strattr != null) fs.setFile(FileUtil.getAbsoluteFile(strattr, installPath));
task.setToDir(FileUtil.getAbsoluteFile(getAttribute(el, "todir"), idata.getInstallPath())); task.setToFile(FileUtil.getAbsoluteFile(getAttribute(el, "tofile"), idata.getInstallPath())); task.setFile(FileUtil.getAbsoluteFile(getAttribute(el, "fromfile"), idata.getInstallPath())); String boolattr = getAttribute(el, "keepOldKeys"); if (boolattr != null)
File abssrcfile = FileUtil.getAbsoluteFile(src, baseDir.getAbsolutePath()); if (!abssrcfile.exists())
File tofile = FileUtil.getAbsoluteFile(replacer.substitute(requireAttribute(el, "tofile")), idata.getInstallPath()); ((SingleXmlFileMergeTask) task).setToFile(tofile); ((SingleXmlFileMergeTask) task).setPatchFile( FileUtil.getAbsoluteFile(getAttribute(el, "patchfile"), idata.getInstallPath())); File originalfile = FileUtil.getAbsoluteFile(getAttribute(el, "originalfile"), idata.getInstallPath()); if (originalfile == null) FileUtil.getAbsoluteFile(getAttribute(el, "configfile"), idata.getInstallPath())); String boolattr = getAttribute(el, "cleanup"); if (boolattr != null)
effectiveBuildFile = FileUtil.getAbsoluteFile(resolveVariables(buildFile), effectiveBaseDir); effectiveBuildFile = FileUtil.getAbsoluteFile(buildFile, effectiveBaseDir); try act.setLogFile(FileUtil.getAbsoluteFile(str, installData.getInstallPath()), logAppend); act.setLogFile(FileUtil.getAbsoluteFile(str, installData.getInstallPath()), logAppend);