You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/docs/ant-task.html
+11-2
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,15 @@ <h2>Parameters</h2>
151
151
pattern may be used (e.g., <code>**.SuppressForbidden</code>).</td>
152
152
</tr>
153
153
154
+
<tr>
155
+
<td>targetVersion</td>
156
+
<td><code>String</code></td>
157
+
<td></td>
158
+
<td>The compiler target version used to expand references to bundled JDK signatures.
159
+
E.g., if you use "jdk-deprecated", it will expand to this version.
160
+
This setting should be identical to the target version used when invoking <tt>javac</tt>.</td>
161
+
</tr>
162
+
154
163
</table>
155
164
156
165
<h2>Parameters specified as nested elements</h2>
@@ -165,8 +174,8 @@ <h2>Parameters specified as nested elements</h2>
165
174
<p>To pass in signatures, you have several possibilities:</p>
166
175
167
176
<ul>
168
-
<li>Use <code>bundledSignatures</code> element to pass a <ahref="bundled-signatures.html">built-in signatures</a> file, e.g. <code><bundledsignatures name="jdk-unsafe-1.7"/></code></li>
169
-
<li>Use <code>signatures</code> element to wrap any valid <ahref="https://ant.apache.org/manual/Types/resources.html">Ant resource</a> type (filesets,..). May also be used to wrap <code><bundled name="jdk-unsafe-1.7"/></code></li>
177
+
<li>Use <code>bundledSignatures</code> element to pass a <ahref="bundled-signatures.html">built-in signatures</a> file, e.g. <code><bundledsignatures name="jdk-unsafe" targetVersion="1.7"/></code></li>
178
+
<li>Use <code>signatures</code> element to wrap any valid <ahref="https://ant.apache.org/manual/Types/resources.html">Ant resource</a> type (filesets,..). May also be used to wrap <code><bundled name="jdk-unsafe" targetVersion="1.7"/></code></li>
170
179
<li>Alternatively, use <code>signaturesFileSet</code>, <code>signaturesFileList</code>, <code>signaturesFile</code> elements to pass in collections of signatures files. Those elements behave like the corresponding standard Ant types.</li>
171
180
<li>Place signatures as plain text (use CDATA sections) inside the <code>forbiddenapis</code> element.</li>
"The setting 'internalRuntimeForbidden' was deprecated and will be removed in next version. For backwards compatibility task/mojo is using '%s' bundled signatures instead.", BS_JDK_NONPORTABLE);
0 commit comments