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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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><a name="verifyjar">VerifyJar</a></h2>
  23. <h3>Description</h3>
  24. <p>Verifies JAR files with the <tt>jarsigner</tt> command line tool.
  25. It will take a named file in the <tt>jar</tt> attribute. Nested paths are also
  26. supported
  27. </p>
  28. <h3>Parameters</h3>
  29. <table border="1" cellpadding="2" cellspacing="0">
  30. <tr>
  31. <td valign="top"><b>Attribute</b></td>
  32. <td valign="top"><b>Description</b></td>
  33. <td align="center" valign="top"><b>Required</b></td>
  34. </tr>
  35. <tr>
  36. <td valign="top">jar</td>
  37. <td valign="top">the jar file to verify</td>
  38. <td valign="top" align="center">Yes, unless nested paths have
  39. been used.</td>
  40. </tr>
  41. <tr>
  42. <td valign="top">alias</td>
  43. <td valign="top">the alias to verify under</td>
  44. <td valign="top" align="center">Yes.</td>
  45. </tr>
  46. <tr>
  47. <td valign="top">storepass</td>
  48. <td valign="top">password for keystore integrity.</td>
  49. <td valign="top" align="center">Yes.</td>
  50. </tr>
  51. <tr>
  52. <td valign="top">keystore</td>
  53. <td valign="top">keystore location</td>
  54. <td valign="top" align="center">No</td>
  55. </tr>
  56. <tr>
  57. <td valign="top">storetype</td>
  58. <td valign="top">keystore type</td>
  59. <td valign="top" align="center">No</td>
  60. </tr>
  61. <tr>
  62. <td valign="top">keypass</td>
  63. <td valign="top">password for private key (if different)</td>
  64. <td valign="top" align="center">No</td>
  65. </tr>
  66. <tr>
  67. <td valign="top">certificates</td>
  68. <td valign="top">(true | false) display information about certificates</td>
  69. <td valign="top" align="center">No; default false</td>
  70. </tr>
  71. <tr>
  72. <td valign="top">verbose</td>
  73. <td valign="top">(true | false) verbose output when verifying</td>
  74. <td valign="top" align="center">No; default false</td>
  75. </tr>
  76. <tr>
  77. <td valign="top">strict</td>
  78. <td valign="top">(true | false) strict checking when verifying.<br/><em>since Ant 1.9.1</em>.</td>
  79. <td valign="top" align="center">No; default false</td>
  80. </tr>
  81. <tr>
  82. <td valign="top">maxmemory</td>
  83. <td valign="top">Specifies the maximum memory the jarsigner VM will use. Specified in the
  84. style of standard java memory specs (e.g. 128m = 128 MBytes)</td>
  85. <td valign="top" align="center">No</td>
  86. </tr>
  87. <tr>
  88. <td valign="top">executable</td>
  89. <td valign="top">Specify a particular <code>jarsigner</code> executable
  90. to use in place of the default binary (found in the same JDK as
  91. Apache Ant is running in).<br/>
  92. Must support the same command line options as the Sun JDK
  93. jarsigner command.
  94. <em>since Ant 1.8.0</em>.</td>
  95. <td align="center" valign="top">No</td>
  96. </tr>
  97. </table>
  98. <h3>Parameters as nested elements</h3>
  99. <table border="1" cellpadding="2" cellspacing="0">
  100. <tr>
  101. <td valign="top"><b>Attribute</b></td>
  102. <td valign="top"><b>Description</b></td>
  103. <td align="center" valign="top"><b>Required</b></td>
  104. </tr>
  105. <tr>
  106. <td valign="top">path</td>
  107. <td valign="top">path of JAR files to verify. <em>since Ant 1.7</em></td>
  108. <td valign="top" align="center">No</td>
  109. </tr>
  110. <tr>
  111. <td valign="top">fileset</td>
  112. <td valign="top">fileset of JAR files to verify. </td>
  113. <td valign="top" align="center">No</td>
  114. </tr>
  115. <tr>
  116. <td valign="top">sysproperty</td>
  117. <td valign="top">JVM system properties, with the syntax of Ant
  118. <a href="exec.html#env">environment variables</a> </td>
  119. <td valign="top" align="center">No, and only one can be supplied</td>
  120. </tr>
  121. </table>
  122. <h3>Examples</h3>
  123. <blockquote><pre>
  124. &lt;verifyjar jar=&quot;${dist}/lib/ant.jar&quot;
  125. alias=&quot;apache-group&quot; storepass=&quot;secret&quot;/&gt;
  126. </pre></blockquote>
  127. <p>
  128. verifies the ant.jar with alias &quot;apache-group&quot; accessing the
  129. keystore and private key via &quot;secret&quot; password.
  130. </p>
  131. </body>
  132. </html>