You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-cvs@jakarta.apache.org by ce...@apache.org on 2002/04/12 15:55:35 UTC

cvs commit: jakarta-log4j/tests README

ceki        02/04/12 06:55:35

  Modified:    .        build.xml
               tests    README
  Added:       .        build.properties.sample
  Removed:     contribs/SvenReimers/gui Makefile
               contribs/SvenReimers/gui/examples Makefile
  Log:
  The path to jar files are now set using a build.property file
  instead of the CLASSPATH env variable. There is also no need for
  the build.sh and build.bat scripts. They will be removed a bit later.
  
  Revision  Changes    Path
  1.27      +57 -24    jakarta-log4j/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/build.xml,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- build.xml	4 Apr 2002 14:46:02 -0000	1.26
  +++ build.xml	12 Apr 2002 13:55:35 -0000	1.27
  @@ -9,6 +9,9 @@
   <!-- ================================================================= -->
   <project name="log4j" default="usage" basedir="." >
   
  +  
  +  <!-- The build.properties file defines the parth to local jar files -->
  +  <property file="build.properties"/>               
   
     <!-- Read the system environment variables and stores them in properties, -->
     <!-- prefixed with "env". -->
  @@ -60,6 +63,19 @@
     <property name="dist.tmp" value="dist/tmp"/>
   
   
  +  <!-- Construct compile classpath -->
  +  <path id="compile.classpath">
  +    <pathelement location="${build.home}/classes"/>
  +    <pathelement location="${junit.jar}"/>
  +    <pathelement location="${javamail.jar}"/>
  +    <pathelement location="${activation.jar}"/>
  +    <pathelement location="${jaxp.jaxp.jar}"/>
  +    <pathelement location="${jaxp.parser.jar}"/>
  +    <pathelement location="${jms.jar}"/>
  +    <pathelement location="${jmx.jar}"/>
  +    <pathelement location="${jmx-extra.jar}"/>
  +  </path>
  +
   
     <!-- ================================================================= -->
     <!-- Default target                                                    -->
  @@ -84,7 +100,11 @@
     </target>
   
     <target name="junitCheck">
  -    <available classname="junit.framework.TestCase" property="junit-present"/>
  +    <available classname="junit.framework.TestCase" property="junit-present">
  +      <classpath>
  +	<pathelement location="${junit.jar}"/>
  +      </classpath>
  +    </available>
     </target>
     <target name="junit" depends="junitCheck" if="junit-present">
       <echo message="JUnit is present."/>
  @@ -100,8 +120,12 @@
     </target>
   
   
  - <target name="jmxCheck">
  -    <available classname="javax.management.MBeanInfo" property="jmx-present"/>
  +  <target name="jmxCheck">
  +    <available classname="javax.management.MBeanInfo" property="jmx-present">
  +      <classpath>
  +	<pathelement location="${jmx.jar}"/>
  +      </classpath>
  +    </available>
     </target>
     <target name="jmx" depends="jmxCheck" if="jmx-present">
       <echo message="JMX is present."/>
  @@ -109,7 +133,11 @@
   
   
     <target name="jmsCheck">
  -    <available classname="javax.jms.Message" property="jms-present"/>
  +    <available classname="javax.jms.Message" property="jms-present">
  +      <classpath>
  +	<pathelement location="${jms.jar}"/>
  +      </classpath>
  +    </available>
     </target>
     <target name="jms" depends="jmsCheck" if="jms-present">
       <echo message="JMS is present."/>
  @@ -123,7 +151,11 @@
     </target>
   
     <target name="javamailCheck">
  -    <available classname="javax.mail.Message" property="javamail-present"/>
  +    <available classname="javax.mail.Message" property="javamail-present">
  +      <classpath>
  +	<pathelement location="${javamail.jar}"/>
  +      </classpath>
  +    </available>
     </target>
     <target name="javamail" depends="javamailCheck" if="javamail-present">
       <echo message="JAVAMAIL is present."/>
  @@ -145,7 +177,6 @@
       <javac srcdir="${java.source.dir}"
   	   destdir="${javac.dest}"
   	   includes="${stem}/**/*.java, ${stem}/xml/XMLLayout.java,"
  -	   classpath="${classpath}"
   	   excludes="misc/*, **/UnitTest*.java,
                       **/StressCategory.java,
   	            **/doc-files/*,
  @@ -157,7 +188,10 @@
                  	    ${stem}/jmx/*.java,
                  	    ${stem}/or/jms/MessageRenderer.java,
   		    **/pending/**"
  -	    debug="on"/>
  +	    debug="on">
  +      <classpath refid="compile.classpath"/>
  +    </javac>
  +    
     </target>
   
     <target name="build.examples" depends="build.core">
  @@ -179,8 +213,9 @@
     <target name="build.unitTests" depends="init, junit" if="junit-present">
       <javac srcdir="${java.source.dir}"
   	   destdir="${javac.dest}"
  -	   includes="**/UnitTest*.java"
  -	   classpath="${classpath}"/>
  +	   includes="**/UnitTest*.java">
  +      <classpath refid="compile.classpath"/>
  +    </javac>
     </target>
   
    <target name="build.xml" depends="init, jaxp" if="jaxp-present">
  @@ -189,7 +224,9 @@
   	   includes="${stem}/xml/**/*.java"
              excludes="${stem}/xml/examples/doc-files/**.java,
   	             ${stem}/xml/Transform.java"
  -	   classpath="${classpath}"/>
  +	   classpath="${classpath}">
  +      <classpath refid="compile.classpath"/>
  +    </javac>
       <copy file="${BSTEM}/xml/log4j.dtd"
   	  tofile="${javac.dest}/${stem}/xml/log4j.dtd" />
     </target>
  @@ -198,23 +235,26 @@
                  if="javamail-present">
       <javac srcdir="${java.source.dir}"
   	   destdir="${javac.dest}"
  -	   includes="${stem}/net/SMTPAppender.java"
  -	   classpath="${classpath}"/>
  +	   includes="${stem}/net/SMTPAppender.java">
  +      <classpath refid="compile.classpath"/>
  +    </javac>
     </target>
   
     <target name="build.jms" depends="init, jms, jndi" if="jms-present">
       <javac srcdir="${java.source.dir}"
   	   destdir="${javac.dest}"
  -	   includes="${stem}/net/JMS*.java"
  -	   classpath="${classpath}"/>
  +	   includes="${stem}/net/JMS*.java">
  +      <classpath refid="compile.classpath"/>
  +    </javac>
     </target>
   
    <target name="build.jmx" depends="init, jmx, jndi" if="jmx-present">
       <javac srcdir="${java.source.dir}"
   	   destdir="${javac.dest}"
   	   includes="${stem}/jmx/*.java"
  -           excludes="${stem}/jmx/T.java"
  -	   classpath="${classpath}"/>
  +           excludes="${stem}/jmx/T.java">
  +      <classpath refid="compile.classpath"/>
  +    </javac>
     </target>
   
   
  @@ -395,20 +435,13 @@
   			  LICENSE.APL,
   			  LICENSE.txt,
   			  dist/lib/*.jar,
  -		          org/**,
  -			  icons/**,
   			  dist/classes/**,
   			  contribs/**"
                   excludes="make/make.loc,
   		          **/*.bak, **/goEnv.bat,
   		          **/Makefile, **/goEnv.bat,
   	                  docs/pub-support/*,
  -	                  src/java/org/apache/log4j/test/**/*,
  -	                  src/java/org/apache/log4j/test/serialization/T/*.jar,
  -	                  src/java/org/apache/log4j/test/serialization/T/compile,
  -	                  src/java/org/apache/log4j/test/serialization/**/*.class,
  -	                  src/java/org/apache/log4j/examples/appserver/*,
  -			  dist/classes/org/apache/log4j/examples/appserver/*.class,
  +	                  src/java/org/apache/log4j/test/**/*,	
   			  **/.#*"/>
       </copy>
   
  
  
  
  1.1                  jakarta-log4j/build.properties.sample
  
  Index: build.properties.sample
  ===================================================================
  
  # Required to build test cases
  junit.jar=/java/junit3.7/junit.jar
  
  # The jaxp interface and a jaxp parser are required
  # to build the DOMConfigurator
  jaxp.home=/java/jaxp-1.1
  jaxp.jaxp.jar=${jaxp.home}/jaxp.jar
  jaxp.parser.jar=${jaxp.home}/crimson.jar
  
  # JavaMail API Required to build the SMTPAppender
  javamail.jar=/java/javamail-1.2/mail.jar
  activation.jar=/java/jaf-1.0.1/activation.jar
  
  
  # JMS interfaces are required to be on the classpath
  # in order to build the JMSAppender.
  jms.jar=/java/JMQ1.1/lib/jms.jar
  
  # Required to build the org.apace.log4j.jmx package.
  jmx.jar=/java/jmx/lib/jmxri.jar
  jmx-extra.jar=/java/jmx/lib/jmxtools.jar
  
  
  
  
  
  
  1.4       +4 -2      jakarta-log4j/tests/README
  
  Index: README
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/tests/README,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- README	22 Feb 2002 18:09:26 -0000	1.3
  +++ README	12 Apr 2002 13:55:35 -0000	1.4
  @@ -7,8 +7,10 @@
   Jakarta-ant is used to compile and run the tests. Jakarta-ant version
   1.4.0 was used to compile and run the tests.
   
  -The test cases are based on Junit version 3.2. You need to place
  -junit.jar in your CLASSPATH.
  +The test cases are based on Junit version 3.2.  
  +
  +IMPORTANT: You need to place junit.jar in your CLASSPATH environment
  +variable.
   
   The test cases perform some regular expression based filtering. This
   requires jakarta-oro. Version-2.0.5 was used when writing the
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>