[izpack-changes] r1751 - izpack-src/trunk/src/lib/com/izforge/izpack/panels

noreply at berlios.de noreply at berlios.de
Mon Feb 19 09:54:05 CET 2007


Author: dreil
Date: 2007-02-19 09:54:03 +0100 (Mon, 19 Feb 2007)
New Revision: 1751

Modified:
   izpack-src/trunk/src/lib/com/izforge/izpack/panels/UserInputPanel.java
Log:
support value element in variable def


Modified: izpack-src/trunk/src/lib/com/izforge/izpack/panels/UserInputPanel.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/panels/UserInputPanel.java	2007-02-19 08:33:42 UTC (rev 1750)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/panels/UserInputPanel.java	2007-02-19 08:54:03 UTC (rev 1751)
@@ -3255,6 +3255,17 @@
             XMLElement variable = (XMLElement) variables.elementAt(i);
             String vname = variable.getAttribute(ATTRIBUTE_VARIABLE_NAME);
             String vvalue = variable.getAttribute(ATTRIBUTE_VARIABLE_VALUE);
+            
+            if (vvalue == null)
+            {
+                // try to read value element
+                if (variable.hasChildren())
+                {
+                    XMLElement value = variable.getFirstChildNamed("value");
+                    vvalue = value.getContent();
+                }
+            }
+            
             String conditionid = variable.getAttribute(ATTRIBUTE_CONDITIONID_NAME);
             if (conditionid != null)
             {




More information about the izpack-changes mailing list