entlicher commented on a change in pull request #2474:
URL: https://github.com/apache/netbeans/pull/2474#discussion_r509056198
##########
File path:
java/maven/test/unit/src/org/netbeans/modules/maven/runjar/RunJarPrereqCheckerTest.java
##########
@@ -63,4 +69,103 @@ public void testWriteMapping() throws Exception {
assertEquals(1, mapping.getActions().size());
}
+ public void testMainClassManifest() throws Exception {
+ TestFileUtils.writeFile(d, "pom.xml",
+ "<project>\n" +
+ " <modelVersion>4.0.0</modelVersion>\n" +
+ " <groupId>testgrp</groupId>\n" +
+ " <artifactId>testart</artifactId>\n" +
+ " <version>1.0</version>\n" +
+ " <build>\n" +
+ " <plugins>\n" +
+ " <plugin>\n" +
+ "
<groupId>org.apache.maven.plugins</groupId>\n" +
+ " <artifactId>maven-jar-plugin</artifactId>\n" +
+ " <configuration>\n" +
+ " <archive>\n" +
+ " <manifest>\n" +
+ "
<mainClass>com.mycompany.Main2</mainClass>\n" +
Review comment:
Yes, it does. A test added.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists