portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sg...@apache.org
Subject cvs commit: jakarta-jetspeed/lib mail.jar
Date Tue, 11 Feb 2003 23:27:54 GMT
sgala       2003/02/11 15:27:54

  Modified:    build    build.xml
  Removed:     lib      mail.jar
  Log:
  Removing mail.jar and making build.xml complain if they are not in the lib directory
  
  Revision  Changes    Path
  1.181     +60 -2     jakarta-jetspeed/build/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/build/build.xml,v
  retrieving revision 1.180
  retrieving revision 1.181
  diff -u -r1.180 -r1.181
  --- build.xml	28 Jan 2003 05:57:47 -0000	1.180
  +++ build.xml	11 Feb 2003 23:27:53 -0000	1.181
  @@ -68,6 +68,7 @@
       <property name="lib.dir" value="lib"/>    
       <property name="conf.test.dir" value="build/cactus"/>
       <property name="webapp.dir" value="webapp"/>        
  +
       
       <!-- =================================================================== -->
       <!-- Set the properties related to the build area                        -->
  @@ -120,7 +121,7 @@
               <!-- Everything in the project's lib dir -->
   
               <include name="*.jar"/>
  -        </fileset>        
  +        </fileset>
       </path>
   
       <!-- =================================================================== -->
  @@ -149,6 +150,7 @@
           <echo message="junit.jar = ${junit.jar}"/>
           <echo message="build.compiler = ${build.compiler}"/>
           <echo message="locale.default = ${locale.default}"/>
  +        <echo message="javamail.dir = ${javamail.dir}"/>
                   
           <!-- Initialize custom Ant task needed for running the server tests -->
           <taskdef name="runservertests" classname="org.apache.cactus.ant.RunServerTestsTask">
  @@ -162,6 +164,62 @@
                     
       </target>
   
  +    <!-- =================================================================== -->
  +    <!-- Check for the javax.mail classes -->
  +
  +    <!-- =================================================================== -->
  +    <target name="check_for_jaf">
  +        <available property="jaf.present"
  +           classname="javax.activation.FileDataSource">
  +        </available>
  +    </target>
  +
  +    <target 
  +        name="jaf_prepare_error" depends="check_for_jaf" 
  +        unless="jaf.present"
  +    >
  +        <echo>
  +	      Sun Microsystems Corporation 
  +              forbids redistribution of the Java Activation Framework  package
  +              unless it is bundled in a binary distribution.
  +
  +	      So, if you want to compile Jetspeed, you will have
  +              to download separately the activation.jar binary from
  +
  +              http://java.sun.com/products/javabeans/glasgow/jaf.html
  +
  +	      and ensure that it is in the lib/ directory.
  +
  +        </echo>
  +	<fail>Java Activation Framework not found</fail>
  +    </target>
  +    <target name="check_for_javamail">
  +        <available property="javamail.present"
  +           classname="javax.mail.MessagingException">
  +        </available>
  +    </target>
  +
  +    <target 
  +        name="javamail_prepare_error" depends="check_for_javamail" 
  +        unless="javamail.present"
  +    >
  +        <echo>
  +	      Sun Microsystems Corporation 
  +              forbids redistribution of the JavaMail package
  +              unless it is bundled in a binary distribution.
  +
  +	      So, if you want to compile Jetspeed, you will have
  +              to download separately the mail.jar binary from
  +
  +              http://java.sun.com/products/javamail/
  +
  +	      and ensure that it is in the lib/ directory.
  +
  +        </echo>
  +	<fail>Javamail not found</fail>
  +    </target>
  +
  +
       <!-- ================================================================== -->
       <!-- Displays usage information                                         -->
       <!-- ================================================================== -->
  @@ -287,7 +345,7 @@
       <!-- Compiles the class files                                            -->
       <!-- =================================================================== -->
       <target 
  -        name="compile" depends="apis,om,dbpsml,checkstyle" 
  +        name="compile" depends="apis,om,dbpsml,checkstyle,javamail_prepare_error,jaf_prepare_error"

           description="Compiles the class files"
       >
           
  
  
  

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


Mime
View raw message