/** * Resolve a filename with Project's help - if we know one that is. * <p/> * <p>Assume the filename is absolute if project is null.</p> */ private static String resolveFile(InstallData idata, String relativeName) throws Exception { File f = FileUtils.resolveFile(new File(idata.getInstallPath()), relativeName); return f.getAbsolutePath(); }
@Override public boolean generateOptions(InstallData installData, Options options) { options.add(InstallData.INSTALL_PATH, installData.getInstallPath()); return true; }
File installInfo = new File(installData.getInstallPath(), InstallData.INSTALLATION_INFORMATION); try
String installDir = installData.getInstallPath(); File dir = new File(installData.getInstallPath()); if (!dir.exists())
@Override public boolean generateOptions(InstallData installData, Options options) { final String name = InstallData.INSTALL_PATH; options.add(name, installData.getInstallPath()); options.addEmptyLine(name); options.putComment(name, Arrays.asList(getPanel().getPanelId())); return true; }
final_cmdline.add(0, "-verbose"); File _logfile = new File(this.idata.getInstallPath(), "compile-" + getName() + ".log");
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)); } }
File absoluteInstallPath = new File(installData.getInstallPath()).getAbsoluteFile(); FileSet fileset = new FileSet(); List<File> filesToDelete = new ArrayList<File>();
if(file.getAbsolutePath().startsWith(installData.getInstallPath()))
@Override public void createInstallationRecord(InstallData idata, IXMLElement panelRoot) { // Installation path markup IXMLElement ipath = new XMLElementImpl("installpath", panelRoot); // check this writes even if value is the default, // because without the constructor, default does not get set. ipath.setContent(idata.getInstallPath()); // Checkings to fix bug #1864 IXMLElement prev = panelRoot.getFirstChildNamed("installpath"); if (prev != null) { panelRoot.removeChild(prev); } panelRoot.addChild(ipath); }
@Override public void createInstallationRecord(InstallData installData, IXMLElement panelRoot) { // Installation path markup IXMLElement ipath = new XMLElementImpl("installpath", panelRoot); // check this writes even if value is the default, // because without the constructor, default does not get set. ipath.setContent(installData.getInstallPath()); // Checkings to fix bug #1864 IXMLElement prev = panelRoot.getFirstChildNamed("installpath"); if (prev != null) { panelRoot.removeChild(prev); } panelRoot.addChild(ipath); }
File relativePath = new File(installData.getInstallPath() + FS + ApplicationShortcutPath); shortCutLocation = new File(installData.getInstallPath());
String currentPath = installData.getInstallPath(); if (currentPath != null)
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)
/** * Runs the panel using the specified console. * * @param installData the installation data * @param console the console * @return <tt>true</tt> */ @Override public boolean run(InstallData installData, Console console) { printHeadLine(installData, console); if (doGenerateAutoInstallScript()) { generateAutoInstallScript(installData, uninstallData, console); } if (installData.isInstallSuccess()) { console.println("Installation was successful"); console.println("Application installed on " + installData.getInstallPath()); } else { console.println("Installation failed!"); } return true; }
try String installPath = getInstallData().getInstallPath(); while (iter.hasNext())
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)
String effectiveBaseDir = buildDir!=null ? buildDir : installData.getInstallPath(); if (null != buildFile) try act.setLogFile(FileUtil.getAbsoluteFile(str, installData.getInstallPath()), logAppend); act.setLogFile(FileUtil.getAbsoluteFile(str, installData.getInstallPath()), logAppend);