You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Shiva Kumar H R (JIRA)" <ji...@apache.org> on 2008/02/15 08:13:07 UTC

[jira] Created: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
-----------------------------------------------------------------------------------------

                 Key: GERONIMODEVTOOLS-283
                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
             Project: Geronimo-Devtools
          Issue Type: Wish
          Components: eclipse-plugin
            Reporter: Shiva Kumar H R
            Priority: Minor
             Fix For: 2.1.0


When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 

When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 

Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Shiva Kumar H R (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718308#action_12718308 ] 

Shiva Kumar H R commented on GERONIMODEVTOOLS-283:
--------------------------------------------------

Or how about the below option?

If module-id and context-root have the same values as project-name (i.e. the user has not changed them from their default values or has intentionally kept all of them same) then provide an user option (say a check box) during refactoring that allows the user to select "renaming module-id and context-root to match the new project name".

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Assignee: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Delos Dai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840534#action_12840534 ] 

Delos Dai commented on GERONIMODEVTOOLS-283:
--------------------------------------------

It works for 2.1.5 branch, but failed in 2.2.1 branch. Reopen it. Will fix it later.

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.1.5, 2.2.0
>
>         Attachments: extend_rename.patch, screenshot-1.jpg, screenshot-2.jpg
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Delos Dai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Delos Dai resolved GERONIMODEVTOOLS-283.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.5

Cool, Rodger!

Shiva,

I think Rodger just provide what you want. Is it right? 

I will upload a new build to unstable site later, and you can verify it.

#815203 for trunk and #815204 for 2.1.5 branch.

Thanks!


> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.1.5, 2.2.0
>
>         Attachments: extend_rename.patch, screenshot-1.jpg, screenshot-2.jpg
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Shiva Kumar H R (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shiva Kumar H R reassigned GERONIMODEVTOOLS-283:
------------------------------------------------

    Assignee:     (was: Shiva Kumar H R)

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Ted Kirby (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Kirby updated GERONIMODEVTOOLS-283:
---------------------------------------

    Fix Version/s:     (was: 2.1.3)
                   2.2.0

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Assignee: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Rodger Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752991#action_12752991 ] 

Rodger Zhang commented on GERONIMODEVTOOLS-283:
-----------------------------------------------

After a deeper investigation, this feature can be implemented by contributing to a extension-point. 
The UI is like pictures attached. 

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: extend_rename.patch
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Rodger Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rodger Zhang updated GERONIMODEVTOOLS-283:
------------------------------------------

    Attachment: extend_rename.patch

Pls help review.

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: extend_rename.patch
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Shiva Kumar H R (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751705#action_12751705 ] 

Shiva Kumar H R commented on GERONIMODEVTOOLS-283:
--------------------------------------------------

Please feel free to close this JIRA in that case.

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Rodger Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751276#action_12751276 ] 

Rodger Zhang commented on GERONIMODEVTOOLS-283:
-----------------------------------------------

The "rename" item is bond with a action, and probably there is no extension point to modify the action's wizard. Like wtp's "rename" , its wizard does not provide a check box for changing <display-name/> in web.xml. It is possible to implement this tiny feature but with a large effort, because the "rename" is not implemented by GEP.

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Tim McConnell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim McConnell updated GERONIMODEVTOOLS-283:
-------------------------------------------

    Fix Version/s:     (was: 2.1.0)
                   2.1.x

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Assignee: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.1.x
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Shiva Kumar H R (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shiva Kumar H R reassigned GERONIMODEVTOOLS-283:
------------------------------------------------

    Assignee: Shiva Kumar H R

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Assignee: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Delos Dai (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Delos Dai reassigned GERONIMODEVTOOLS-283:
------------------------------------------

    Assignee: Delos Dai

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Assignee: Delos Dai
>            Priority: Minor
>             Fix For: 2.1.5, 2.2.0
>
>         Attachments: extend_rename.patch, screenshot-1.jpg, screenshot-2.jpg
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Delos Dai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718076#action_12718076 ] 

Delos Dai commented on GERONIMODEVTOOLS-283:
--------------------------------------------

I think it's not right behavior for refactor. Indeed, the default values of module-id and context-root are the same as the project name. But it's not always the case. User can change module-id or context-root into other names. So we have to keep them independent of each other.

If possible, suggest to close this JIRA!

Thanks!

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Assignee: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Rodger Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rodger Zhang updated GERONIMODEVTOOLS-283:
------------------------------------------

    Attachment: screenshot-1.jpg

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: extend_rename.patch, screenshot-1.jpg
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Rodger Zhang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rodger Zhang updated GERONIMODEVTOOLS-283:
------------------------------------------

    Attachment: screenshot-2.jpg

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: extend_rename.patch, screenshot-1.jpg, screenshot-2.jpg
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Delos Dai (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841134#action_12841134 ] 

Delos Dai commented on GERONIMODEVTOOLS-283:
--------------------------------------------

The problem happens with JDK 6. JDK 6 behavior differently in calculating character offset in xml file.

#918900 for 2.2.1 branch,#918905 for trunk and #918907 for 2.1.5 branch

> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Assignee: Delos Dai
>            Priority: Minor
>             Fix For: 2.1.5, 2.2.0
>
>         Attachments: extend_rename.patch, screenshot-1.jpg, screenshot-2.jpg
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMODEVTOOLS-283) Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root

Posted by "Lu Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838230#action_12838230 ] 

Lu Jiang commented on GERONIMODEVTOOLS-283:
-------------------------------------------

Use latest GEP build,I faild to rename the name of  Dynamic Web Project from "hello" to "hi".

I created a simple helloworld project,and name this project as "hello",then a default geronimo-web.xml is created.

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<web:web-app xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0" xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2" xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0" xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:pers="http://java.sun.com/xml/ns/persistence" xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
    <dep:environment>
        <dep:moduleId>
            <dep:groupId>default</dep:groupId>
            <dep:artifactId>hello</dep:artifactId>
            <dep:version>1.0</dep:version>
            <dep:type>car</dep:type>
        </dep:moduleId>
    </dep:environment>
    <web:context-root>/hello</web:context-root>
</web:web-app>

Click Refactor->Rename to change the project name from "hello" to "hi".
The check box shown in the screen snapshot didn't appear.So I  cann't  choose whether to "rename artifact-id and context-root in geronimo-web.xml".
But actually ,some wrong operation was done to artifactId and moduleId in geronimo-web.xml during Renaming.
See the geronimo-web.xml below,after rename from "hello" to "hi",it became a badly formed xml file.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<web:web-app xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0" xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2" xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0" xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:pers="http://java.sun.com/xml/ns/persistence" xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
    <dep:environment>
        <dep:moduleId>
            <dep:groupId>default</dep:groupId>
            <dep:artifactId>hehidep:artifactId>
            <dep:version>1.0</dep:version>
            <dep:type>car</dep:type>
        </dep:moduleId>
    </dep:environment>
    <web:context-root>/h/hiweb:context-root>
</web:web-app>

I suggest to reopen this JIRA.


> Refactoring a Dynamic Web Project's name doesn't refactor it's artifact id & context root
> -----------------------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-283
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-283
>             Project: Geronimo-Devtools
>          Issue Type: Wish
>          Components: eclipse-plugin
>            Reporter: Shiva Kumar H R
>            Priority: Minor
>             Fix For: 2.1.5, 2.2.0
>
>         Attachments: extend_rename.patch, screenshot-1.jpg, screenshot-2.jpg
>
>
> When a Dynamic Web Project with name say "tt" is created, a Geronimo deployment plan "geronimo-web.xml" will get created with module-id as "default/tt-1.0.car" and context-root as "/tt". 
> When this project is re-factored to say "tz", the module-id will still be the same "default/tt-1.0.car" (note that artifact id is not re-factored from "tt" to "tz"). The context-root also remains the same "/tt". 
> Although this doesn't pose any problem, wouldn't it be better to refactor the artifact-id & context-root to match the project name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.