Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-25 Thread Grant Rettke
Understood. Thanks! On Fri, Apr 24, 2009 at 9:20 AM, Stan Devitt sdev...@rim.com wrote: The  [CDATA[ ]]  bracketing simply tells the xml parser to read the enclosed text as raw text.  This allows you to use embedded characters like and , and is quite handy when the text is code

RE: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-24 Thread Stan Devitt
The [CDATA[ ]] bracketing simply tells the xml parser to read the enclosed text as raw text. This allows you to use embedded characters like and , and is quite handy when the text is code fragments which can contain a lot of these special characters. (It allows you to cut and paste

RE: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-24 Thread Stan Devitt
Note that there is ain the code to append to a file. -Original Message- From: gret...@gmail.com [mailto:gret...@gmail.com] On Behalf Of Grant Rettke Sent: Thursday, April 23, 2009 5:24 PM To: Maven Users List Subject: Re: Challenge: Find a plugin combo that achieves what 4 lines of

Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Thomas Marti
Hi Maven cracks At a customer site there is a custom, company-wide dictionary available for spellchecking. This dictionary is managed in an proprietary application from where you can export it. For the webapp we're building we need to transform this dictionary into a very simple format: a single

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Manos Batsis
Thomas Marti wrote: Now all is well nice and this script even performs sufficently given about 1.6 million dictionary entries (~38MB). But of course it's not really the Maven way to do things, especially because it's not portable. You need to have some kind of Unix-like enviroment in place

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Thomas Marti
Hi Manos Manos Batsis wrote: Thomas Marti wrote: That shouldn't be a problem, even windows can play along using cygwin. If you really need out-of-the-box portability just patch up a custom plugin that does the same through java code. That's all true. But that's not really the point here...

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Grant Rettke
On Thu, Apr 23, 2009 at 7:43 AM, Thomas Marti thx...@schweiz.org wrote: I was very suprised that I haven't been able to find plugins to achieve a few simple tasks like merging/concating files together, replacing random strings (that aren't properties) in resources, and finally sorting files.

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Barrie Treloar
On Thu, Apr 23, 2009 at 10:13 PM, Thomas Marti thx...@schweiz.org wrote: Hi Manos Manos Batsis wrote: Thomas Marti wrote: That shouldn't be a problem, even windows can play along using cygwin. If you really need out-of-the-box portability just patch up a custom plugin that does the same

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Thomas Marti
Argh, was to quick with the send button... The two maven plugins are: http://www.stephenduncanjr.com/projects/xpathreplacement-maven-plugin http://code.google.com/p/maven-replacer-plugin/ But xpathreplacement-maven-plugin seems more XML-oriented and the replacer-plugin would need a bit of

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Thomas Marti
Hi Manos Manos Batsis wrote: Thomas Marti wrote: That shouldn't be a problem, even windows can play along using cygwin. If you really need out-of-the-box portability just patch up a custom plugin that does the same through java code. That's all true. But that's not really the point here.

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Wayne Fay
I was just very suprised that I haven't been able to find plugins to achieve a few simple tasks like merging/concating files together, replacing random strings (that aren't properties) in resources, and finally sorting files. You're the first person who needed to do this as part of their

RE: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Stan Devitt
One of the nice things about maven projects is that you download them and they just work. Assuming the dictionary source files are already broken down by letters of the alphabet, then the following 5 lines of code does most of it. (Note that the sed scripts are pretty close to just a line by line

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Grant Rettke
On Thu, Apr 23, 2009 at 11:03 AM, Stan Devitt sdev...@rim.com wrote:           plugin               groupIdorg.codehaus.groovy.maven/groupId               artifactIdgmaven-plugin/artifactId               executions                execution                 phasegenerate-resources/phase      

RE: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Martin Gainty
CDATA is character data instructs the parser to leave everything inside [] alone http://en.wikipedia.org/wiki/CDATA Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is

Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script can do...

2009-04-23 Thread Grant Rettke
On Thu, Apr 23, 2009 at 4:13 PM, Martin Gainty mgai...@hotmail.com wrote: CDATA is character data instructs the parser to leave everything inside [] alone http://en.wikipedia.org/wiki/CDATA The demo code doesn't use it. Have you found that the code gets mucked with?