Generator does not handle dot files in module root directories
--------------------------------------------------------------
Key: ARCHETYPE-170
URL: http://jira.codehaus.org/browse/ARCHETYPE-170
Project: Maven Archetype
Issue Type: Bug
Components: Generator
Affects Versions: 2.0-alpha-3
Environment: mvn 2.0.9
java 1.6.0_05
maven-archetype-plugin 2.0-alpha-3
Reporter: Alison
Priority: Minor
Dot files (e.g. ".springBeans") are getting created with strange prefixes (i.e.
"__rootArtifactId__-impl.springBeans").
Within my archetype (created from archetype:create-from-project) I have
.springBeans and .checkstyle files at the module root level, as per eclipses
requirements:
./src/main/resources/archetype-resources/__rootArtifactId__-impl/.springBeans
./src/main/resources/archetype-resources/__rootArtifactId__-impl/.checkstyle
Copying of these files in controlled via archetype-metadata.xml as follows:
<?xml version="1.0" encoding="UTF-8"?>
<archetype-descriptor name="suncorp-archetype-apiimpl">
<fileSets>
<fileSet filtered="true" encoding="UTF-8">
<directory></directory>
<includes>
<include>test.properties</include>
</includes>
</fileSet>
</fileSets>
<modules>
<module id="${rootArtifactId}-impl" dir="__rootArtifactId__-impl"
name="${rootArtifactId}-impl">
<fileSets>
...
<fileSet encoding="UTF-8" filtered="false">
<directory></directory>
<includes>
<include>.checkstyle</include>
<include>.springBeans</include>
</includes>
</fileSet>
</fileSets>
</module>
</modules>
</archetype-descriptor>
When I run archetype:generate using this archetype the following files are
created:
blah-impl/__rootArtifactId__-impl.springBeans
blah-impl/__rootArtifactId__-impl.checkstyle
I have tried setting the directory as "." (nothing gets copied) and "./" (same
bad file names occur).
Will delve into the DefaultFilesetArchetypeGenerator codebase...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira