The castor.properties file is mainly used by the Marshalling
framework...
the castorbuilder.properties is only used by the
org.exolab.castor.builder.SourceGenerator.
The properties files are obtained as a resource
(getResourceAsStream("castor.properties"))
So as long as the file exists in your working directory or somewhere in
your classpath then it will be found. When specifying your classpath,
make sure the castor jar comes after whatever directory contains your
castor.properties file, otherwise the default castor.properties file
will be loaded from the castor jar.
--Keith
Wei Chiang wrote:
>
> Hi,
>
> I'm new to castor. Looking through some of the mails in the archive, I saw
> the above two files are mentioned. What are the differences between them
> and when to use which?
>
> Where does the sourceGenerator look for castor.properties ( or is it
> castorbuilder.properties)?
>
> In my environment, castor.properties and castorbuilder.properties appear
> under
> ./src/etc/castor.properties
> ./src/examples/castor.properties
> ./src/main/org/exolab/castor/builder/castorbuilder.properties
> ./src/main/org/exolab/castor/castor.properties
> ./src/tests/castor.properties
> ./build/classes/org/exolab/castor/builder/castorbuilder.properties
> ./build/classes/org/exolab/castor/castor.properties
> ./build/examples/castor.properties
> ./build/examples/webapp/WEB-INF/classes/org/exolab/castor/builder/castorbuil
> der.properties
> ./build/examples/webapp/WEB-INF/classes/org/exolab/castor/castor.properties
> ./build/tests/castor.properties
>
> Thank you in advance for the help.
>
> Wei
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev