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

Dennis Lundberg updated MRESOURCES-80:
--------------------------------------

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

{code:xml}
<filters>
   <filter>src/test/resources/local.properties</filter>
</filters>
<resources>
   <resource>
      <directory>src/test/resources</directory>
      <filtering>true</filtering>
   </resource>
</resources>
{code}

The filtering is done correctly, however in the src/test/resources folder there 
is a spring configuation file which has the following:

{code:xml}
<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>
{code}

After the filtering is done here is the result of the spring configuration:

{code:xml}
<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>
{code}

Note the filtered property of url.  Since this is a specific property of Spring 
and not maven, it should not be filtered.

Thanks,
Tim

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


> 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
>    Affects Versions: 2.2
>         Environment: Windows XP, IBM Websphere 6.1
>            Reporter: Tim Urberg
>             Fix For: 2.5
>
>
> 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:
> {code:xml}
> <filters>
>    <filter>src/test/resources/local.properties</filter>
> </filters>
> <resources>
>    <resource>
>       <directory>src/test/resources</directory>
>       <filtering>true</filtering>
>    </resource>
> </resources>
> {code}
> The filtering is done correctly, however in the src/test/resources folder 
> there is a spring configuation file which has the following:
> {code:xml}
> <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>
> {code}
> After the filtering is done here is the result of the spring configuration:
> {code:xml}
> <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>
> {code}
> 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

        

Reply via email to