You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/12/03 17:37:19 UTC

[jira] Moved: (MRESOURCES-80) Resource File Filtering is Too Verbose

     [ http://jira.codehaus.org/browse/MRESOURCES-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann moved MNG-3889 to MRESOURCES-80:
--------------------------------------------------

    Affects Version/s:     (was: 2.0.9)
                  Key: MRESOURCES-80  (was: MNG-3889)
              Project: Maven 2.x Resources Plugin  (was: Maven 2)

> Resource File Filtering is Too Verbose
> --------------------------------------
>
>                 Key: MRESOURCES-80
>                 URL: http://jira.codehaus.org/browse/MRESOURCES-80
>             Project: Maven 2.x Resources Plugin
>          Issue Type: Bug
>         Environment: Windows XP, IBM Websphere 6.1
>            Reporter: Tim Urberg
>
> When filtering a resource file, maven is too verbose.  It's filtering a property that should not be filtered.  Here's a snippet of the pom file:
> <filters>
>    <filter>src/test/resources/local.properties</filter>
> </filters>
> <resources>
>    <resource>
>       <directory>src/test/resources</directory>
>       <filtering>true</filtering>
>    </resource>
> </resources>
> The filtering is done correctly, however in the src/test/resources folder there is a spring configuation file which has the following:
> <bean id="oracleDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
>    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
>    <property name="url" value="${oracleDataSource.url}"/>
>    <property name="username" value="${oracleDataSource.username}"/>
>    <property name="password" value="${oracleDataSource.password}"/>
> </bean>
> After the filtering is done here is the result of the spring configuration:
> <bean id="oracleDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
>    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
>    <property name="url" value="http://maven.apache.org/acd-core"/>
>    <property name="username" value="${oracleDataSource.username}"/>
>    <property name="password" value="${oracleDataSource.password}"/>
> </bean>
> Note the filtered property of url.  Since this is a specific property of Spring and not maven, it should not be filtered.
> Thanks,
> Tim

-- 
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