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 4.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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 scope="col">Attribute</th>
  32. <th scope="col">Description</th>
  33. <th scope="col">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.
  48. Note that
  49. jarsigner does not read the password from stdin during
  50. verification, so the password must be send via a command line
  51. interface and may be visible to other users of the system.</td>
  52. <td>No</td>
  53. </tr>
  54. <tr>
  55. <td>keystore</td>
  56. <td>keystore location</td>
  57. <td>No</td>
  58. </tr>
  59. <tr>
  60. <td>storetype</td>
  61. <td>keystore type</td>
  62. <td>No</td>
  63. </tr>
  64. <tr>
  65. <td>keypass</td>
  66. <td>password for private key (if different)</td>
  67. <td>No</td>
  68. </tr>
  69. <tr>
  70. <td>certificates</td>
  71. <td>(<q>true|false</q>) display information about certificates</td>
  72. <td>No; default <q>false</q></td>
  73. </tr>
  74. <tr>
  75. <td>verbose</td>
  76. <td>(<q>true|false</q>) verbose output when verifying</td>
  77. <td>No; default <q>false</q></td>
  78. </tr>
  79. <tr>
  80. <td>strict</td>
  81. <td>(<q>true|false</q>) strict checking when verifying.<br/><em>since Ant 1.9.1</em>.</td>
  82. <td>No; default <q>false</q></td>
  83. </tr>
  84. <tr>
  85. <td>maxmemory</td>
  86. <td>Specifies the maximum memory the <kbd>jarsigner</kbd> JVM will use. Specified in the style
  87. of standard Java memory specs (e.g. <q>128m</q> = 128 MBytes)</td>
  88. <td>No</td>
  89. </tr>
  90. <tr>
  91. <td>executable</td>
  92. <td>Specify a particular <kbd>jarsigner</kbd> executable to use in place of the default binary
  93. (found in the same JDK as Apache Ant is running in).<br/> Must support the same command line
  94. options as the Sun JDK <kbd>jarsigner</kbd> command. <em>since Ant 1.8.0</em>.</td>
  95. <td>No</td>
  96. </tr>
  97. </table>
  98. <h3>Parameters as nested elements</h3>
  99. <table class="attr">
  100. <tr>
  101. <th scope="col">Attribute</th>
  102. <th scope="col">Description</th>
  103. <th scope="col">Required</th>
  104. </tr>
  105. <tr>
  106. <td>path</td>
  107. <td>path of JAR files to verify. <em>since Ant 1.7</em></td>
  108. <td>No</td>
  109. </tr>
  110. <tr>
  111. <td>fileset</td>
  112. <td>fileset of JAR files to verify.</td>
  113. <td>No</td>
  114. </tr>
  115. <tr>
  116. <td>sysproperty</td>
  117. <td>JVM system properties, with the syntax of Ant <a href="exec.html#env">environment
  118. variables</a></td>
  119. <td>No, and only one can be supplied</td>
  120. </tr>
  121. </table>
  122. <h3>Examples</h3>
  123. <p>Verify the <samp>ant.jar</samp> with alias <q>apache-group</q> accessing the keystore and private
  124. key via <q>secret</q> password.</p>
  125. <pre>
  126. &lt;verifyjar jar=&quot;${dist}/lib/ant.jar&quot;
  127. alias=&quot;apache-group&quot; storepass=&quot;secret&quot;/&gt;</pre>
  128. </body>
  129. </html>