You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org> on 2008/02/22 10:00:30 UTC

[jira] Created: (ARCHETYPE-135) add a variabl containing package in a path format

add a variabl containing package in a path format
-------------------------------------------------

                 Key: ARCHETYPE-135
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-135
             Project: Maven Archetype
          Issue Type: Improvement
    Affects Versions: 2.0-alpha-2
            Reporter: Dominique Jean-Prost


Actually, there is a variable "package" than can be used in the file during generation.
It could be great if there was another variable than contained the package in a path format. Example :

package = com.foo
packageInPathFormat=com/foo

This new variable could be used in resources path.

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

        

[jira] Commented: (ARCHETYPE-135) add a variabl containing package in a path format

Posted by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137113#action_137113 ] 

Raphaël Piéroni commented on ARCHETYPE-135:
-------------------------------------------

I just rechecked, and there are tests that checks the feature
in the archetype creation and the project generation.

Can you please attach a test case to reproduce?



> add a variabl containing package in a path format
> -------------------------------------------------
>
>                 Key: ARCHETYPE-135
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-135
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-2
>            Reporter: Dominique Jean-Prost
>
> Actually, there is a variable "package" than can be used in the file during generation.
> It could be great if there was another variable than contained the package in a path format. Example :
> package = com.foo
> packageInPathFormat=com/foo
> This new variable could be used in resources path.

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

       

[jira] Reopened: (ARCHETYPE-135) add a variabl containing package in a path format

Posted by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/ARCHETYPE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominique Jean-Prost reopened ARCHETYPE-135:
--------------------------------------------


Well, I guess there is a problem.
The variable ${packageInPathFormat} is created and then usable, but the value is not correct. It still shows dots instead of slashes. Can you check ?

> add a variabl containing package in a path format
> -------------------------------------------------
>
>                 Key: ARCHETYPE-135
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-135
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-2
>            Reporter: Dominique Jean-Prost
>             Fix For: 2.0-alpha-3
>
>
> Actually, there is a variable "package" than can be used in the file during generation.
> It could be great if there was another variable than contained the package in a path format. Example :
> package = com.foo
> packageInPathFormat=com/foo
> This new variable could be used in resources path.

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

        

[jira] Updated: (ARCHETYPE-135) add a variabl containing package in a path format

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/ARCHETYPE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated ARCHETYPE-135:
-----------------------------------

    Fix Version/s:     (was: 2.0-alpha-3)

> add a variabl containing package in a path format
> -------------------------------------------------
>
>                 Key: ARCHETYPE-135
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-135
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-2
>            Reporter: Dominique Jean-Prost
>
> Actually, there is a variable "package" than can be used in the file during generation.
> It could be great if there was another variable than contained the package in a path format. Example :
> package = com.foo
> packageInPathFormat=com/foo
> This new variable could be used in resources path.

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

        

[jira] Closed: (ARCHETYPE-135) add a variabl containing package in a path format

Posted by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/ARCHETYPE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raphaël Piéroni closed ARCHETYPE-135.
-------------------------------------

    Resolution: Cannot Reproduce

This was inadvertently reopen

> add a variabl containing package in a path format
> -------------------------------------------------
>
>                 Key: ARCHETYPE-135
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-135
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-2
>            Reporter: Dominique Jean-Prost
>
> Actually, there is a variable "package" than can be used in the file during generation.
> It could be great if there was another variable than contained the package in a path format. Example :
> package = com.foo
> packageInPathFormat=com/foo
> This new variable could be used in resources path.

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

       

[jira] Commented: (ARCHETYPE-135) add a variabl containing package in a path format

Posted by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_125263 ] 

Dominique Jean-Prost commented on ARCHETYPE-135:
------------------------------------------------

My use case is the following. I want to setup an archetype for my company in which I use spring.
My spring config files are located in package dir. For instance :
com
   \foo
       \spring.xml
       \spring2.xml
I can generate spring.xml and spring2.xml in the correct dir using archetype-metadata.xml. That's ok.
But in spring2.xml, I would like to have this :

<beans>
 <import classpath:com/foo/spring.xml/> 
</beans>
In this example, I need to get the ${package} variable transformed from the dot notation to to the slash notation. So that I could write the following in my spring2.xml template :

<beans>
 <import classpath:${packageInPathFormat}/spring.xml/> 
</beans>






> add a variabl containing package in a path format
> -------------------------------------------------
>
>                 Key: ARCHETYPE-135
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-135
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-2
>            Reporter: Dominique Jean-Prost
>
> Actually, there is a variable "package" than can be used in the file during generation.
> It could be great if there was another variable than contained the package in a path format. Example :
> package = com.foo
> packageInPathFormat=com/foo
> This new variable could be used in resources path.

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

        

[jira] Updated: (ARCHETYPE-135) add a variabl containing package in a path format

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/ARCHETYPE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated ARCHETYPE-135:
------------------------------------

    Fix Version/s: 2.0-alpha-3
         Assignee: Raphaël Piéroni

> add a variabl containing package in a path format
> -------------------------------------------------
>
>                 Key: ARCHETYPE-135
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-135
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-2
>            Reporter: Dominique Jean-Prost
>            Assignee: Raphaël Piéroni
>             Fix For: 2.0-alpha-3
>
>
> Actually, there is a variable "package" than can be used in the file during generation.
> It could be great if there was another variable than contained the package in a path format. Example :
> package = com.foo
> packageInPathFormat=com/foo
> This new variable could be used in resources path.

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

       

[jira] Commented: (ARCHETYPE-135) add a variabl containing package in a path format

Posted by "Raphaël Piéroni (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137123#action_137123 ] 

Raphaël Piéroni commented on ARCHETYPE-135:
-------------------------------------------

I just tested with jdk1.4.2 mvn2.0.9 and archetype-plugin 2.0-alpha-3
and it worked fine, even in a multi-module build.

> add a variabl containing package in a path format
> -------------------------------------------------
>
>                 Key: ARCHETYPE-135
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-135
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-2
>            Reporter: Dominique Jean-Prost
>
> Actually, there is a variable "package" than can be used in the file during generation.
> It could be great if there was another variable than contained the package in a path format. Example :
> package = com.foo
> packageInPathFormat=com/foo
> This new variable could be used in resources path.

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

       

[jira] Commented: (ARCHETYPE-135) add a variabl containing package in a path format

Posted by "Dominique Jean-Prost (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137171#action_137171 ] 

Dominique Jean-Prost commented on ARCHETYPE-135:
------------------------------------------------

Well, there are times when you really feel ashamed.

I've checked once again, and it's ok.

Apologies for reopening this case.
Thank you for the feature.

> add a variabl containing package in a path format
> -------------------------------------------------
>
>                 Key: ARCHETYPE-135
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-135
>             Project: Maven Archetype
>          Issue Type: Improvement
>    Affects Versions: 2.0-alpha-2
>            Reporter: Dominique Jean-Prost
>
> Actually, there is a variable "package" than can be used in the file during generation.
> It could be great if there was another variable than contained the package in a path format. Example :
> package = com.foo
> packageInPathFormat=com/foo
> This new variable could be used in resources path.

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