[jboss-cvs] jboss-seam/examples/groovybooking ...

Emmanuel Bernard emmanuel.bernard at jboss.com
Wed Jun 6 15:56:42 EDT 2007


  User: ebernard
  Date: 07/06/06 15:56:42

  Modified:    examples/groovybooking  build.xml
  Log:
  Get rid of the <groovy> task
  
  Revision  Changes    Path
  1.3       +7 -21     jboss-seam/examples/groovybooking/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/groovybooking/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- build.xml	27 May 2007 03:13:24 -0000	1.2
  +++ build.xml	6 Jun 2007 19:56:42 -0000	1.3
  @@ -41,33 +41,19 @@
       <taskdef name ="groovyc"
           classname ="org.codehaus.groovy.ant.Groovyc"
           classpathref="build.classpath"/> <!-- really only the groovy jar is necessary -->
  -    <taskdef name="groovy"
  -        classname="org.codehaus.groovy.ant.Groovy"
  -        classpathref="build.classpath"/> <!-- really only the groovy jar is necessary -->
  -
       
       <target name="init" description="Initialize the build">
           <mkdir dir="${classes.model.dir}" />
           <mkdir dir="${classes.action.dir}" />
           <mkdir dir="${dist.dir}" />
           <!-- if a .groovy file is in model or action, set groovy.present -->
  -        <groovy>
  -          File file = new File("${properties.basedir}/${properties.'src.action.dir'}")
  -          boolean isGroovy
  -          file.eachFileRecurse {
  -            //use an exception for short exit
  -            if ( it.name.endsWith('.groovy') ) isGroovy = true
  -          }
  -
  -          if (!isGroovy) {
  -            file = new File("${properties.basedir}/${properties.'src.model.dir'}")
  -            file.eachFileRecurse {
  -              //use an exception for short exit
  -              if ( it.name.endsWith('.groovy') ) isGroovy = true
  -            }
  -          }
  -          if (isGroovy) properties.'groovy.present' = true
  -        </groovy>
  +        <available property="groovy.present" value="true" file="">
  +          <filepath>
  +            <fileset dir="${src.action.dir}">
  +              <include name="**/*.groovy"/>
  +            </fileset>
  +          </filepath>
  +        </available>
           <condition property="groovy.dynamic" value="true">
               <and>
                   <isset property="groovy.present"/>
  
  
  



More information about the jboss-cvs-commits mailing list