[izpack-changes] r1692 - izpack-src/trunk/src/lib/com/izforge/izpack/panels
noreply at berlios.de
noreply at berlios.de
Tue Jan 9 10:19:21 CET 2007
Author: dreil
Date: 2007-01-09 10:19:20 +0100 (Tue, 09 Jan 2007)
New Revision: 1692
Modified:
izpack-src/trunk/src/lib/com/izforge/izpack/panels/RuleInputField.java
Log:
Added debug information for validator and processor class loading
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/panels/RuleInputField.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/panels/RuleInputField.java 2007-01-09 07:14:06 UTC (rev 1691)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/panels/RuleInputField.java 2007-01-09 09:19:20 UTC (rev 1692)
@@ -39,6 +39,7 @@
import org.apache.regexp.RE;
import com.izforge.izpack.installer.InstallData;
+import com.izforge.izpack.util.Debug;
import com.izforge.izpack.util.VariableSubstitutor;
/*---------------------------------------------------------------------------*/
@@ -243,11 +244,14 @@
// ----------------------------------------------------
try
{
- validationService = (Validator) Class.forName(validator).newInstance();
+ if (validator != null){
+ validationService = (Validator) Class.forName(validator).newInstance();
+ }
}
catch (Throwable exception)
{
- validationService = null;
+ validationService = null;
+ Debug.trace(exception);
}
// ----------------------------------------------------
@@ -255,11 +259,14 @@
// ----------------------------------------------------
try
{
- encryptionService = (Processor) Class.forName(processor).newInstance();
+ if (processor != null){
+ encryptionService = (Processor) Class.forName(processor).newInstance();
+ }
}
catch (Throwable exception)
{
encryptionService = null;
+ Debug.trace(exception);
}
// ----------------------------------------------------
More information about the izpack-changes
mailing list