Thanks a lot Karl. I could get it working using replacer plugin with below
token
<configuration>
<file>xyz.java</file>
<token>@Start.*@End</token>
<value>-value-</value>
<regex>true</regex>
</configuration>
As you mentioned correctly, i'm stuck with copying file, it's ok for me to
copy under base directory, i tried using buildhelper-maven-plugin but
didn't work for me. Here is the plugin which i used
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${basedir}\publicSrc\mySrc</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
Don't we have to tell maven about source path or does it take by default
from src/main/java ? In my case, publicSrc folder itself is not getting
created where as i'm expecting all of java file which is under src/main/java
to be under publicSrc/mySrc. Is there anything wrong with my configuration ?
Regards
Pankaj
--
View this message in context:
http://maven.40175.n5.nabble.com/Maven-replacer-plugin-tp5696070p5698807.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]