| @@ -272,39 +272,52 @@ public class Os implements Condition { | |||||
| || OS_NAME.contains("ce")); | || OS_NAME.contains("ce")); | ||||
| isNT = !is9x; | isNT = !is9x; | ||||
| } | } | ||||
| if (family.equals(FAMILY_WINDOWS)) { | |||||
| isFamily = isWindows; | |||||
| } else if (family.equals(FAMILY_9X)) { | |||||
| isFamily = isWindows && is9x; | |||||
| } else if (family.equals(FAMILY_NT)) { | |||||
| isFamily = isWindows && isNT; | |||||
| } else if (family.equals(FAMILY_OS2)) { | |||||
| isFamily = OS_NAME.contains(FAMILY_OS2); | |||||
| } else if (family.equals(FAMILY_NETWARE)) { | |||||
| isFamily = OS_NAME.contains(FAMILY_NETWARE); | |||||
| } else if (family.equals(FAMILY_DOS)) { | |||||
| isFamily = PATH_SEP.equals(";") && !isFamily(FAMILY_NETWARE); | |||||
| } else if (family.equals(FAMILY_MAC)) { | |||||
| isFamily = OS_NAME.contains(FAMILY_MAC) | |||||
| || OS_NAME.contains(DARWIN); | |||||
| } else if (family.equals(FAMILY_TANDEM)) { | |||||
| isFamily = OS_NAME.contains("nonstop_kernel"); | |||||
| } else if (family.equals(FAMILY_UNIX)) { | |||||
| isFamily = PATH_SEP.equals(":") | |||||
| && !isFamily(FAMILY_VMS) | |||||
| && (!isFamily(FAMILY_MAC) || OS_NAME.endsWith("x") | |||||
| || OS_NAME.contains(DARWIN)); | |||||
| } else if (family.equals(FAMILY_ZOS)) { | |||||
| isFamily = OS_NAME.contains(FAMILY_ZOS) | |||||
| || OS_NAME.contains("os/390"); | |||||
| } else if (family.equals(FAMILY_OS400)) { | |||||
| isFamily = OS_NAME.contains(FAMILY_OS400); | |||||
| } else if (family.equals(FAMILY_VMS)) { | |||||
| isFamily = OS_NAME.contains(FAMILY_VMS); | |||||
| } else { | |||||
| throw new BuildException( | |||||
| "Don\'t know how to detect os family \"" | |||||
| + family + "\""); | |||||
| switch (family) { | |||||
| case FAMILY_WINDOWS: | |||||
| isFamily = isWindows; | |||||
| break; | |||||
| case FAMILY_9X: | |||||
| isFamily = isWindows && is9x; | |||||
| break; | |||||
| case FAMILY_NT: | |||||
| isFamily = isWindows && isNT; | |||||
| break; | |||||
| case FAMILY_OS2: | |||||
| isFamily = OS_NAME.contains(FAMILY_OS2); | |||||
| break; | |||||
| case FAMILY_NETWARE: | |||||
| isFamily = OS_NAME.contains(FAMILY_NETWARE); | |||||
| break; | |||||
| case FAMILY_DOS: | |||||
| isFamily = PATH_SEP.equals(";") && !isFamily(FAMILY_NETWARE); | |||||
| break; | |||||
| case FAMILY_MAC: | |||||
| isFamily = OS_NAME.contains(FAMILY_MAC) | |||||
| || OS_NAME.contains(DARWIN); | |||||
| break; | |||||
| case FAMILY_TANDEM: | |||||
| isFamily = OS_NAME.contains("nonstop_kernel"); | |||||
| break; | |||||
| case FAMILY_UNIX: | |||||
| isFamily = PATH_SEP.equals(":") | |||||
| && !isFamily(FAMILY_VMS) | |||||
| && (!isFamily(FAMILY_MAC) || OS_NAME.endsWith("x") | |||||
| || OS_NAME.contains(DARWIN)); | |||||
| break; | |||||
| case FAMILY_ZOS: | |||||
| isFamily = OS_NAME.contains(FAMILY_ZOS) | |||||
| || OS_NAME.contains("os/390"); | |||||
| break; | |||||
| case FAMILY_OS400: | |||||
| isFamily = OS_NAME.contains(FAMILY_OS400); | |||||
| break; | |||||
| case FAMILY_VMS: | |||||
| isFamily = OS_NAME.contains(FAMILY_VMS); | |||||
| break; | |||||
| default: | |||||
| throw new BuildException( | |||||
| "Don\'t know how to detect os family \"" | |||||
| + family + "\""); | |||||
| } | } | ||||
| } | } | ||||
| if (name != null) { | if (name != null) { | ||||
| @@ -262,12 +262,16 @@ public class GenericDeploymentTool implements EJBDeploymentTool { | |||||
| } | } | ||||
| String analyzerClassName = null; | String analyzerClassName = null; | ||||
| if (analyzer.equals(ANALYZER_SUPER)) { | |||||
| analyzerClassName = ANALYZER_CLASS_SUPER; | |||||
| } else if (analyzer.equals(ANALYZER_FULL)) { | |||||
| analyzerClassName = ANALYZER_CLASS_FULL; | |||||
| } else { | |||||
| analyzerClassName = analyzer; | |||||
| switch (analyzer) { | |||||
| case ANALYZER_SUPER: | |||||
| analyzerClassName = ANALYZER_CLASS_SUPER; | |||||
| break; | |||||
| case ANALYZER_FULL: | |||||
| analyzerClassName = ANALYZER_CLASS_FULL; | |||||
| break; | |||||
| default: | |||||
| analyzerClassName = analyzer; | |||||
| break; | |||||
| } | } | ||||
| try { | try { | ||||
| @@ -171,16 +171,21 @@ public class MSVSSHISTORY extends MSVSS { | |||||
| */ | */ | ||||
| public void setStyle(BriefCodediffNofile attr) { | public void setStyle(BriefCodediffNofile attr) { | ||||
| String option = attr.getValue(); | String option = attr.getValue(); | ||||
| if (option.equals(STYLE_BRIEF)) { | |||||
| super.setInternalStyle(FLAG_BRIEF); | |||||
| } else if (option.equals(STYLE_CODEDIFF)) { | |||||
| super.setInternalStyle(FLAG_CODEDIFF); | |||||
| } else if (option.equals(STYLE_DEFAULT)) { | |||||
| super.setInternalStyle(""); | |||||
| } else if (option.equals(STYLE_NOFILE)) { | |||||
| super.setInternalStyle(FLAG_NO_FILE); | |||||
| } else { | |||||
| throw new BuildException("Style " + attr + " unknown.", getLocation()); | |||||
| switch (option) { | |||||
| case STYLE_BRIEF: | |||||
| super.setInternalStyle(FLAG_BRIEF); | |||||
| break; | |||||
| case STYLE_CODEDIFF: | |||||
| super.setInternalStyle(FLAG_CODEDIFF); | |||||
| break; | |||||
| case STYLE_DEFAULT: | |||||
| super.setInternalStyle(""); | |||||
| break; | |||||
| case STYLE_NOFILE: | |||||
| super.setInternalStyle(FLAG_NO_FILE); | |||||
| break; | |||||
| default: | |||||
| throw new BuildException("Style " + attr + " unknown.", getLocation()); | |||||
| } | } | ||||
| } | } | ||||
| @@ -405,17 +405,19 @@ public class PropertySet extends DataType implements ResourceCollection { | |||||
| } | } | ||||
| } | } | ||||
| } else if (r.builtin != null) { | } else if (r.builtin != null) { | ||||
| if (r.builtin.equals(BuiltinPropertySetName.ALL)) { | |||||
| names.addAll(props.keySet()); | |||||
| } else if (r.builtin.equals(BuiltinPropertySetName.SYSTEM)) { | |||||
| names.addAll(getAllSystemProperties().keySet()); | |||||
| } else if (r.builtin.equals(BuiltinPropertySetName | |||||
| .COMMANDLINE)) { | |||||
| names.addAll(getProject().getUserProperties().keySet()); | |||||
| } else { | |||||
| throw new BuildException("Impossible: Invalid builtin " | |||||
| + "attribute!"); | |||||
| switch (r.builtin) { | |||||
| case BuiltinPropertySetName.ALL: | |||||
| names.addAll(props.keySet()); | |||||
| break; | |||||
| case BuiltinPropertySetName.SYSTEM: | |||||
| names.addAll(getAllSystemProperties().keySet()); | |||||
| break; | |||||
| case BuiltinPropertySetName.COMMANDLINE: | |||||
| names.addAll(getProject().getUserProperties().keySet()); | |||||
| break; | |||||
| default: | |||||
| throw new BuildException("Impossible: Invalid builtin " | |||||
| + "attribute!"); | |||||
| } | } | ||||
| } else { | } else { | ||||
| throw new BuildException("Impossible: Invalid PropertyRef!"); | throw new BuildException("Impossible: Invalid PropertyRef!"); | ||||