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.4 kB

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