[ http://jira.codehaus.org/browse/MNG-300?page=history ]
John Casey resolved MNG-300:
----------------------------
Resolution: Won't Fix
This will break project portability, and therefore transitive dependency
resolution, not to mention anything which depends on reading POM information
out of the repository.
Is there a specific reason you need this? Please email the list, and we'll try
to help you out.
> Load .properties files and perform property substitution in pom.xml, etc.
> -------------------------------------------------------------------------
>
> Key: MNG-300
> URL: http://jira.codehaus.org/browse/MNG-300
> Project: m2
> Type: Wish
> Components: maven-core
> Environment: Any
> Reporter: Jamie Bisotti
>
>
> I'm looking for something like Springs, PropertyPlaceholderConfigurer in
> pom.xml (or any other Maven config file).
> jdbc.properties snippet:
> database.connection.url=SOME_JDBC_CONNECTION_URL
> Spring's applicationContext.xml snippet:
> <!--
> Configurer that replaces ${...} placeholders in this config file with
> values from properties files.
> -->
> <bean id="propertyConfigurer"
>
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
> >
> <property name="locations">
> <list>
> <value>classpath:jdbc.properties</value>
> <value>classpath:hibernate.properties</value>
> </list>
> </property>
> </bean>
> <bean id="dataSource"
> class="org.springframework.jdbc.datasource.DriverManagerDataSource"
> >
> <property name="url">
> <value>${database.connection.url}</value>
> </property>
> </bean>
> The PropertyPlaceholderConfigureer reads in the specified properties files
> and makes their contents available as replacement values throughout the rest
> of the config file. This is very handy, and something that seems to be
> missing from Maven 1.x.
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]