Issue Details (XML | Word | Printable)

Key: MPGENAPP-26
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lukas Theussl
Reporter: Charles Rathouis
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Application Generation Plugin

Problem with maven.genapp.repackage.dir and maven.genapp.repackage

Created: 04/May/06 03:22 AM   Updated: 17/Aug/06 06:50 PM   Resolved: 17/Aug/06 06:50 PM
Return to search
Component/s: None
Affects Version/s: 2.3
Fix Version/s: 2.3.1

Time Tracking:
Not Specified

File Attachments: 1. File jelly.diff (1 kB)
2. Zip Archive saint-gobain.zip (44 kB)

Environment: Test on windows


 Description  « Hide

When you use the maven.genapp.repackage.dir properties and set it to . , the files contained in the maven.genapp.repackage directory are not < moved > to the new package directory, but copied in it, and steel in the base directory.

Here is the template.properties file :

maven.genapp.repackage.dir=
maven.genapp.repackage=main/src/java,test/src/unit
maven.genapp.filter=project.xml
maven.genapp.default.package=com.saint-gobain.sgsi.my_application
maven.genapp.filter=project.xml,main/src/webapp/WEB-INF/web.xml

The content of "main/src/java" are not moved in "main/src/java/com/saint-gobain/sgsi/my_application" but copyed in it and steel in the "main/src/java" directory.

If I put the main and test directory in a "src" directory, and remove the "maven.genapp.repackage.dir" propertie, everything works fine.

You can find in attachment the template



Charles Rathouis added a comment - 12/May/06 09:48 AM

Here is a patch which

  • fix this problem
  • add a new feature : Rename the filename which contain tag like @ID@.

Charles Rathouis added a comment - 12/May/06 09:49 AM

Here is a patch which

  • Fix this issue
  • Add a new feature : Rename the file which contains tags into their filename.

Charles Rathouis made changes - 12/May/06 09:49 AM
Field Original Value New Value
Attachment jelly.diff [ 20558 ]
Lukas Theussl made changes - 12/May/06 10:58 AM
Assignee Lukas Theussl [ lukas ]
Fix Version/s 2.3.1 [ 12612 ]
Lukas Theussl added a comment - 17/Aug/06 06:50 PM

I fixed the issue but I couldn't apply your patch: it's not in unified diff format, the ant:exclude part broke some other standard templates, and I couldn't figure out what the rest of the patch is supposed to do. Please open a new issue with a more detailed description.


Lukas Theussl made changes - 17/Aug/06 06:50 PM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]