izpack/izpack — pull request #185 by rkrell (2014-03-26 10:04:33+00:00)
Title: [IZPACK-1072] Unset dynamic variables if they cannot be validated any longer for some reason

If a dynamic variable has been successfully evaluated and received a value, but for some reason cannot be reevaluated, for example this one:
```
Mar 25, 2014 3:46:07 PM com.izforge.izpack.core.data.DynamicVariableImpl evaluate
FINE: Error evaluating dynamic variable 'previous.version.4': java.lang.Exception: Error opening jar file /home/rkrell/myapp/lib/server.jar
```
the variable should be rather unset than left on this value. This should just happen if failOnError="false" in case of evaluation failures of the "natural" kind in the above example.

A second usecase for this is the multiple definition of a dynamic variable with one and the same name, but bound to different conditions each time, for example:
```xml

```
For this case, the dynamic variable thechoice should be unset if neither of both conditions, cond1 and cond2, is true, even if there is already a previous value, because a condition became true at an earlier time.

Furthermore, all IOExceptions occuring during dynamic variable evaluation should be logged on DEBUG level (FINE), not as WARN nor INFO, like this one during gathering a dynamic variable value from the output of a command execution:
```
Mar 25, 2014 3:56:46 PM WARNING: java.io.IOException: Cannot run program "/home/rkrell/jre/sun/1.6.0_21/bin/java": java.io.IOException: error=2, No such file or directory
```