I use this in my pom:

        <filters>
            <filter>${filter.file}</filter>
        </filters>


then this in my settings.xml:

<filter.file>C:/opt/baselogic/src/main/filters/filter-local.properties</filter.file>

Then I assume you can point the filter.file to anywhere on the machine for
building.


On Wed, Jun 4, 2008 at 11:07 AM, Jeudy, Guillaume <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I have a datasource XML file that is deployed to jboss deploy directory. Is
> there a possibility for maven2 to apply filtering capabilities on my
> datasource XML file without having it copied to the target directory and
> packaged with within my artifact ? Id like to filter the XML file and copy
> it with a custom task to my deployment directory.
>
> The copy part I can already do with the following plugin:
>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>install</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <copy file="src/main/config/ReferenceDataManager-ds.xml"
> tofile="${env.JBOSS_HOME}/server/${deploy.server}/deploy/ReferenceDataManager-ds.xml"
> />
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> I would like to avoid having to create a separate maven2 subproject just to
> deploy my XML datasource file after being filtered and replaced with various
> properties. I'm not even sure such a workaround is possible. Can the
> artifact be of XML type ?
>
> More importantly can I use filtering functionality standalone without being
> forced to copy the filtered file to the target directory ?
>
> Thanks,
>
> -Guillaume
>
>
>
>
> ____________________________________________________________________________________________________
> This electronic mail (including any attachments) may contain information
> that is privileged, confidential, and/or otherwise protected from disclosure
> to anyone other than its intended recipient(s). Any dissemination or use of
> this electronic email or its contents (including any attachments) by persons
> other than the intended recipient(s) is strictly prohibited. If you have
> received this message in error, please notify us immediately by reply email
> so that we may correct our internal records. Please then delete the original
> message (including any attachments) in its entirety. Thank you.
>



-- 
---
Thank You…

Mick Knutson
BASE Logic, inc.

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Tahoe: http://tahoe.baselogic.com

Reply via email to