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 2001/01/09 22:25:06 UTC

cvs commit: jakarta-log4j build.inc

ceki        01/01/09 13:25:06

  Modified:    .        build.inc
  Log:
  The ANT build for org.apache.log4j.xml.* should work even if Xerces is not
  present. The presence of jaxp+parser.jar
  
  Revision  Changes    Path
  1.5       +11 -1     jakarta-log4j/build.inc
  
  Index: build.inc
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/build.inc,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- build.inc	2001/01/09 21:06:17	1.4
  +++ build.inc	2001/01/09 21:25:06	1.5
  @@ -37,6 +37,16 @@
       <echo message="Xerces is present."/>
     </target>
   
  +  <target name="sunParserCheck">
  +    <available classname="com.sun.xml.parser.DocumentBuilderFactoryImpl" 
  +                          property="sunParser-present"/>
  +    <available classname="com.sun.xml.parser.DocumentBuilderFactoryImpl" property="jaxp-present"/>
  +  </target>   
  +  <target name="sunParser" depends="sunParserCheck" if="sunParser-present">
  +    <echo message="Sun JAXP parser is present."/>
  +  </target>
  +
  +
     <target name="jmsCheck">
       <available classname="javax.jms.Message" property="jms-present"/>
     </target>   
  @@ -115,7 +125,7 @@
   	   classpath="${classpath}"/>
   </target>
   
  - <target name="build.xml" depends="init, xerces" if="xerces-present">   
  + <target name="build.xml" depends="init, xerces, sunParser" if="jaxp-present">
       <echo message="Really compiling org.log4j.xml" />
       <javac 
   	   srcdir="${srcdir}"