Dietrich Schulten created ARCHETYPE-604:
-------------------------------------------

             Summary: create-from-project: resource files with name containing 
custom property value not included in new project
                 Key: ARCHETYPE-604
                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-604
             Project: Maven Archetype
          Issue Type: Bug
            Reporter: Dietrich Schulten


I have a project with a shell script whose file name contains a custom property 
value.

 

The name of the shellscript:

_start-myproject-with-secrets.sh_

 

Inside _archetype.properties_

serviceName=myproject

 

When I run archetype:create-from-project, a file 
start-__serviceName__-with-secrets.sh is created in the archetype, but that 
file does not end up in new projects created from the archetype because the 
generated archetype-metadata.xml still contains the unchanged file name 
start_myproject-with-secrets.sh:

 
{code:java}
 <fileSet encoding="UTF-8">
  <directory></directory>
  <includes>
    <include>.gitattributes</include>
    <include>.gitignore</include>
    <include>Dockerfile</include>
    <include>mvnw</include>
    <include>mvnw.cmd</include>
    <include>start-myproject-with-secrets.sh</include>
  </includes>
</fileSet>{code}
 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to