logo       

[jira] Commented: (MCASTOR-14) Remove requirement to specify a custom casto: msg#00311

java.maven-plugins.mojo.devel

Subject: [jira] Commented: (MCASTOR-14) Remove requirement to specify a custom castorbuilder.properties file


[
http://jira.codehaus.org/browse/MCASTOR-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_85864
]

Werner Guttmann commented on MCASTOR-14:
----------------------------------------

Matt, after some debugging yesterday, I came to realize that no default value
is actually set. In other words, if no property file is specified as part of
the plugin configuration, none will be used. And i think that this is what I'd
wanted anyhow. In other words, I would *not* switch to using a default-value
attribute. Having said that, my understanding of the expression attribute with
Maven 2 plugins was that you specify the name of a property you can use on the
command line to specify a value. Maybe I am wrong .....

The way Castor goes about coming up with a builder configuration in general is
as follows:

a) Take the castorbuilder.properties from the CLASSPATH stored in
org/exolab/castor/builder (to be found in the JAR file).
b) Look for a castorbuilder.properties in the CLASSPATH. Use any properties
defined therein to override the default ones.
c) If a custom properties file is specified via calling
SourceGenerator.setProperties(), use it , and use any properties defined
therein to override the default ones.

I hope this helps.

> Remove requirement to specify a custom castorbuilder.properties file
> --------------------------------------------------------------------
>
> Key: MCASTOR-14
> URL: http://jira.codehaus.org/browse/MCASTOR-14
> Project: Maven 2.x Castor Plugin
> Issue Type: Improvement
> Affects Versions: 1.0
> Reporter: Werner Guttmann
> Priority: Minor
>
> Currently, the way the 'properties' property is configured, it actually is
> *required* to provide the mojo with a custom castorbuilder.properties, even
> if there's no need. The Castor XML code generator has a default configuration
> file, and I think this requirement should be dropped, as a user might be
> happy with the custom builder configuration.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise