How to conditionally enforce workspace name input [message #1752086] |
Wed, 18 January 2017 11:49  |
Eclipse User |
|
|
|
I would like the installer to show "workspace.location" variable choice on the variables page if user starts installer with -DpromptForWorkspace=true option.
I've played with "Workspace" element and filters (the idea was to have two compound setup tasks with (workspaceName.filter=false) or (workspaceName.filter=true)) but Oomph complains that I can't have two elements with same "Workspace" id:
<?xml version="1.0" encoding="UTF-8"?>
<setup:VariableTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
type="BOOLEAN"
name="workspaceName.filter"
value="${promptForWorkspace}"
label="">
<description></description>
</setup:VariableTask>
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0">
<setup:CompoundTask
filter="(workspaceName.filter=true)"
name="promptForWorkspace=true">
<setupTask
xsi:type="setup:WorkspaceTask"
id="workspace"
location="${undefinedValue}"/>
<description></description>
</setup:CompoundTask>
<setup:CompoundTask
filter="(workspaceName.filter=false)"
name="promptForWorkspace=true">
<setupTask
xsi:type="setup:WorkspaceTask"
id="workspace"/>
<description></description>
</setup:CompoundTask>
</xmi:XMI>
Do you have any tricks how I could conditionally enforce that workspace.location is "undefined" and prompted for?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03398 seconds