You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

verifyjar.html 3.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Language" content="en-us">
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>VerifyJar Task</title>
  20. </head>
  21. <body>
  22. <h2 id="verifyjar">VerifyJar</h2>
  23. <h3>Description</h3>
  24. <p>Verifies JAR files with
  25. the <a href="https://docs.oracle.com/javase/8/docs/technotes/tools/windows/jarsigner.html"
  26. target="_top"><kbd>jarsigner</kbd></a> command line tool. It will take a named file in
  27. the <var>jar</var> attribute. Nested paths are also supported.</p>
  28. <h3>Parameters</h3>
  29. <table class="attr">
  30. <tr>
  31. <th>Attribute</th>
  32. <th>Description</th>
  33. <th>Required</th>
  34. </tr>
  35. <tr>
  36. <td>jar</td>
  37. <td>the jar file to verify</td>
  38. <td>Yes, unless nested paths have been used</td>
  39. </tr>
  40. <tr>
  41. <td>alias</td>
  42. <td>the alias to verify under</td>
  43. <td>Yes</td>
  44. </tr>
  45. <tr>
  46. <td>storepass</td>
  47. <td>password for keystore integrity.</td>
  48. <td>Yes</td>
  49. </tr>
  50. <tr>
  51. <td>keystore</td>
  52. <td>keystore location</td>
  53. <td>No</td>
  54. </tr>
  55. <tr>
  56. <td>storetype</td>
  57. <td>keystore type</td>
  58. <td>No</td>
  59. </tr>
  60. <tr>
  61. <td>keypass</td>
  62. <td>password for private key (if different)</td>
  63. <td>No</td>
  64. </tr>
  65. <tr>
  66. <td>certificates</td>
  67. <td>(<q>true|false</q>) display information about certificates</td>
  68. <td>No; default <q>false</q></td>
  69. </tr>
  70. <tr>
  71. <td>verbose</td>
  72. <td>(<q>true|false</q>) verbose output when verifying</td>
  73. <td>No; default <q>false</q></td>
  74. </tr>
  75. <tr>
  76. <td>strict</td>
  77. <td>(<q>true|false</q>) strict checking when verifying.<br/><em>since Ant 1.9.1</em>.</td>
  78. <td>No; default <q>false</q></td>
  79. </tr>
  80. <tr>
  81. <td>maxmemory</td>
  82. <td>Specifies the maximum memory the <kbd>jarsigner</kbd> JVM will use. Specified in the style
  83. of standard Java memory specs (e.g. <q>128m</q> = 128 MBytes)</td>
  84. <td>No</td>
  85. </tr>
  86. <tr>
  87. <td>executable</td>
  88. <td>Specify a particular <kbd>jarsigner</kbd> executable to use in place of the default binary
  89. (found in the same JDK as Apache Ant is running in).<br/> Must support the same command line
  90. options as the Sun JDK <kbd>jarsigner</kbd> command. <em>since Ant 1.8.0</em>.</td>
  91. <td>No</td>
  92. </tr>
  93. </table>
  94. <h3>Parameters as nested elements</h3>
  95. <table class="attr">
  96. <tr>
  97. <th>Attribute</th>
  98. <th>Description</th>
  99. <th>Required</th>
  100. </tr>
  101. <tr>
  102. <td>path</td>
  103. <td>path of JAR files to verify. <em>since Ant 1.7</em></td>
  104. <td>No</td>
  105. </tr>
  106. <tr>
  107. <td>fileset</td>
  108. <td>fileset of JAR files to verify.</td>
  109. <td>No</td>
  110. </tr>
  111. <tr>
  112. <td>sysproperty</td>
  113. <td>JVM system properties, with the syntax of Ant <a href="exec.html#env">environment
  114. variables</a></td>
  115. <td>No, and only one can be supplied</td>
  116. </tr>
  117. </table>
  118. <h3>Examples</h3>
  119. <pre>
  120. &lt;verifyjar jar=&quot;${dist}/lib/ant.jar&quot;
  121. alias=&quot;apache-group&quot; storepass=&quot;secret&quot;/&gt;</pre>
  122. <p>verifies the <samp>ant.jar</samp> with alias <q>apache-group</q> accessing the keystore and
  123. private key via <q>secret</q> password.</p>
  124. </body>
  125. </html>