<div dir="ltr">So I don't forget by the time we get back from new-years- The bug is in ShellWizard.java:<div><br></div><div><a href="https://issues.jboss.org/browse/FORGE-1407">https://issues.jboss.org/browse/FORGE-1407</a><br>
<div>
<p class=""> <span class="">private</span> CommandLineParser populate(ShellContext shellContext, String line,</p>
<p class=""> <span class="">final</span> Map<String, InputComponent<?, ?>> inputs)</p>
<p class=""> <span class="">throws</span> Exception</p>
<p class=""> {</p>
<p class=""> inputs.putAll(getController().getInputs());</p>
<p class=""> CommandLineParser parser = <span class="">commandLineUtil</span>.generateParser(getController(), shellContext, inputs);</p>
<p class=""> CommandLine cmdLine = parser.parse(line, <span class="">true</span>);</p>
<p class=""> Map<String, InputComponent<?, ?>> populatedInputs = <span class="">commandLineUtil</span>.populateUIInputs(cmdLine, inputs);</p>
<p class=""> <span class="">if</span> (getController().isValid())</p>
<p class=""> {</p>
<p class=""> <span class="">if</span> (getController().canMoveToNextStep())</p>
<p class=""> {</p>
<p class=""><span class=""> </span>// The bug is here. we are immediately moving to the next step and removing all inputs that are not populated.</p>
<p class=""><span class=""> </span>// this really needs to know if we have defaulted to next step or actually moved there willingly</p>
<p class=""><span class=""> </span>// it should not remove old choices until a new choice has been made</p>
<p class=""> getController().next().initialize();</p>
<p class=""> inputs.keySet().retainAll(populatedInputs.keySet());</p>
<p class=""> parser = populate(shellContext, line, inputs);</p>
<p class=""> }</p>
<p class=""> }</p>
<p class=""> <span class="">return</span> parser;</p>
<p class=""> }</p><div><div><br></div>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>"Simpler is better."
</div></div></div></div>