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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to