Let Maven alter a config file
Hi I have Maven that has a dependency to Tomcat, i.e. retrieves Tomcat if it is not already installed. Unfortunately, I _must_ have some specific settings in the Tomcat configuration file (which is in XML). Is there any plugin that can check the files settings and alter it if necessary? Thanks for any hint! Greetings, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Let Maven alter a config file
On 11/9/06, Deluigi Marcus [EMAIL PROTECTED] wrote: I have Maven that has a dependency to Tomcat, i.e. retrieves Tomcat if it is not already installed. Unfortunately, I _must_ have some specific settings in the Tomcat configuration file (which is in XML). Is there any plugin that can check the files settings and alter it if necessary? You could keep the config file in your project, and filter the correct values in at build time. (In other words, don't check them, just put in the right values.) Also take a look at Cargo, which may either do what you need, or have some code you can use. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Let Maven alter a config file
I have Maven that has a dependency to Tomcat, i.e. retrieves Tomcat if it is not already installed. Unfortunately, I _must_ have some specific settings in the Tomcat configuration file (which is in XML). Is there any plugin that can check the files settings and alter it if necessary? You could keep the config file in your project, and filter the correct values in at build time. (In other words, don't check them, just put in the right values.) The config file should be placed into the downloaded and extracted directory, so I think filtering is not possible. Also take a look at Cargo, which may either do what you need, or have some code you can use. Cargo seems to have the desired functionality, but I couldn't figure out how to use it. The documentation is very limited. Could someone provide an example? Thanks! Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Let Maven alter a config file
You might have a better response to this question on the Cargo users mailing list... Wayne On 11/9/06, Deluigi Marcus [EMAIL PROTECTED] wrote: I have Maven that has a dependency to Tomcat, i.e. retrieves Tomcat if it is not already installed. Unfortunately, I _must_ have some specific settings in the Tomcat configuration file (which is in XML). Is there any plugin that can check the files settings and alter it if necessary? You could keep the config file in your project, and filter the correct values in at build time. (In other words, don't check them, just put in the right values.) The config file should be placed into the downloaded and extracted directory, so I think filtering is not possible. Also take a look at Cargo, which may either do what you need, or have some code you can use. Cargo seems to have the desired functionality, but I couldn't figure out how to use it. The documentation is very limited. Could someone provide an example? Thanks! Marcus - 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]
Re: Let Maven alter a config file
On 11/9/06, Deluigi Marcus [EMAIL PROTECTED] wrote: Cargo seems to have the desired functionality, but I couldn't figure out how to use it. The documentation is very limited. Could someone provide an example? I'm not yet sure what you need an example of. :) Please come join us on the Cargo user list, and ask there. http://cargo.codehaus.org/Mailing+Lists -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]