I have attached pic of (version 1.5.7) GroovyConsole running %DOJO_HOME%\dojo-release-1.0.0\dojox\validateregexp.js
How would Maven automate this process? Danke/Merci Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 23 Apr 2009 16:49:19 +0200 > From: [email protected] > To: [email protected] > CC: [email protected] > Subject: Re: Your challenge > > Thanks Stan > > I'm also posting this to the list... > > > Stan Devitt wrote: > > If you use the groovy maven plugin, then the following <source> > > …</source> code comes close to what you need. > > > > > > > > def resultfile = new File( "result" ); > > > > if ( resultfile.exists() ) resultfile.delete(); > > > > new File( "src/main/dictionary").eachFileMatch( ~/.*\.lst/ ) { file -> > > > > file.readLines().sort().each() { resultfile << it.trim() + "\n"; } > > > > } > > > > > > > > Notes: > > > > > > > > * If I understood you correctly, your source files are of the form > > a.lst, b.lst, c.lst and contain the obvious content. If so, then you can > > just process them in order in memory and avoid sorting the whole > > collection. > > > > > > > > * Also, your sed scripts appear to be essentially trimming the resulting > > strings, but if additional processing is needed, you can use more elaborate > > java methods such as replace, replaceAll, replaceFirst, matches, > > substring, etc. in place of trim(). > > > > > > > > * The code can also be dropped more or less as is into an execute() > > method of a groovy based maven plugin. > > > > Stan Devitt ● RIM - Research In Motion Ltd. > > 175 Columbia St., Waterloo, Ontario Canada, N2L 5Z5 > > Office: +1-519-888--7465 x75512 > > Mobile: +1-226-338-1747 > > > > > > > > > > > > > > --------------------------------------------------------------------- > > This transmission (including any attachments) may contain confidential > > information, privileged material (including material protected by the > > solicitor-client or other applicable privileges), or constitute non-public > > information. Any use of this information by anyone other than the intended > > recipient is prohibited. If you have received this transmission in error, > > please immediately reply to the sender and delete this information from > > your system. Use, dissemination, distribution, or reproduction of this > > transmission by unintended recipients is not authorized and may be unlawful. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > _________________________________________________________________ Windows Live™ SkyDrive™: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
