c8656f29fb
MailUtil if the mail stuff is unavailable the rest of the net package is fine. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2082 6335cc39-0255-0410-8fd6-9bcaacd3b74c
162 lines
6.4 KiB
XML
162 lines
6.4 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!-- build configuration -->
|
|
<project name="samskivert-checks" basedir=".">
|
|
|
|
<!-- checks to see which packages are available -->
|
|
<target name="check-available">
|
|
<echo level="info">The packages required for building are listed below. A package</echo>
|
|
<echo level="info">followed by 'true' indicates that the package ispresent. One</echo>
|
|
<echo level="info">followed by '${package.present}' indicates that it was not</echo>
|
|
<echo level="info">found. Jar files can be placed into the lib/ directory or</echo>
|
|
<echo level="info">copied into dist/lib if samskivert isbeing built as a part of a</echo>
|
|
<echo level="info">larger project.</echo>
|
|
|
|
<echo level="info"></echo>
|
|
<echo level="info">------------------------------------------</echo>
|
|
<echo level="info">Standard extensions - http://java.sun.com/</echo>
|
|
<echo level="info">------------------------------------------</echo>
|
|
<available property="servlet2.3.present" classpathref="classpath"
|
|
classname="javax.servlet.Servlet"/>
|
|
<echo level="info">Servlet 2.3: ${servlet2.3.present}</echo>
|
|
<available property="mail.present" classpathref="classpath"
|
|
classname="javax.mail.Transport"/>
|
|
<echo level="info">Java Mail: ${mail.present}</echo>
|
|
|
|
<available property="sax.present" classpathref="classpath"
|
|
classname="org.xml.sax.SAXException"/>
|
|
<echo level="info">SAX: ${sax.present}</echo>
|
|
|
|
<available property="jaxp.present" classpathref="classpath"
|
|
classname="javax.xml.parsers.SAXParser"/>
|
|
<echo level="info">JAXP: ${jaxp.present}</echo>
|
|
|
|
<echo level="info"></echo>
|
|
<echo level="info">----------------------------------------------</echo>
|
|
<echo level="info">Jakarta libraries - http://jakarta.apache.org/</echo>
|
|
<echo level="info">----------------------------------------------</echo>
|
|
<available property="jakarta.commons-colls.present" classpathref="classpath"
|
|
classname="org.apache.commons.collections.CollectionUtils"/>
|
|
<echo level="info">Commons Collections: ${jakarta.commons-colls.present}</echo>
|
|
|
|
<available property="jakarta.commons-logging.present" classpathref="classpath"
|
|
classname="org.apache.commons.logging.Log"/>
|
|
<echo level="info">Commons Logging: ${jakarta.commons-logging.present}</echo>
|
|
|
|
<available property="jakarta.commons-digester.present" classpathref="classpath"
|
|
classname="org.apache.commons.digester.Digester"/>
|
|
<echo level="info">Commons Digester: ${jakarta.commons-digester.present}</echo>
|
|
|
|
<available property="jakarta.commons-io.present" classpathref="classpath"
|
|
classname="org.apache.commons.io.IOUtils"/>
|
|
<echo level="info">Commons Io: ${jakarta.commons-io.present}</echo>
|
|
|
|
<available property="jakarta.velocity.present" classpathref="classpath"
|
|
classname="org.apache.velocity.Template"/>
|
|
<echo level="info">Velocity: ${jakarta.velocity.present}</echo>
|
|
|
|
<echo level="info"></echo>
|
|
<echo level="info">---------------</echo>
|
|
<echo level="info">Other libraries</echo>
|
|
<echo level="info">---------------</echo>
|
|
<available property="ant.present" classpathref="classpath" ignoresystemclasses="true"
|
|
classname="org.apache.tools.ant.Task"/>
|
|
<echo level="info">Ant: ${ant.present}</echo>
|
|
|
|
<available property="ehcache.present" classpathref="classpath"
|
|
classname="net.sf.ehcache.Element"/>
|
|
<echo level="info">EH Cache: ${ehcache.present}</echo>
|
|
</target>
|
|
|
|
<!-- combines package availability into build controls -->
|
|
<target name="compute-builds" depends="check-available">
|
|
<echo level="info">The packages that will be built are listed below. One followed</echo>
|
|
<echo level="info">by 'true' indicates that it will be built. One followed by</echo>
|
|
<echo level="info">'${build.package}' indicates that it will not be built. If a </echo>
|
|
<echo level="info">package is not being built, one or more of its dependencies</echo>
|
|
<echo level="info">could not be located.</echo>
|
|
|
|
<echo level="info"></echo>
|
|
<property name="build.util" value="true"/>
|
|
<!--<echo>com.samskivert.util: ${build.util}</echo>-->
|
|
|
|
<property name="build.io" value="true"/>
|
|
<!--<echo>com.samskivert.io: ${build.io}</echo>-->
|
|
|
|
<condition property="build.jdbc">
|
|
<and>
|
|
<isset property="build.io"/>
|
|
<isset property="build.util"/>
|
|
<isset property="jakarta.commons-io.present"/>
|
|
</and>
|
|
</condition>
|
|
<echo>com.samskivert.jdbc: ${build.jdbc}</echo>
|
|
|
|
<condition property="build.depot">
|
|
<and>
|
|
<isset property="build.jdbc"/>
|
|
<isset property="ehcache.present"/>
|
|
</and>
|
|
</condition>
|
|
<echo>com.samskivert.jdbc.depot: ${build.depot}</echo>
|
|
|
|
<condition property="build.depot.tools">
|
|
<and>
|
|
<isset property="build.depot"/>
|
|
<isset property="ant.present"/>
|
|
</and>
|
|
</condition>
|
|
<echo>com.samskivert.jdbc.depot.tools: ${build.depot.tools}</echo>
|
|
|
|
<condition property="build.mail">
|
|
<and>
|
|
<isset property="build.io"/>
|
|
<isset property="mail.present"/>
|
|
</and>
|
|
</condition>
|
|
<echo>com.samskivert.net.MailUtil: ${build.mail}</echo>
|
|
|
|
<condition property="build.servlet">
|
|
<and>
|
|
<isset property="build.io"/>
|
|
<isset property="build.jdbc"/>
|
|
<isset property="build.util"/>
|
|
<isset property="servlet2.3.present"/>
|
|
</and>
|
|
</condition>
|
|
<echo>com.samskivert.servlet: ${build.servlet}</echo>
|
|
|
|
<condition property="build.swing">
|
|
<isset property="build.util"/>
|
|
</condition>
|
|
<echo>com.samskivert.swing: ${build.swing}</echo>
|
|
|
|
<property name="build.test" value="true"/>
|
|
<echo>com.samskivert.test: ${build.test}</echo>
|
|
|
|
<condition property="build.velocity">
|
|
<and>
|
|
<isset property="build.servlet"/>
|
|
<isset property="build.util"/>
|
|
<isset property="jakarta.commons-colls.present"/>
|
|
<isset property="jakarta.velocity.present"/>
|
|
<isset property="servlet2.3.present"/>
|
|
</and>
|
|
</condition>
|
|
<echo>com.samskivert.velocity: ${build.velocity}</echo>
|
|
|
|
<condition property="build.xml">
|
|
<and>
|
|
<isset property="build.io"/>
|
|
<isset property="build.util"/>
|
|
<isset property="jakarta.commons-logging.present"/>
|
|
<isset property="jakarta.commons-digester.present"/>
|
|
<isset property="jaxp.present"/>
|
|
<isset property="sax.present"/>
|
|
</and>
|
|
</condition>
|
|
<echo>com.samskivert.xml: ${build.xml}</echo>
|
|
</target>
|
|
|
|
</project>
|