This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Default values aren't being displayed when using ASK_FOR. For example, I want to default a checkbox to checked using a variable that equals "true". A command will output the correct value of true for the variable but it isn't displayed correctly as the default of the ASK_FOR checkbox. From a profile: ... <variable basic="false" name="TEST_D"> <value xml:space="preserve">true</value> </variable> ... <command displayName="Test" name="TEST_CMD"> ... <property name="exec"> <value xml:space="preserve">echo TEST_U=${TEST_U},TEST_D=${TEST_D}</value> </property> <property name="inputDescriptor"> <value xml:space="preserve">ASK_FOR(TEST_U, test, "${TEST_D}")</value> </property> ... exec echos the correct values but the checkbox is unchecked in the dialog. Netbeans build 041130
It's likely that the "${TEST_D}" is not expanded (replaced with the value of TEST_D variable) and therefore it stays unchecked. Should be easy to fix...
Fixed in trunk: /cvs/vcscore/src/org/netbeans/modules/vcscore/util/VariableInputDescriptor.java,v <-- VariableInputDescriptor.java new revision: 1.26; previous revision: 1.25