Skip to content

Commit 0371418

Browse files
committed
Add remainder of supported option
1 parent 86732ab commit 0371418

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

plugins/org.jboss.tools.windup.runtime/mta/help.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,22 @@
9797
</available-options>
9898
<required>false</required>
9999
</option>
100+
<option name="overwrite">
101+
<description>If set, overwrite the report output directory.</description>
102+
<type>Boolean</type>
103+
<ui-type>SINGLE</ui-type>
104+
<required>false</required>
105+
</option>
106+
<option name="analyze-known-libraries">
107+
<description>Analyze known libraries.</description>
108+
<type>Boolean</type>
109+
<ui-type>SINGLE</ui-type>
110+
<required>false</required>
111+
</option>
112+
<option name="rules">
113+
<description>User Rules Directory/File.</description>
114+
<type>File</type>
115+
<ui-type>FILE_OR_DIRECTORY</ui-type>
116+
<required>false</required>
117+
</option>
100118
</help>

plugins/org.jboss.tools.windup.runtime/src/org/jboss/tools/windup/runtime/WindupRuntimePlugin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ public static Help findWindupHelpCache() {
132132
Help result = new Help();
133133
File cacheFile = WindupRuntimePlugin.getMtaOptions();
134134
try {
135-
// URL url = cacheFile.toURI().toURL();
136-
InputStream input = new StringInputStream(WindupRuntimePlugin.getOptions()); // url.openStream();
137-
XMLMemento root = XMLMemento.createReadRoot(input);
135+
URL url = cacheFile.toURI().toURL();
136+
// InputStream input = new StringInputStream(WindupRuntimePlugin.getOptions()); // url.openStream();
137+
XMLMemento root = XMLMemento.createReadRoot(url.openStream());
138138
for (IMemento element : root.getChildren("option")) { //$NON-NLS-1$
139139
String name = element.getString("name"); //$NON-NLS-1$
140140
XMLMemento descriptionChild = (XMLMemento) element.getChild("description"); //$NON-NLS-1$
@@ -172,7 +172,7 @@ private static String getOptions() {
172172
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
173173
+ "<help>\n"
174174
+ " <option name=\"overwrite\">\n"
175-
+ " <description>If set, overwrite the output directory.</description>\n"
175+
+ " <description>If set, overwrite the report output directory.</description>\n"
176176
+ " <type>Boolean</type>\n"
177177
+ " <ui-type>SINGLE</ui-type>\n"
178178
+ " <required>false</required>\n"

0 commit comments

Comments
 (0)