maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Fay <wayne...@gmail.com>
Subject Reading property file based on configuration.
Date Thu, 27 Oct 2011 12:53:02 GMT
> Now my goal is to read first env.properties file and find environment
name.
>
> Using this name I want to load all properties of given sub-env(e.g.
> 245SolarisMachine.properties
> in this case) and do a token replace in some XML file.
>
> But it seems this is too much programatic and cannot be done using Maven.

If you cannot find a way to do it with core Maven and existing plugins, then
you will need to write your own plugin to do this specific functionality
that you require. You could even use the source code from the replace plugin
as the basis for your work.

Wayne

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message