Posted by
Lon F. Binder-2 on
Feb 16, 2006; 6:47pm
URL: http://ofbiz.116.s1.nabble.com/Users-Debugging-Scheduled-Jobs-Tip-tp137457p137460.html
Andrew,
That is a good point. However, I'm just hesitant to use the repository
patching for this purpose. Here is another approach, intermingling some of
the suggestions given thus far.
Maintain the config files, again serviceengine.xml as an example. For
settings within this file that are environment- sensitive, assign ant
replacement variables, such as @poolname@. Then create environment files
such as servicengine.xml.env-production, etc. That only have mappinsg of
the replacement variables.
The result here is self-documenting configuration files that indicate
environment-sensitive settings. And you get the benefit of a single file
and no patching issues later!
Thoughts?
- Lon
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]]
On Behalf Of Andrew Sykes
Sent: Thursday, February 16, 2006 1:25 PM
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - Debugging Scheduled Jobs Tip
Lon,
We tried something similar to this a while back, the big problem with this
is you end up having to maintain a whole file when perhaps all you want to
do is adjust a single line in that file.
You end up with a load of extra work, because your version of the file can
quickly go stale.
We have chosen therefore to use patches instead, the advantage here is that
if someone enhances a part of the file you don't care about, you still get
the benefit. Occasionally your patches fail if a file has changed
significantly, but this too can be a good thing, because it flags up that
something you rely on has changed. Imagine how much can slip through the net
if you are effectively just overwriting the latest copy of the file with a
version you made 500 commits ago!
--
Kind Regards
Andrew Sykes <
[hidden email]> Sykes Development Ltd
http://www.sykesdevelopment.com
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users