/** * Returns the OS models associated with an element. * * @param element the element * @return the OSes */ public List<OsModel> getOsModels(IXMLElement element) { return OsConstraintHelper.getOsList(element); }
private void logCombineOsLists(List<OsModel> parentOsList, List<OsModel> osList, List<OsModel> commonOsList) { logger.log(Level.INFO, "Combined parent''s OS constraints:\n\t{0}\nwith node''s:\n\t{1}\ninto:\n\t{2}", new String[]{ OsConstraintHelper.toOsContraintsString(parentOsList), OsConstraintHelper.toOsContraintsString(osList), OsConstraintHelper.toOsContraintsString(commonOsList) } ); } }
CommonOsConstraint arch = OsConstraintHelper.commonConstraint(os.getArch(), otherOs.getArch()); CommonOsConstraint family = OsConstraintHelper.commonConstraint(os.getFamily(), otherOs.getFamily()); CommonOsConstraint jre = OsConstraintHelper.commonConstraint(os.getJre(), otherOs.getJre()); CommonOsConstraint name = OsConstraintHelper.commonConstraint(os.getName(), otherOs.getName()); CommonOsConstraint version = OsConstraintHelper.commonConstraint(os.getVersion(), otherOs.getVersion());
osList = OsConstraintHelper.commonOsList(parentOsList, fs.getOsList()); logCombineOsLists(parentOsList, fs.getOsList(), osList);
List<OsModel> osconstraints = OsConstraintHelper.getOsList(choice);
public UnsatisfiableOsConstraintsException(List<OsModel> osList, List<OsModel> otherOsList) { super(String.format(MESSAGE, toOsContraintsString(osList), toOsContraintsString(otherOsList))); } }
/** * Returns the search choices. * * @return the search choices */ public List<String> getChoices() { selected = -1; List<String> result = new ArrayList<String>(); Config config = getConfig(); IXMLElement spec = getSpec(); String set = config.getString(spec, "set", null); for (IXMLElement element : spec.getChildrenNamed("choice")) { List<OsModel> models = OsConstraintHelper.getOsList(element); if (matcher.matchesCurrentPlatform(models)) { String value = config.getString(element, "value", null); if( value.equals(set) ) { selected = result.size(); } result.add(value); } } return result; }
List<OsModel> osList = OsConstraintHelper.getOsList(singleFileNode); // TODO: unverified OverrideType override = getOverrideValue(singleFileNode); String overrideRenameTo = getOverrideRenameToValue(singleFileNode);
/*deprecated:*/ || "both".equalsIgnoreCase(stage) || "uninstall".equalsIgnoreCase(stage)) List<OsModel> constraints = OsConstraintHelper.getOsList(ixmlElement); List<String> contents = new ArrayList<String>(); contents.add(destination);
List<OsModel> osList = OsConstraintHelper.getOsList(executableNode); // TODO: unverified int executionStage = ExecutableFile.NEVER, type = ExecutableFile.BIN, onFailure = ExecutableFile.ASK; boolean keepFile;
List<OsModel> osConstraints = OsConstraintHelper.getOsList(listener); boolean matchesCurrentSystem = false; if (osConstraints.isEmpty())
List<OsModel> constraints = OsConstraintHelper.getOsList(job_el);
for (IXMLElement shortcutSpec : shortcutSpecs) if (!matcher.matchesCurrentPlatform(OsConstraintHelper.getOsList(shortcutSpec)))
List<OsModel> osList = OsConstraintHelper.getOsList(fileNode); // TODO: unverified fs.setOsList(osList); fs.setOverride(getOverrideValue(fileNode));
panel.setOsConstraints(OsConstraintHelper.getOsList(panelElement)); String className = xmlCompilerHelper.requireAttribute(panelElement, "classname");
/** * Adds installer and uninstaller listeners. * * @param data the XML data * @throws CompilerException if listeners cannot be added */ private void addListeners(IXMLElement data) throws CompilerException { notifyCompilerListener("addListeners", CompilerListener.BEGIN, data); IXMLElement listeners = data.getFirstChildNamed("listeners"); if (listeners != null) { for (IXMLElement listener : listeners.getChildrenNamed("listener")) { String className = xmlCompilerHelper.requireAttribute(listener, "classname"); Stage stage = Stage.valueOf(xmlCompilerHelper.requireAttribute(listener, "stage")); if (Stage.isInInstaller(stage)) { List<OsModel> constraints = OsConstraintHelper.getOsList(listener); compiler.addListener(className, stage, constraints); } } } notifyCompilerListener("addListeners", CompilerListener.END, data); }
pack.setOsConstraints(OsConstraintHelper.getOsList(packElement)); // TODO: pack.setParent(parent); if (conditionId != null)
List<OsModel> osList = OsConstraintHelper.getOsList(fileSetNode); fs.setOsList(osList); fs.setOverride(getOverrideValue(fileSetNode));
SubstitutionType type = SubstitutionType.lookup(parsableNode.getAttribute("type", "plain")); String encoding = parsableNode.getAttribute("encoding", null); List<OsModel> osList = OsConstraintHelper.getOsList(parsableNode); // TODO: unverified String conditionId = parseConditionAttribute(parsableNode); if (target != null)