You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by cr...@apache.org on 2002/05/23 21:47:27 UTC

cvs commit: jakarta-avalon-excalibur/logger build.xml ant.properties.sample

crafterm    02/05/23 12:47:27

  Modified:    logger   build.xml ant.properties.sample
  Log:
  Adjusted build.xml to conditionally compile SMTPTargetFactory only if the
  JavaMail libraries are available, and updated ant.properties.sample to
  include sample location settings for the JavaMail jar file.
  
  Revision  Changes    Path
  1.16      +6 -0      jakarta-avalon-excalibur/logger/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/logger/build.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- build.xml	26 Apr 2002 01:36:21 -0000	1.15
  +++ build.xml	23 May 2002 19:47:26 -0000	1.16
  @@ -16,6 +16,7 @@
           <pathelement location="${logkit.jar}"/>
           <pathelement location="${avalon-framework.jar}"/>
           <pathelement location="${checkstyle.jar}"/>
  +        <pathelement location="${mail.jar}"/>
           <pathelement path="${java.class.path}"/>
       </path>
   
  @@ -54,6 +55,9 @@
           <available property="datasource.present" classname="javax.sql.DataSource">
               <classpath refid="project.class.path"/>
           </available>
  +        <available property="javamail.present" classname="javax.mail.Session">
  +            <classpath refid="project.class.path"/>
  +        </available>
       </target>
       
       <target name="dependencies" description="Check dependencies" unless="skip.dependencies">
  @@ -95,6 +99,8 @@
                        unless="jms.present"/>
               <exclude name="org/apache/avalon/excalibur/logger/factory/JDBCTargetFactory.java"
                        unless="datasource.present"/>
  +            <exclude name="org/apache/avalon/excalibur/logger/factory/SMTPTargetFactory.java"
  +                     unless="javamail.present"/>
                   
           </javac>
   
  
  
  
  1.3       +7 -1      jakarta-avalon-excalibur/logger/ant.properties.sample
  
  Index: ant.properties.sample
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/logger/ant.properties.sample,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ant.properties.sample	8 Apr 2002 10:32:11 -0000	1.2
  +++ ant.properties.sample	23 May 2002 19:47:26 -0000	1.3
  @@ -10,7 +10,7 @@
   # It is overridden by ../ant.properties and ~/build.properties
   # It overrides all default.properties files and ~/.ant.properties
   #
  -# $Id: ant.properties.sample,v 1.2 2002/04/08 10:32:11 jefft Exp $
  +# $Id: ant.properties.sample,v 1.3 2002/05/23 19:47:26 crafterm Exp $
   # -----------------------------------------------------------------------------
   
   # ----- Compile Control Flags -----
  @@ -51,3 +51,9 @@
   checkstyle.home=${base.path}/checkstyle-2.1
   checkstyle.lib=${checkstyle.home}
   checkstyle.jar=${checkstyle.lib}/checkstyle-all-2.1.jar
  +
  +# ----- JavaMail, version 1.2 or later -----
  +# Required for SMTPTargetFactory support
  +mail.home=${base.path}/mail
  +mail.lib=${mail.home}
  +mail.jar=${mail.lib}/mail.jar
  
  
  

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