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.

signjar.html 4.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css"/>
  5. <title>SignJar Task</title>
  6. </head>
  7. <body>
  8. <h2><a name="signjar">SignJar</a></h2>
  9. <h3>Description</h3>
  10. <p>Signs jar or zip files with the javasign command line tool. The
  11. tool detailed dependency checking: files are only signed if they
  12. are not signed. The <tt>signjar</tt> attribute can point to the file to
  13. generate; if this file exists then
  14. its modification date is used as a cue as to whether to resign any JAR file.
  15. </p>
  16. <h3>Parameters</h3>
  17. <table border="1" cellpadding="2" cellspacing="0">
  18. <tr>
  19. <td valign="top"><b>Attribute</b></td>
  20. <td valign="top"><b>Description</b></td>
  21. <td align="center" valign="top"><b>Required</b></td>
  22. </tr>
  23. <tr>
  24. <td valign="top">jar</td>
  25. <td valign="top">the jar file to sign</td>
  26. <td valign="top" align="center">Yes, unless nested filesets have
  27. been used.</td>
  28. </tr>
  29. <tr>
  30. <td valign="top">alias</td>
  31. <td valign="top">the alias to sign under</td>
  32. <td valign="top" align="center">Yes.</td>
  33. </tr>
  34. <tr>
  35. <td valign="top">storepass</td>
  36. <td valign="top">password for keystore integrity.</td>
  37. <td valign="top" align="center">Yes.</td>
  38. </tr>
  39. <tr>
  40. <td valign="top">keystore</td>
  41. <td valign="top">keystore location</td>
  42. <td valign="top" align="center">No</td>
  43. </tr>
  44. <tr>
  45. <td valign="top">storetype</td>
  46. <td valign="top">keystore type</td>
  47. <td valign="top" align="center">No</td>
  48. </tr>
  49. <tr>
  50. <td valign="top">keypass</td>
  51. <td valign="top">password for private key (if different)</td>
  52. <td valign="top" align="center">No</td>
  53. </tr>
  54. <tr>
  55. <td valign="top">sigfile</td>
  56. <td valign="top">name of .SF/.DSA file</td>
  57. <td valign="top" align="center">No</td>
  58. </tr>
  59. <tr>
  60. <td valign="top">signedjar</td>
  61. <td valign="top">name of signed JAR file</td>
  62. <td valign="top" align="center">No</td>
  63. </tr>
  64. <tr>
  65. <td valign="top">verbose</td>
  66. <td valign="top">(true | false) verbose output when signing</td>
  67. <td valign="top" align="center">No; default false</td>
  68. </tr>
  69. <tr>
  70. <td valign="top">internalsf</td>
  71. <td valign="top">(true | false) include the .SF file inside the signature
  72. block</td>
  73. <td valign="top" align="center">No; default false</td>
  74. </tr>
  75. <tr>
  76. <td valign="top">sectionsonly</td>
  77. <td valign="top">(true | false) don't compute hash of entire manifest</td>
  78. <td valign="top" align="center">No; default false</td>
  79. </tr>
  80. <tr>
  81. <td valign="top">lazy</td>
  82. <td valign="top">flag to control whether the presence of a signature
  83. file means a JAR is signed</td>
  84. <td valign="top" align="center">No; default false</td>
  85. </tr>
  86. <tr>
  87. <td valign="top">maxmemory</td>
  88. <td valign="top">Specifies the maximum memory the jarsigner VM will use. Specified in the
  89. style of standard java memory specs (e.g. 128m = 128 MBytes)</td>
  90. <td valign="top" align="center">No</td>
  91. </tr>
  92. <tr>
  93. <td valign="top">preservelastmodified</td>
  94. <td valign="top">Give the signed file the same last modified
  95. time as the original jar file.</td>
  96. <td valign="top" align="center">No; default false.</td>
  97. </tr>
  98. </table>
  99. <h3>Parameters as nested elements</h3>
  100. <table border="1" cellpadding="2" cellspacing="0">
  101. <tr>
  102. <td valign="top"><b>Attribute</b></td>
  103. <td valign="top"><b>Description</b></td>
  104. <td align="center" valign="top"><b>Required</b></td>
  105. </tr>
  106. <tr>
  107. <td valign="top">fileset</td>
  108. <td valign="top">fileset of JAR files to sign. Will be ignored if
  109. the jar attribute of the task has been set.</td>
  110. <td valign="top" align="center">No</td>
  111. </tr>
  112. </table>
  113. <h3>Examples</h3>
  114. <blockquote><pre>
  115. &lt;signjar jar=&quot;${dist}/lib/ant.jar&quot;
  116. alias=&quot;apache-group&quot; storepass=&quot;secret&quot;/&gt;
  117. </pre></blockquote>
  118. <p>
  119. signs the ant.jar with alias &quot;apache-group&quot; accessing the
  120. keystore and private key via &quot;secret&quot; password.
  121. </p>
  122. <hr>
  123. <p align="center">Copyright &copy; 2000-2005 The Apache Software Foundation. All rights
  124. Reserved.</p>
  125. </body>
  126. </html>