[izpack-changes] r1739 - izpack-src/trunk/src/lib/com/izforge/izpack/rules
noreply at berlios.de
noreply at berlios.de
Fri Feb 16 15:16:22 CET 2007
Author: dreil
Date: 2007-02-16 15:16:21 +0100 (Fri, 16 Feb 2007)
New Revision: 1739
Modified:
izpack-src/trunk/src/lib/com/izforge/izpack/rules/RulesEngine.java
Log:
Allow fully specified condition class names
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/rules/RulesEngine.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/rules/RulesEngine.java 2007-02-16 13:26:58 UTC (rev 1738)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/rules/RulesEngine.java 2007-02-16 14:16:21 UTC (rev 1739)
@@ -92,13 +92,18 @@
Condition result = null;
if (condtype != null)
{
-
- String conditiontype = condtype.toLowerCase();
- // TODO: externalize package name
- String conditionclassname = "com.izforge.izpack.rules."
+ String conditionclassname = "";
+ if (condtype.indexOf('.')> -1){
+ conditionclassname = condtype;
+ }
+ else {
+ String conditiontype = condtype.toLowerCase();
+ // TODO: externalize package name
+ conditionclassname = "com.izforge.izpack.rules."
+ conditiontype.substring(0, 1).toUpperCase()
+ conditiontype.substring(1, conditiontype.length());
- conditionclassname += "Condition";
+ conditionclassname += "Condition";
+ }
ClassLoader loader = ClassLoader.getSystemClassLoader();
try
{
More information about the izpack-changes
mailing list