[jboss-cvs] JBossCache/etc ...

Manik Surtani manik at jboss.org
Wed Mar 14 12:42:52 EDT 2007


  User: msurtani
  Date: 07/03/14 12:42:52

  Modified:    etc      build.xml
  Log:
  Do not attempt to build pojocache related stuff for non-pojo related distros
  
  Revision  Changes    Path
  1.21      +15 -7     JBossCache/etc/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/etc/build.xml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -b -r1.20 -r1.21
  --- build.xml	13 Jan 2007 15:56:22 -0000	1.20
  +++ build.xml	14 Mar 2007 16:42:52 -0000	1.21
  @@ -11,6 +11,9 @@
      <!-- Test if JDK5 is available -->
      <available classname="java.lang.Enum" property="HAVE_JDK_1.5"/>
   
  +   <!-- Test if this is a pojocache-enabled package -->
  +   <available file="examples/PojoCache" property="ALLOW_POJOCACHE"/>
  +
      <!-- set local properties for this build -->
      <path id="lib.classpath">
         <fileset dir="${lib}">
  @@ -71,7 +74,18 @@
      <target name="compile" depends="compile-50" description="Compiles all Java files">
      </target>
   
  -   <target name="compile-50" depends="init" description="Build unit testing class for JDK50" if="HAVE_JDK_1.5">
  +   <target name="pojocache-resources" depends="init" if="ALLOW_POJOCACHE">
  +
  +      <copy todir="output/resources" filtering="no" overwrite="yes">
  +         <fileset dir="resources">
  +            <include name="pojocache-aop.xml"/>
  +         </fileset>
  +      </copy>
  +
  +   </target>
  +
  +   <target name="compile-50" depends="init, pojocache-resources" description="Build unit testing class for JDK50"
  +           if="HAVE_JDK_1.5">
         <javac srcdir="${source}"
                destdir="${build}"
                includes="org/jboss/**"
  @@ -82,12 +96,6 @@
            </classpath>
         </javac>
   
  -      <copy todir="output/resources" filtering="no" overwrite="yes">
  -         <fileset dir="resources">
  -            <include name="pojocache-aop.xml"/>
  -         </fileset>
  -      </copy>
  -
         <copy todir="output/etc" filtering="no" overwrite="yes">
            <fileset dir="etc">
               <include name="log4j.xml"/>
  
  
  



More information about the jboss-cvs-commits mailing list