You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2020/02/04 19:44:05 UTC

[GitHub] [maven-archetype] ripper2hl commented on a change in pull request #36: Add feature no create base dir

ripper2hl commented on a change in pull request #36: Add feature no create base dir
URL: https://github.com/apache/maven-archetype/pull/36#discussion_r374883848
 
 

 ##########
 File path: archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java
 ##########
 @@ -136,7 +136,8 @@ public void generateArchetype( ArchetypeGenerationRequest request, File archetyp
 
             String packageName = request.getPackage();
             String artifactId = request.getArtifactId();
-            File outputDirectoryFile = new File( request.getOutputDirectory(), artifactId );
+            File outputDirectoryFile = new File( request.getOutputDirectory(),
 
 Review comment:
   `request.getOutputDirectory() ` return a String 
   
   If i use your code , needs a bit change
   
   ```java
   File outputDirectoryFile = request.isCreateBaseDir() ? new File( request.getOutputDirectory(), artifactId):  new File( request.getOutputDirectory() ) ;
   ```

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