Re: HINT tapestry - tapestry5 package rename

2008-06-16 Thread Howard Lewis Ship
If you can, use find and sed:

find . -name \*.java -o -name \*.xml -o -name \*.properties  | xargs
sed -i'' s/org\\.apache\\.tapestry\\./org.apache.tapestry5./g

This finds all .java, .xml or .properties files and uses sed (stream
editor) to locate the text "org.apache.tapestry." and replace it with
"org.apache.tapestry5.".

Install Cygwin if you have to.

On Sun, Jun 15, 2008 at 9:19 AM, Davor Hrg <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've just refactored few of my t5 apps to rename package
> org.apache.tapesrty to org.apache.tapesrty5
>
> It was very tiresome to do it for all classes one by one,
> so I tried a trick and it worked.
>
> This works for me in eclipse, it might be also used in other tools.
>
> 1. remove tapestry dependancy from the project (from pom or otherwise)
> 2. create the package org.apache.tapestry inside your source
> 3. use refactor rename on that package
> 4. delete the package from the source
>
>
> after that there are few thigs to do also:
>
> TapestryConstants was split into few classes
>
> org.apache.tapestry5.
> BindingConstants (PROP, LITERAL)
> MetaDataConstants (RESPONSE_CONTENT_TYPE...)
> PersistenceConstants
> SymbolConstants (PRODUCTION_MODE)
>
> org.apache.tapestry5.internal
> InternalConstants (TAPESTRY_APP_PACKAGE_PARAM...)
>
> PageRenderSupport was renamed to RenderSupport
>
> hope someone finds this useful :)
>
> Davor Hrg
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HINT tapestry - tapestry5 package rename

2008-06-15 Thread Davor Hrg
Hi,

I've just refactored few of my t5 apps to rename package
org.apache.tapesrty to org.apache.tapesrty5

It was very tiresome to do it for all classes one by one,
so I tried a trick and it worked.

This works for me in eclipse, it might be also used in other tools.

1. remove tapestry dependancy from the project (from pom or otherwise)
2. create the package org.apache.tapestry inside your source
3. use refactor rename on that package
4. delete the package from the source


after that there are few thigs to do also:

TapestryConstants was split into few classes

org.apache.tapestry5.
BindingConstants (PROP, LITERAL)
MetaDataConstants (RESPONSE_CONTENT_TYPE...)
PersistenceConstants
SymbolConstants (PRODUCTION_MODE)

org.apache.tapestry5.internal
InternalConstants (TAPESTRY_APP_PACKAGE_PARAM...)

PageRenderSupport was renamed to RenderSupport

hope someone finds this useful :)

Davor Hrg