You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by GitBox <gi...@apache.org> on 2019/03/24 08:29:42 UTC

[GitHub] [ant] twogee commented on a change in pull request #89: Added version and mainClass attributes to task.

twogee commented on a change in pull request #89: Added version and mainClass attributes to <jar> task.
URL: https://github.com/apache/ant/pull/89#discussion_r268422972
 
 

 ##########
 File path: manual/Tasks/jar.html
 ##########
 @@ -217,6 +217,23 @@ <h3>Parameters</h3>
       include <samp>META-INF</samp> unless explicitly asked to. <em>Since Ant 1.8.0</em></td>
     <td>No; defaults to <q>false</q></td>
   </tr>
+  <tr>
+    <td>version</td>
+    <td>The <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/module/ModuleDescriptor.Version.html">module version</a>
+      to embed into the jar file's module descriptor, if it has one.  Not used in Java versions
+      older than Java 9.
+    <td>No</td>
+  </tr>
+  <tr>
+    <td>mainClass</td>
+    <td>Fully qualified name of main class of a modular jar file.  Modular jar files, introduced
+      with Java 9, use this instead of their manifest's Main-Class attribute to determine their
+      execution entry point.  Setting this does not affect the manifest in any way, and specifying
+      a Main-Class in the manifest will not cause this attribute to be set.
+      <strong>Note:</strong> If this is set to a class which isn't in the jar file, Java will
+      refuse to load the module at runtime.
 
 Review comment:
   missing </td>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org