Dear Martin,
thanks for your suggestion.
However, I don't ike to copy the files. Is there any other way to do a
filtering on the files without copying them?
Regards,
Christian
Am 23.05.2009 um 16:47 schrieb Martin Gainty:
Chris-
not sure if this answers your question but a maven build engineer
wanted to use java source filtering to copy one solo java file..his
solution was to implement a plugin with would use ant's copy task
(with filter attribute) to accomplish the objective
<plugin> <artifactId>maven-antrun-plugin</artifactId>
<executions> <execution> <id>generate-locator</
id> <phase>process-sources</phase>
<configuration> <tasks> <filter token="token.name"
value="somevalue"/> <copy file="src/main/java/mypackage/
_Locator.java" tofile="target/generated/mypackage/
Locator.java" filtering="true"/> </
tasks> </configuration> <goals>
<goal>run</goal> </goals> </execution> </
executions> </plugin>
original reference from
http://www.visnet.ch/smartbuildings/source-code-filtering-with-maven/
Mit Freundliche Gruben
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.
Diese Nachricht dient lediglich dem Austausch von Informationen und
entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten
Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den
Inhalt uebernehmen.
From: [email protected]
To: [email protected]
Subject: Best practicse for filtering within Java-Files
Date: Sat, 23 May 2009 08:49:29 +0200
Hi there,
I wonder, what is the best practicse to do a filtering within Java-
Source-Files during a
'mvn clean install'
Any suggestions?
Regards,
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
_________________________________________________________________
HotmailĀ® goes with you.
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]