ovidiu 2003/01/08 10:38:14 Modified: . build.xml Log: Added conditional compilation for the mail action code in scratchpad. Revision Changes Path 1.305 +18 -1 xml-cocoon2/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/build.xml,v retrieving revision 1.304 retrieving revision 1.305 diff -u -r1.304 -r1.305 --- build.xml 8 Jan 2003 09:28:01 -0000 1.304 +++ build.xml 8 Jan 2003 18:38:14 -0000 1.305 @@ -541,6 +541,11 @@ <available classpathref="classpath" property="transaction.present" classname="javax.transaction.Transaction"/> + + <available classpathref="classpath" + property="mail.present" + classname="javax.mail.message"/> + </target> <!-- moved to tools/src/blocks-build.xsl @@ -833,11 +838,22 @@ </antcall> </target> + <!-- Outputs a warning if javax.mail.Message class is missing during compilation --> + <target name="mail-warn" unless="mail.present" depends="optional-tests"> + <antcall target="op-warning"> + <param name="thing" value="Mail"/> + <param name="recovery" + value="Get the mail package from http://java.sun.com/products/javamail/ and place the jar in the lib/optional dir"/> + <param name="message" + value="Mail is required for the Mail action."/> + </antcall> + </target> + <!-- =================================================================== --> <!-- Print out warnings for optional components --> <!-- =================================================================== --> <target name="optional-warnings" - depends="bsf-warn, rhino-warn, jfor-warn, xmldb-warn, php-warn, naming-warn, svg-warn, tidy-warn, maybeupload-warn, lucene-warn, deli-warn, velocity-warn, hsqldb-warn, resolver-warn, jisp-warn, pizza-warn, poi-warn, commons-logging-warn, jxpath-warn, httpclient-warn, activation-warn, transaction-warn"> + depends="bsf-warn, rhino-warn, jfor-warn, xmldb-warn, php-warn, naming-warn, svg-warn, tidy-warn, maybeupload-warn, lucene-warn, deli-warn, velocity-warn, hsqldb-warn, resolver-warn, jisp-warn, pizza-warn, poi-warn, commons-logging-warn, jxpath-warn, httpclient-warn, activation-warn, transaction-warn, mail-warn"> </target> @@ -1016,6 +1032,7 @@ <exclude name="**/Slide*" unless="transaction.present"/> <exclude name="**/slide*" unless="transaction.present"/> + <exclude name="**/mail/**" unless="mail.present"/> </fileset> </copy> </then>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]