Are the files underneath subdirectories? You may need to go from this:
                    <include>context.xml</include>
                    <include>version.properties</include>
To this:
                    <include>context.xml</include>
                    <include>**/version.properties</include>


kris bravo * Clarify Development * office: 678.893.1288 * mobile:
678.296.8723 


-----Original Message-----
From: Claus Myglegaard Vagner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 02, 2006 9:59 AM
To: Maven Users List
Subject: Problem with filtering of property files

Hi,

I have a problem filtering property files (using maven 2.0.4):

Setup:
  ...
 <build>
        <finalName>planb</finalName>
        <sourceDirectory>src/java</sourceDirectory>
        <testSourceDirectory>src/test</testSourceDirectory>
        <filters>
            <filter>${basedir}/context.properties</filter>
        </filters>
        <resources>
            <resource>
                <directory>${basedir}/src/conf</directory>
                <filtering>true</filtering>
                <includes>
                    <include>context.xml</include>
                    <include>version.properties</include>
                </includes>
            </resource>
            ...
        </resources>
        ...
 </build>
  ...

Filtering of the above context.xml works fine, but filtering of
version.properties dosn't seem to work?

If I create a version.xml file instead an replaces it with
version.properties again it works... (any difference for *.xml contra
*.properties filtering?)

Ideally I would like to use settings.xml as filter instead of
context.properties but it only seems to work with context.properties...

Can anybody please help me with

1. why isn't version.properties being filtered?
2. why can't I use settings.xml as a filter?

Best Regards,
Claus

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to