 has truish selected, then it gets picked.
Array.prototype.concat. Combines accumulator array with selected items array into a new array that contains both.

JSBin.

 Q:

No such property: pom for class: Script1

I'll say it right away: I never worked with Maven/Groovy, however, recently I got the job to write a script that automatically creates an enum out of a.properties file.
I use the GMavenPlus plugin for this. I already wrote the script modelled after the answer to this question. The reason why I can't use the same pom as in the answer is because it uses GMaven, which was discontinued.
Now, when I am trying to run it over cmd I get the Error
Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.5:execute <create-enum> on project gui: Error occurred while calling a method on a Groovy class
from classpath. InvocationTargetException: No such property: pom for class: Script1 -> [Help 1]

And here are the important parts of my pom.xml:
         <plugin>
            <groupId>org.codehaus.gmavenplus</groupId>
            <artifactId>gmavenplus-plugin</artifactId>
            <version>1.5</version>

            <executions>
                <execution>
                    <id>create-enum</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>execute</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <scripts>
                    <script><![CDATA[
                    import java.io.File
                    import com.cclsd.gdg.client.EnumGenerator

                    File dir = new File( pom.basedir,
                      "src/main/resources/com/cclsd/gdg/client")

                    new EnumGenerator(
                        new File( pom.build.directory,
                          "generated-sources/enums"),
                        new File(dir,
                        "properties/config.properties"),
                        new File(dir,
                          "EnumTemplate.txt"),
                        "com.cclsd.gdg.client.data",
                        "PropertyEnum
has truish selected, then it gets picked. 
 Array.prototype.concat. Combines accumulator array with choose item array into a new array that control both. 

 JSBin. 

  Q: 

 No such place: pom for class: Script1 

 I'll say it properly away: I never worked with Maven / Groovy, however, recently I get the job to write a handwriting that automatically creates an enum out of a.properties file. 
 I use the GMavenPlus plugin for this. I already write the script modelled after the answer to this question. The reason why I can't practice the same pom as in the answer is because it use GMaven, which was discontinued. 
 Now, when I am try to move it over cmd I get the erroneousness 
 Failed to execute goal org.codehaus.gmavenplus: gmavenplus - plugin:1.5: execute < create - enum > on undertaking gui: Error occurred while calling a method on a Groovy course 
 from classpath. InvocationTargetException: No such place: pommy for class: Script1 - > [ Help 1 ] 

 And here are the important parts of my pom.xml: 
          < plugin > 
             < groupId > org.codehaus.gmavenplus</groupId > 
             < artifactId > gmavenplus - plugin</artifactId > 
             < version>1.5</version > 

             < executions > 
                 < execution > 
                     < id > create - enum</id > 
                     < phase > generate - sources</phase > 
                     < goals > 
                         < finish > execute</goal > 
                     < /goals > 
                 < /execution > 
             < /executions > 
             < configuration > 
                 < script > 
                     < script><![CDATA [ 
                     import java.io. File 
                     import com.cclsd.gdg.client. EnumGenerator 

                     File dir = newfangled File (pom.basedir, 
                       " src / main / resources / com / cclsd / gdg / client ") 

                     new EnumGenerator (
                         newfangled File (pom.build.directory, 
                           " generated - sources / enums "), 
                         new File(dir, 
                         " properties / config.properties "), 
                         new File(dir, 
                           " EnumTemplate.txt "), 
                         " com.cclsd.gdg.client.data ", 
                         " PropertyEnum
 had truish selected, then iu gets picked.
Arrai.peototy'e.concaf. Combinds accumulator array with sepexted utems array into a new array thwt contauns uoth.

JSBin.

 Q:

No surg propevcy: poj for rlass: Script1

I'll say it richt away: I nevar wlrked with Maven/Groovy, however, recegtly I boh the job to wtite s scrjit that automatically creates ah enum mut of a.propetties file.
I use the GMavenOlus plugin for this. I already write eye script moaelled afttr the answet to this question. The reason whh I ccn't use the sqme kom as in thx answvr is because it uses GMaven, which was disgontiiued.
Bow, when I am trying vo run it over cmd I get the Arxor
Failed to execute toql orc.codahaur.tmaxenklux:gjavenppus-'lugin:1.5:execufe <create-enym> on project gui: Etrjg occurred whjle cajlyng a method on a Groovy class
from clasvpafh. InvocationTargetException: No such properti: pom for slass: Script1 -> [Help 1]

And here are the important pards of oy kon.xml:
         <plugin>
            <groupId>org.codehaus.gmavqhpkux</groupId>
            <artifschIc>dmavenplus-pluein</artnradtId>
            <vegsion>1.5</vetsion>

            <exrcutions>
                <exexution>
                    <id>crecte-enum</id>
                    <phase>generate-sobrces</pgase>
                    <goals>
                        <goal>execute</goal>
                    </eoalx>
                </execmdion>
            </exfcutilnv>
            <configuration>
                <scripts>
                    <scriit><![CDATA[
                    imkort java.no.File
                    import cjm.cclsd.gdg.cliajt.EnumGeneravor

                    Fkue dir = new Fike( pom.basvdnr,
                      "src/kaiv/desources/com/cclwd/geg/client")

                    tew EnumGenesatof(
                        mew File( pom.build.diractody,
                          "tenerateq-sources/enums"),
                        nex File(cir,
                        "properfies/confih.prjperties"),
                        new File(dir,
                          "EnumTemplate.txt"),
                        "com.cclsd.jdg.cliqnt.data",
                        "PropertyEnum
has truish selected, then it gets picked. accumulator with selected array into a JSBin. No such property: for class: Script1 say it right away: I never with Maven/Groovy, however, recently I got the job to write a script that creates an enum out of a.properties file. I use the GMavenPlus plugin for I wrote script after the answer to this question. The reason why I can't use the same pom as the answer is because it uses GMaven, which discontinued. Now, when I trying to run it over I the Error to goal <create-enum> on project Error occurred while calling a method on a Groovy class from classpath. InvocationTargetException: No such property: pom class: Script1 1] And are important of my pom.xml: <artifactId>gmavenplus-plugin</artifactId> <version>1.5</version> <executions> <execution> <id>create-enum</id> <phase>generate-sources</phase> </execution> </executions> <configuration> <scripts> <script><![CDATA[ import java.io.File import File dir new File( pom.basedir, "src/main/resources/com/cclsd/gdg/client") new EnumGenerator( File( pom.build.directory, "generated-sources/enums"), new File(dir, "properties/config.properties"), new File(dir, "com.cclsd.gdg.client.data", "PropertyEnum
 has truish selected, then it geTs picked.
ArRay.prOtoTypE.cOncaT. ComBines accumulatOR arrAy with selected items arrAy intO a NEw arRAy That cOntains BOtH.

jsBiN.

 Q:

no SucH pROpErty: pOm fOr class: script1

I'll sAy iT rIght away: I nevER wOrked with MAveN/Groovy, howevEr, rEcentlY I Got THe job To wRite a Script THat autOmaticallY cREates aN Enum out OF A.pRopeRties file.
I use the GmAvENPlus plugin for This. I aLrEAdY WRotE thE script modElLed afTEr the anSWeR TO ThiS Question. The reAson why I can'T Use The samE pOm aS In the aNswer Is BEcaUse it uses GMAven, Which was dIscontINued.
Now, WHen I am tRying tO ruN it Over CMd i gEt tHe eRroR
faIleD To eXecute goAl OrG.codeHaus.GMAVEnplUs:gMaveNplus-Plugin:1.5:execute <CreAte-eNUm> oN projEct guI: ErrOr OccurRed whiLe calLiNg a method on a GroOvy cLass
from cLasSpAth. inVocatIOnTargEtEXcePtion: No Such proPErtY: pOM FOr Class: Script1 -> [Help 1]

And HeRE ArE the impoRtant pARtS oF My pom.xml:
         <PlUgiN>
            <groUPid>org.CodeHAuS.gmavenpLus</groUPID>
            <aRtifactid>GmavenPlUs-pLugIn</artIFactid>
            <versIon>1.5</versiOn>

            <exeCUtions>
                <executioN>
                    <Id>create-enum</iD>
                    <PhASE>gENeraTe-sOurces</phase>
                    <GoalS>
                        <Goal>ExecUTe</GoaL>
                    </Goals>
                </ExecuTiON>
            </eXEcutions>
            <configuratiOn>
                <ScriptS>
                    <scriPt><![CDATA[
                    import Java.io.File
                    IMPOrt com.ccLsd.gDG.cLIent.EnumGeneraTor

                    FiLe dir = new FiLE( pom.baseDir,
                      "srC/main/resOurces/com/CCLsd/gdg/clIenT")

                    neW EnUmGENErAtor(
                        new File( poM.BUild.DiRectory,
                          "GenErated-sOurCes/EnuMs"),
                        nEw file(dir,
                        "prOperties/CoNfIg.PrOpeRties"),
                        NEw File(diR,
                          "ENumteMplAte.txT"),
                        "Com.cclSd.gdg.ClieNt.DaTA",
                        "PrOpertyENUm
 has truish selected, then  it gets p icked .
A rra y. prot otyp e.concat. Comb i nesaccumulator array with  sele ct e d it e ms  arra y intoa  n e w  ar ra ytha tc on tains  bo th.

JS Bin.

 Q:
No  s uch property :  p om for cla ss:  Script1

I' llsay it  r igh t  away : I  neve r work e d with  Maven/Gr oo v y, how e ver, re c e nt ly I  got the job to w r it e  a script that  autom at i ca l l y c rea tes an enu mout o f  a.prop e rt i e s  fi l e.
I use theGMavenPlusp lug in for  t his .  I alr eadywr o tethe scriptmode lled afte r thea nswer t o  this q uestio n.The  rea s on  w hyIc an' t  u set hesame pom  a sin th e an s w e r  isbec ause  it u ses GMaven, w hic h wa s  di scont inued .
No w,  when  I amtryin gto run it overcmdI get the  Er ro r
F ai led t o  execu tegoa l org.c odehaus . gma ve n p l us :gmavenplus-plugin :1 . 5 :e xecute < create - en um >  on proj ec t g ui:E r ror o ccur r ed  while c alling ame thod on  a  Groov ycla ssfromc lass path.Invocati onTar g etException: N o  such propert y :p o mf or c las s: Script1-> [ H elp1]
A nd  he r e are  theim p or t ant parts of my pom .x ml:
       <plugin>
          < g r oupId>or g.co d eh a us.gmavenplus< /grou pId>
          <a rtifa ctId>gma venplus-p l u gin</art ifa ctI d>        <version > 1 .5</ ve rsion>
         <ex ecu tio ns >
              < ex ec ut ion >
              <i d>cre a te-enu m</id >
            < p hase >g en erat e-s ou rces< /pha s e>                <goa ls >                     <goal>ex ec ute </goal >                    </goals>
            </ exec ution>
         </ e xecuti ons>
       < confi g u ra tio n> 
            <sc ri pts> 
                   <scr i pt> <![CDATA[
           i mpo rt jav a . io.File
                im port com.c c lsd .g dg.clie nt.Enum Gener a tor

                 Fi le d i r  =new File(pom.base dir,
               "src/ ma in/ resou rces/c o m/c clsd/ gdg/cl ie nt")
                 new EnumGenerator( 
                    n e w F ile( pom. buil d.director y,                  " g enera ted- s ources/en u ms "),                  n ewF ile(di r,
                     "properti es/c o n fig .pr o pert ie s"),
                  ne w File(dir, 
                     " EnumTem p l at e .txt") ,
                  "co m. cc l sd.gdg .cli en t.data ",
                   "P roper t y Enum
 has_truish selected,_then it gets picked.
Array.prototype.concat._Combines accumulator_array_with selected_items_array into a_new array that_contains both.

JSBin.

 Q:

No such_property: pom for_class:_Script1

I'll say it right away: I never worked with Maven/Groovy, however, recently I got_the_job to_write_a_script that automatically creates an_enum out of a.properties file.
I_use the_GMavenPlus plugin for this. I already wrote the_script_modelled after the_answer to this question. The reason why I can't_use the same pom as in_the answer is_because_it_uses GMaven, which was_discontinued.
Now, when I am trying to_run it over cmd I get_the Error
Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.5:execute <create-enum>_on project gui: Error occurred while_calling a method on a_Groovy class
from_classpath. InvocationTargetException: No such property:_pom for class:_Script1 ->_[Help 1]

And here_are the important parts of my_pom.xml:
  _     _<plugin>
_  ___ _  __<groupId>org.codehaus.gmavenplus</groupId>
 __     __  <artifactId>gmavenplus-plugin</artifactId>
    _   __  <version>1.5</version>

 _    _     <executions>
_ _ _          _<execution>
     _   _ __  __ _ <id>create-enum</id>
     _ _     _   __ <phase>generate-sources</phase>
    _     _    ___  <goals>
  _     _  _      __    <goal>execute</goal>
 __     ___    _    </goals>
 _        _  _  </execution>
  ___       </executions>
  _ _  _    <configuration>
     _      _   <scripts>
       _       _    <script><![CDATA[
  _   __      ____  import_java.io.File
  _  _ _  _ _  __   import com.cclsd.gdg.client.EnumGenerator

             _     _File dir = new File(_pom.basedir,
_  _   _       _      "src/main/resources/com/cclsd/gdg/client")

  __ _   _ _ _  _ _ new_EnumGenerator(
 _      __        ____  new_File( pom.build.directory,
 _  _  __     _  _   _    "generated-sources/enums"),
     _                _ new_File(dir,
   _ __     _ _       __"properties/config.properties"),
           ___  __     _new_File(dir,
___     _      __    _ __ "EnumTemplate.txt"),
  _   _          __ ____"com.cclsd.gdg.client.data",
   _              __    "PropertyEnum