Hi John,
On 04.02.2010 03:13, John Shott wrote:
Lukas and Werner:
Thanks for your comments and I appreciate knowing that you both find
that things work for you in the way that the documentation changes. I'd
be happy if I could pick up my slightly modified castor.properties file
from the classpath because that way I have control over that for
everyone running our Castor-based application.
Let me ask you a follow-up question:
First, castor-1.3.1-xml.jar contains the default castor.properties file
(well, org/exolab/castor/castor.properties, correct)?
Yes.
If I also include a slightly modified
org/exolab/castor/castor.properties file ...
And that's where things start turning wrong. You must not use the
package prefix 'org/exolab/castor', as a custom property file needs to
be relative to root. In other words, simply add castor.properties to
your class path somehow (in a standard Maven build, include the file at
src/main/resources), and it will be picked up.
I hope this resolves your problem.
I still like to know, though, why you are using a different location,
and as such deviate from the documentation on this subject. Is it that
the documentation is not clear enough ? If so, where exactly ?
Cheers
Werner
in part_of_my_application.jar,
then does the "version" of the castor.properties file that I get depend
on the order that part_of_my_application.jar and castor-1.3.1-xml.jar
are listed in the class path?
In my case, I think that I have part_of_my_application.jar listed before
castor-1.3.1-xml.jar. Does that mean that I'm reading the modified
castor.properties file from part_of_my_application.jar .... but then
immediately overwriting it, in effect, when it reads the default
castor.properties file from castor-1.3.1-xml.jar?
Or, if several jar files in the class path contain
org/exolab/castor/castor.properties files .... say the default and one
or two others ...
then does it use the first one that it finds and ignores any that are
included in jar files appear later in the classpath?
Thanks,
John
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email