commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/digester build.properties.sample build.xml
Date Sat, 18 Oct 2003 13:40:46 GMT
rdonkin     2003/10/18 06:40:46

  Modified:    digester build.properties.sample build.xml
  Log:
  Patched build script so that the logging output (which often confused new developers) can
be easily supressed. Patch submitted by Simon Kitching.
  
  Revision  Changes    Path
  1.6       +6 -0      jakarta-commons/digester/build.properties.sample
  
  Index: build.properties.sample
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/build.properties.sample,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.properties.sample	19 Mar 2002 01:30:59 -0000	1.5
  +++ build.properties.sample	18 Oct 2003 13:40:46 -0000	1.6
  @@ -14,3 +14,9 @@
   
   # junit.jar - JUnit 3.7+ Classpath
   junit.jar=${root}/junit.jar
  +
  +# The digester tests output logging information (including Exceptions) 
  +# which can often be confusing to new developers.
  +# This output is suppressed by default but can be re-enabled by
  +#suppressLogOutputDuringTests=false 
  +suppressLogOutputDuringTests=true
  \ No newline at end of file
  
  
  
  1.48      +69 -1     jakarta-commons/digester/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/build.xml,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- build.xml	4 Oct 2003 12:26:51 -0000	1.47
  +++ build.xml	18 Oct 2003 13:40:46 -0000	1.48
  @@ -99,6 +99,14 @@
   
   <!-- ========== Test Execution Defaults =================================== -->
   
  +  <property name="suppressLogOutputDuringTests" value="true"/>
  +  <property name="log.factoryopt" value="org.apache.commons.logging.Log"/>
  +  <property name="log.noop" value="org.apache.commons.logging.impl.NoOpLog"/>
  +  <property name="log.class" value="${log.noop}"/>
  +  
  +  <!--
  +  <property name="logclass" value="org.apache.commons.logging.impl.NoOpLog"/>
  +  -->
   
     <!-- Construct unit test classpath -->
     <path id="test.classpath">
  @@ -272,8 +280,12 @@
     <target name="test.factory" depends="compile.tests"
      description="Run tests for loading Digester rules from XML ...">
       <echo message="Running factory create tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.TestFactoryCreate"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -282,8 +294,12 @@
     <target name="test.xmlrules" depends="compile.tests"
      description="Run tests for loading Digester rules from XML ...">
       <echo message="Running xmlrules tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.xmlrules.DigesterLoaderTestSuite"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -293,8 +309,12 @@
     <target name="test.bpsr" depends="compile.tests"
      description="Run tests for BeanPropertySetterRule ...">
       <echo message="Running BeanPropertySetterRule tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.BeanPropertySetterRuleTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -304,8 +324,12 @@
     <target name="test.callmethod" depends="compile.tests"
      description="Run tests for CallMethodRule and CallParamRule ...">
       <echo message="Running CallMethodRule tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.CallMethodRuleTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -314,8 +338,12 @@
     <target name="test.objectparam" depends="compile.tests"
      description="Run tests for ObjectParamRule ...">
       <echo message="Running ObjectParamRule tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.ObjectParamRuleTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -324,8 +352,12 @@
     <target name="test.digester" depends="compile.tests"
      description="Run basic Digester unit tests ...">
       <echo message="Running basic Digester tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.DigesterTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -335,8 +367,12 @@
     <target name="test.matching" depends="compile.tests"
      description="Run rule Digester test cases">
       <echo message="Running rule Digester tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.RulesBaseTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -345,8 +381,12 @@
     <target name="test.regex" depends="compile.tests"
      description="Run tests for RegexRules">
       <echo message="Running tests for RegexRules ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.RegexRulesTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -355,8 +395,12 @@
     <target name="test.wdrules" depends="compile.tests"
      description="Run tests for WithDefaultsRulesWrapper">
       <echo message="Running tests for WithDefaultsRulesWrapper ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.WDRulesWrapperTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -365,8 +409,12 @@
     <target name="test.matching.extended" depends="compile.tests"
      description="Run rule Digester extended test cases">
       <echo message="Running rule Digester tests for ExtendedBaseRules ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.EBRTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -376,8 +424,12 @@
     <target name="test.rss" depends="compile.tests"
      description="Run RSSDigester test cases">
       <echo message="Running RSSDigester tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="org.apache.commons.digester.rss.RSSDigester"
                  fork="yes">
  +      <jvmarg value="-D${logopt}"/>
         <classpath refid="rss.classpath"/>
       </java>
     </target>
  @@ -386,8 +438,12 @@
     <target name="test.rule" depends="compile.tests"
      description="Run rule Digester unit tests ...">
       <echo message="Running Rule tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.RuleTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -396,8 +452,12 @@
     <target name="test.spr" depends="compile.tests"
      description="Run tests for SetPropertyRule ...">
       <echo message="Running SetPropertyRule tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.SetPropertyRuleTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -407,8 +467,12 @@
     <target name="test.node" depends="compile.tests"
             description="Run NodeCreateRule tests ...">
       <echo message="Running NodeCreateRule tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.NodeCreateRuleTestCase"/>
         <classpath refid="test.classpath"/>
       </java>
  @@ -417,8 +481,12 @@
     <target name="test.plugins" depends="compile.tests"
             description="Run Plugins tests ...">
       <echo message="Running Plugins tests ..."/>
  +    <condition property="logopt" value="${log.factoryopt}=${log.class}">
  +      <istrue value="${suppressLogOutputDuringTests}"/>
  +    </condition>
       <java classname="${test.runner}" fork="yes"
           failonerror="${test.failonerror}">
  +      <jvmarg value="-D${logopt}"/>
         <arg value="org.apache.commons.digester.plugins.TestAll"/>
         <classpath refid="test.classpath"/>
       </java>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message