db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattba...@apache.org
Subject cvs commit: jakarta-ojb build.xml
Date Fri, 03 Jan 2003 00:17:34 GMT
mattbaird    2003/01/02 16:17:34

  Modified:    .        build.xml
  Log:
  the useP6Spy functionality wasn't actually working. Now it is.
  
  Revision  Changes    Path
  1.63      +14 -5     jakarta-ojb/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/build.xml,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- build.xml	25 Dec 2002 23:18:06 -0000	1.62
  +++ build.xml	3 Jan 2003 00:17:33 -0000	1.63
  @@ -196,16 +196,25 @@
       <!-- I did not find any other way to set this property with two         -->
       <!-- conditional tasks. Maybe there's a better solution ?               -->
       <!-- ================================================================== -->
  -	<target name="useP6Spy" if="useP6Spy">
  -		<echo message="using P6Spy to trace JDBC calls"/>
  +	
  +	<target name="checkP6Spy">
  +	    <condition property="shouldUseP6Spy">
  +		<istrue value="${useP6Spy}">
  +		</istrue>
  + 	    </condition>
  +	</target>
  +
  +	<target name="useP6Spy" if="shouldUseP6Spy">
  +		<echo message="using P6Spy to trace JDBC calls. Value of useP6Spy is ${useP6Spy}"/>
   		<property name="jdbcRuntimeDriver" value="com.p6spy.engine.spy.P6SpyDriver"/>
   	</target>
  -	<target name="dontUseP6Spy" unless="useP6Spy">
  -		<echo message="NOT using P6Spy"/>
  +
  +	<target name="dontUseP6Spy" unless="shouldUseP6Spy">
  +		<echo message="NOT using P6Spy to trace JDBC calls. Value of useP6Spy is ${useP6Spy}"/>
   		<property name="jdbcRuntimeDriver" value="${databaseDriver}"/>
   	</target>
   
  -	<target name="prepare-repository" depends="useP6Spy, dontUseP6Spy">
  +	<target name="prepare-repository" depends="checkP6Spy, useP6Spy, dontUseP6Spy">
   		<delete dir="${build.test}" verbose="false"/>
           <copy todir="${build.test}/ojb">
               <fileset dir="${build.srctest}/org/apache/ojb" includes="database*,repository*,*.properties,*.dtd,*.jdo"/>
  
  
  

Mime
View raw message