My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

This is a Maven2 plugin and Ant Task to process configuration files using a set of rules and generate modified files. It is useful when you need to generate different files for heterogeneous environments and don't want to keep a copy for each one. This plugin aims to do the same things that XConf does but it is fully integrated with Maven and utilizes standard technologies like XPath.

Supported Features

  • Add, remove, modify, comment and uncomment single values of .properties files keeping comments
  • Add, remove and modify elements of XML files keeping comments
  • Ant task with the same capabilities of the maven plugin

News

May 1st, 2012

Version 2.2 is out with support for latest releases of Ant and Maven, the specificProperties configuration is deprecated as result of changes in Maven 3.x. An XML schema file is available to help write transformation config files ( issue 29 ) and transformation rules can now be defined inside the pom.xml file ( issue 34 ). Here is the list of all issues related to this release.

February 15th, 2012

Because the plugin is pretty much feature complete, there hasn't been news for a while. Today we released version 2.1 as a result of new code contributions ( issue 28 ) with support for ant-style pattern matching of input files, now it's possible to apply the same transformations to a set of files, a new plugin configuration (failOnMissingXpath) has been introduced to ignore failures when an XPath expression doesn't find anything.

November 9th, 2010

Version 2.0 has been released with support for absolute property placement in property files. See first and last directives in TransformationConfiguration wiki page.

February 8th, 2010

Version 1.9 has been released! This version has even more features contributed by users, these are some of them: output parameter is optional, XML parser is customizable and better support for adding files with nested transformations. You can see a complete list of resolved issues here.

August 14th, 2009

Version 1.8 has been released! This new version includes more bug fixes and adds better support for multi-module projects.

July 9th, 2009

Version 1.6 uploaded to the maven central repository! Thanks to Sonatype OSS Repository Hosting we can deploy our next releases very quickly to the central repo.

How to get it

The maven central repository have release versions of the plugin, so you just have to declare the plugin in you pom.xml file.

Please, see the HowTo wiki page or the maven generated site for more details.

Getting Started

Download the config processor distribution on the right side of this page, unzip it in some directory, cd to examples/example-project and execute mvn package or ant, processed files will be in target/processed.

Please, see the PluginConfiguration and AntTask wiki pages for detailed information on how to configure and use the plugin with Maven or Ant.

Getting Help

You can subscribe to our users mailing list, see the mailing lists section.

If you think you've found a bug or would like to request a new feature or enhancement, please feel free to submit issues on the google code issue tracker. Even better, you can submit patches and be part of the project!

Powered by Google Project Hosting