Quick answer,

If you want to do exactly what you asking, then I would use the antrun
plugin to do that.

Personally settings like this are always external, so the projects I'm
working on create a zip with this files in, one for each environment
and allow each environment to be altered without repackaging the
war/ear/jar.

Silly just to repackage and redeploy if you want different logging
values. Our check log4j for changes and automatically pick that up.


On 14 December 2012 15:49, godisone <[email protected]> wrote:
> Hi
>
> I have very simple question. I have the files like
>
> 1.)log4j_dev.properties for dev
> 2.)log4j_uat.properties for uat
>
> So i just want to
>
> 1.rename the file when the packagins is done and
> 2.How to pass the variable like
>
> Denv=DEV
>
> so that i can take decison based on the enviroemnt variable.
>
> Thanks
> Raj
>
>
>
>
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Remove-and-Rename-Files-in-MAven-tp5738251.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]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to