On Sep 21, 12:41 pm, Scott Brady <[email protected]> wrote:
> Odd. The decorators were defined without a mapping (so, it was
> "com.mysite.BaseDecorator" instead of
> "myMapping.com.mysite.BaseDecorator"), because when I had tried using
> the mapping before, it didn't work.
Scott,
As a headsup, I use mappings for my apps and have run into this in the
past. The only repeatable and reliable method I have found for
dealing with this is to use a generic mapping in your source code and
use Ant or a deployment script to search/replace it at deploy time.
My code uses two mappings:
PUKKA_CORE_MAP
PUKKA_API_MAP
I use them for various things in my coldspring and modelglue config
files, my controllers, my model, etc. At deploy time, I use ant to
do:
<!-- replace tokens in all static config files -->
<replace dir="${project.clean.root}/">
<include name="**/*.xml" />
<replacefilter token="PUKKA_API_MAP" value="${cf.mapping.api}" />
<replacefilter token="PUKKA_CORE_MAP" value="${cf.mapping.core}" />
</replace>
Works like a charm... so on my dev machine, where I work with code
directly, I have two mappings, PUKKA_API_MAP and PUKKA_CORE_MAP. In
development and production I have different mappings and my Ant
properties file knows what to set cf.mapping.api and cf.mapping.core
to. This way I can have multiple installs on the same server by using
different mappings (so no collisions).
I tried for a long time to avoid mappings but I gave in because they
make life easier. Especially with per-application mappings. This is
how I automate the management of them so I don't have to think about
it.
Brian
--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
You received this message because you are subscribed to the Google Groups
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---