68843eca80
include it in the build output. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1957 6335cc39-0255-0410-8fd6-9bcaacd3b74c
150 lines
5.9 KiB
XML
150 lines
5.9 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"
|
|
classname="javax.servlet.Servlet" classpathref="classpath"/>
|
|
<echo level="info">Servlet 2.3: ${servlet2.3.present}</echo>
|
|
<available property="mail.present"
|
|
classname="javax.mail.Transport" classpathref="classpath"/>
|
|
<echo level="info">Java Mail: ${mail.present}</echo>
|
|
|
|
<available property="sax.present"
|
|
classname="org.xml.sax.SAXException" classpathref="classpath"/>
|
|
<echo level="info">SAX: ${sax.present}</echo>
|
|
|
|
<available property="jaxp.present"
|
|
classname="javax.xml.parsers.SAXParser" classpathref="classpath"/>
|
|
<echo level="info">JAXP: ${jaxp.present}</echo>
|
|
|
|
<available property="javax.persistence.present"
|
|
classname="javax.persistence.Entity" classpathref="classpath"/>
|
|
<echo level="info">Java Persistence: ${javax.persistence.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"
|
|
classname="org.apache.commons.collections.CollectionUtils"
|
|
classpathref="classpath"/>
|
|
<echo level="info">Commons Collections: ${jakarta.commons-colls.present}</echo>
|
|
|
|
<available property="jakarta.commons-logging.present"
|
|
classname="org.apache.commons.logging.Log"
|
|
classpathref="classpath"/>
|
|
<echo level="info">Commons Logging: ${jakarta.commons-logging.present}</echo>
|
|
|
|
<available property="jakarta.commons-digester.present"
|
|
classname="org.apache.commons.digester.Digester"
|
|
classpathref="classpath"/>
|
|
<echo level="info">Commons Digester: ${jakarta.commons-digester.present}</echo>
|
|
|
|
<available property="jakarta.commons-io.present"
|
|
classname="org.apache.commons.io.IOUtils"
|
|
classpathref="classpath"/>
|
|
<echo level="info">Commons Io: ${jakarta.commons-io.present}</echo>
|
|
|
|
<available property="jakarta.velocity.present"
|
|
classname="org.apache.velocity.Template" classpathref="classpath"/>
|
|
<echo level="info">Velocity: ${jakarta.velocity.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="javax.persistence.present"/>
|
|
</and>
|
|
</condition>
|
|
<echo>com.samskivert.jdbc.depot: ${build.depot}</echo>
|
|
|
|
<condition property="build.net">
|
|
<and>
|
|
<isset property="build.io"/>
|
|
<isset property="mail.present"/>
|
|
</and>
|
|
</condition>
|
|
<echo>com.samskivert.net: ${build.net}</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>
|