[jboss-cvs] jboss-seam/seam-gen/build-scripts ...

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


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

  Modified:    seam-gen/build-scripts  build-war.xml
  Log:
  Get rid of the <groovy> task
  
  Revision  Changes    Path
  1.15      +7 -21     jboss-seam/seam-gen/build-scripts/build-war.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build-war.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/build-scripts/build-war.xml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- build-war.xml	15 May 2007 15:53:42 -0000	1.14
  +++ build-war.xml	6 Jun 2007 19:56:41 -0000	1.15
  @@ -39,33 +39,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