Am 25.10.2011 16:37 schrieb "MavenUser8979" <[email protected]>:
>
> All,
>
> I have one requirement where I want to read all the parameterized
properties
> from one file and replace it in other file.
>
> e.g.
>
> parameterized.properties is having below two properties.
>
> LOG_DIR=/application/logs
> INSTALL_DIR = /application/config
>
> Now I have other property file project.properties with below two
properties.
>
> logDirectory=@LOG_DIR@
> installDir=@INSTALL_DIR@
>
> After I replace strings from "parameterized.properties" to
> "project.properties"  project.properties should have following value.
>
> logDirectory==/application/logs
> installDir=/application/config
>
> I saw maven replace plugin is not sufficient for this ?

Can't see why it should't. Can you explain?

>
> I can use ANT to perform this task but I donot want to use ANT inside
MAVEN.
>
> Any one has better approach for this.

Replace plugin should be fine. Properties plugin also.

Regards

Ansgar

>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/Replacing-properties-with-Maven-tp4936132p4936132.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]
>

Reply via email to