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 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 fragments which

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 a << in 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 li

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

2009-04-24 Thread Stan Devitt
acters with entities like > and <. Stan -Original Message- From: gret...@gmail.com [mailto:gret...@gmail.com] On Behalf Of Grant Rettke Sent: Thursday, April 23, 2009 4:39 PM To: Maven Users List Subject: Re: Challenge: Find a plugin combo that achieves what 4 lines of bash script

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 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? ---

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

2009-04-23 Thread Martin Gainty
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 23 Apr 2009 15:38:38 -0500 > Subject: Re: Challenge: Find a plugin combo that achieves what 4 lines of > bashscript can do... > From: gret...@acm.org > T

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 wrote: >           >               org.codehaus.groovy.maven >               gmaven-plugin >               >                 >                 generate-resources >                 >                   execute >                 >                 >  

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 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 bui

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 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 impro

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 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 through

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 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. Necessity is the

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 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 f

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