[jira] (ARCHETYPE-453) problem with ${package} in java file

2013-12-11 Thread prabal kumar (JIRA)

[ 
https://jira.codehaus.org/browse/ARCHETYPE-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=337200#comment-337200
 ] 

prabal kumar commented on ARCHETYPE-453:


I further looked into this problem and came to know that template is created by 
appending escaping variables at the top of the java file. For example, 
${package} is being converted to ${symbol_dollar}{package}. Hence, it is not 
being replaced at the time of end project creation. If I manually change 
${symbol_dollar}{package} to ${package} in the target folder, the value is 
being replaced successfully.
How to avoid this situation? How can I make sure that template is not appending 
these extra lines at the top?

 problem with ${package} in java file
 

 Key: ARCHETYPE-453
 URL: https://jira.codehaus.org/browse/ARCHETYPE-453
 Project: Maven Archetype
  Issue Type: Bug
Reporter: prabal kumar

 I am using ${package} in my java file and it is not being replaced after 
 using mvn archetype:generate -DarchetypeCatalog=local command and providing 
 all the properties. However, __packageInPathInfo__ is creating correct 
 desired directory structure. 
 Am I missing something?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (ARCHETYPE-453) problem with ${package} in java file

2013-12-11 Thread prabal kumar (JIRA)

 [ 
https://jira.codehaus.org/browse/ARCHETYPE-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

prabal kumar updated ARCHETYPE-453:
---

Description: 
I am using ${package} in my java file and it is not being replaced after using 
mvn archetype:generate -DarchetypeCatalog=local command and providing all the 
properties. However, __packageInPathFormat__ is creating correct desired 
directory structure. 
Am I missing something?

  was:
I am using ${package} in my java file and it is not being replaced after using 
mvn archetype:generate -DarchetypeCatalog=local command and providing all the 
properties. However, __packageInPathInfo__ is creating correct desired 
directory structure. 
Am I missing something?


 problem with ${package} in java file
 

 Key: ARCHETYPE-453
 URL: https://jira.codehaus.org/browse/ARCHETYPE-453
 Project: Maven Archetype
  Issue Type: Bug
Reporter: prabal kumar

 I am using ${package} in my java file and it is not being replaced after 
 using mvn archetype:generate -DarchetypeCatalog=local command and providing 
 all the properties. However, __packageInPathFormat__ is creating correct 
 desired directory structure. 
 Am I missing something?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (ARCHETYPE-453) problem with ${package} in java file

2013-12-09 Thread prabal kumar (JIRA)
prabal kumar created ARCHETYPE-453:
--

 Summary: problem with ${package} in java file
 Key: ARCHETYPE-453
 URL: https://jira.codehaus.org/browse/ARCHETYPE-453
 Project: Maven Archetype
  Issue Type: Bug
Reporter: prabal kumar


I am using ${package} in my java file and it is not being replaced after using 
mvn archetype:generate -DarchetypeCatalog=local command and providing all the 
properties. However, __packageInPathInfo__ is creating correct desired 
directory structure. 
Am I missing something?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (ARCHETYPE-241) Filtering of directory name same as filenames

2013-12-05 Thread prabal kumar (JIRA)

[ 
https://jira.codehaus.org/browse/ARCHETYPE-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=336821#comment-336821
 ] 

prabal kumar commented on ARCHETYPE-241:


I am facing the same issue. Have you resolved this? Please provide me the 
solution or link. Thanks.

 Filtering of directory name same as filenames
 -

 Key: ARCHETYPE-241
 URL: https://jira.codehaus.org/browse/ARCHETYPE-241
 Project: Maven Archetype
  Issue Type: Improvement
  Components: Generator
Affects Versions: 2.0-alpha-4
Reporter: Roy van Rijn
Priority: Minor

 Currently I have the following setup:
 target\generated-sources\archetype\src\main\resources\archetype-resources:
 - __rootArtifactId__-test1
- src
   - main
  - java
 - __projectName__-test2
- src
   - main
  - java
 - Test-__projectName__.java
This is ${projectName}!
 When I use this archetype with the required property projectName set to 
 myName it generates:
 - myArtifactId-test1
- src
   - main
  - java
 - __projectName__-test2
- src
   - main
  - java
 - Test-myName.java
This is myName!
 This project builds as expected, but as you can see, the property is changed 
 in all the filenames (thanks to ARCHETYPE-191) and Velocity changes the 
 property in the files, but the directory isn't renamed. I would expect that 
 the directory and module would also accept custom properties besides the 
 usual rootArtifactId?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira