db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r225581 - in /incubator/derby/code/trunk: BUILDING.txt build.xml
Date Wed, 27 Jul 2005 19:19:59 GMT
Author: fuzzylogic
Date: Wed Jul 27 12:19:58 2005
New Revision: 225581

URL: http://svn.apache.org/viewcvs?rev=225581&view=rev
Fix a problem building with -Dsane=false. The ensuresanitystate target
would cause sanity to be set to true even though sane=false and the correct
SanityState.java and state.properties were generated. Also update BUILDING.txt
to remove the mention of the property 'sanity' which should only be set from


Modified: incubator/derby/code/trunk/BUILDING.txt
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/BUILDING.txt?rev=225581&r1=225580&r2=225581&view=diff
--- incubator/derby/code/trunk/BUILDING.txt (original)
+++ incubator/derby/code/trunk/BUILDING.txt Wed Jul 27 12:19:58 2005
@@ -609,11 +609,10 @@
 is then generated from a template. The sanity state defaults to 
 true. This also directs the compiler to turn on all debugging 
 options on the compiler. The sanity state can be set to insane 
-by running 'ant insane' or passing in the value -Dsane=false or 
--Dsanity=false. Note that this file will be removed after 
-'ant clobber,' so if you are rebuilding from scratch and want 
-the build to be a non-debug build, run 'ant insane' before 
+by running 'ant insane' or passing in the value -Dsane=false.
+Note that this file will be removed after 'ant clobber,' so if
+you are rebuilding from scratch and want the build to be a
+non-debug build, run 'ant insane' before building.
 Once the sanity state has been generated, Ant prints out for 
 reference the current properties that affect the build, 

Modified: incubator/derby/code/trunk/build.xml
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/build.xml?rev=225581&r1=225580&r2=225581&view=diff
--- incubator/derby/code/trunk/build.xml (original)
+++ incubator/derby/code/trunk/build.xml Wed Jul 27 12:19:58 2005
@@ -47,8 +47,21 @@
   <target name="ensuresanitystate" unless="state.available">
+    <antcall target="evaluate.sane"/>
+    <antcall target="ensuresanitystate.sane"/>
+    <antcall target="ensuresanitystate.insane"/>
+  </target>
+  <target name="evaluate.sane">
+    <condition property="generate.sane">
+      <equals arg1="${sane}" arg2="true"/>
+    </condition>
+  </target>
+  <target name="ensuresanitystate.sane" if="generate.sane">
     <antcall target="sane"/>
+  <target name="ensuresanitystate.insane" unless="generate.sane">
+    <antcall target="insane"/>
+  </target>
   <target name="showenv" depends="init" unless="showenv.done">
     <echo message=""/>
@@ -482,11 +495,15 @@
     <propertyfile file="${state.file}" comment="${header}">
       <entry key="sanity" value="true" type="string"/>
+    <delete file="${sanity.dir}/SanityState.java"/>
+    <delete dir="${sanity.out.dir}"/>
   <target name="insane">
     <propertyfile file="${state.file}" comment="${header}">
       <entry key="sanity" value="false" type="string"/>
+    <delete file="${sanity.dir}/SanityState.java"/>
+    <delete dir="${sanity.out.dir}"/>

View raw message