mbien commented on code in PR #2:
URL: 
https://github.com/apache/netbeans-mavenutils-archetypes/pull/2#discussion_r1210543709


##########
netbeans-jakartaee-war-archetype/src/main/resources/META-INF/archetype-post-generate.groovy:
##########
@@ -0,0 +1,10 @@
+dir = new File(new File(request.outputDirectory), request.artifactId)
+
+jakartaEEVariant = request.getProperties().get("jakartaEEVariant")
+
+if ("jakartaee-core".equals(jakartaEEVariant)) {
+    dir = new File(new File(request.outputDirectory), request.artifactId)
+    persistenceXml = new File(dir.toString() + 
"/src/main/resources/META-INF/persistence.xml");
+
+    persistenceXml.delete()
+}

Review Comment:
   nitpick: consider adding new line before end of file



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

To unsubscribe, e-mail: [email protected]

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

Reply via email to