On Tue, Oct 25, 2011 at 9:09 AM, MavenUser8979 <mihir8...@yahoo.com> wrote:

> I have one requirement where I want to read all the parameterized
> properties
> from one file and replace it in other file.


Hello!  I'm sorry you've gotten such short answers.  I'll see if I can be of
more help.

Property replacement is already available in Maven in two places:

   - As part of the resources mechanism in the POM (details here:
   
http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-description.html
   )
   - Programmatically, as part of the maven-resources-plugin's copyResources
   goal (details here:
   
http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html
   )

Besides those, you can of course use the maven-replacer-plugin (though I
don't really see it being any better than just straight resource filtering
for the problem you've described), or do properties replacement in Ant
(though that seems overkill, as you suggest).

Let's start there and see if either of those two approaches helps you out.
If not, we'll need more details about your project layout.

Good luck!

Best,
Laird

-- 
http://about.me/lairdnelson

Reply via email to