|
Hello,
say I want to reuse some POM or system property as parameter in another place in the POM but need it URL encoded. Does anyone know a Maven "magic" to achieve this? Programming a plugin to encode a given list of properties and provide them under a different name seems no biggy, but I would like to know if there are other, better or easier options :-D . Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ |
|
On 04/24/2012 08:09 PM, Mirko Friedenhagen wrote:
> Hello, Hi Mirko, > > say I want to reuse some POM or system property as parameter in another > place in the POM but need it URL encoded. Does anyone know a Maven "magic" > to achieve this? > > Programming a plugin to encode a given list of properties and provide them > under a different name seems no biggy, but I would like to know if there > are other, better or easier options :-D . I also do not know any other way, but I might be missing something (e.g. new features invented in m3). Compared to jelly hacking in m1 I prefer writing a plugin though... > > Regards Mirko Regards Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Hi Mirko,
you do not have to write a plugin: http://ant-contrib.sourceforge.net/tasks/tasks/urlencode.html http://maven.apache.org/plugins/maven-antrun-plugin/ Cheers Jörg > On 04/24/2012 08:09 PM, Mirko Friedenhagen wrote: >> Hello, > > Hi Mirko, > >> >> say I want to reuse some POM or system property as parameter in another >> place in the POM but need it URL encoded. Does anyone know a Maven "magic" >> to achieve this? >> >> Programming a plugin to encode a given list of properties and provide them >> under a different name seems no biggy, but I would like to know if there >> are other, better or easier options :-D . > > I also do not know any other way, but I might be missing something (e.g. new > features invented in m3). > Compared to jelly hacking in m1 I prefer writing a plugin though... > >> >> Regards Mirko > > Regards Jörg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
Hello Jörg,
thanks for your suggestion. Though I always feel a litte bit like cheating when using ant inside of Maven ;-) . Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Apr 25, 2012 11:46 PM, "Jörg Hohwiller" <[hidden email]> wrote: > Hi Mirko, > > you do not have to write a plugin: > http://ant-contrib.sourceforge.net/tasks/tasks/urlencode.html > > http://maven.apache.org/plugins/maven-antrun-plugin/ > > Cheers > Jörg > > > On 04/24/2012 08:09 PM, Mirko Friedenhagen wrote: > >> Hello, > > > > Hi Mirko, > > > >> > >> say I want to reuse some POM or system property as parameter in another > >> place in the POM but need it URL encoded. Does anyone know a Maven > "magic" > >> to achieve this? > >> > >> Programming a plugin to encode a given list of properties and provide > them > >> under a different name seems no biggy, but I would like to know if there > >> are other, better or easier options :-D . > > > > I also do not know any other way, but I might be missing something (e.g. > new > > features invented in m3). > > Compared to jelly hacking in m1 I prefer writing a plugin though... > > > >> > >> Regards Mirko > > > > Regards Jörg > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden email] > > For additional commands, e-mail: [hidden email] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > |
| Powered by Nabble | Edit this page |
