Author: pawelz Date: Wed Mar 18 14:17:34 2009 GMT Module: SOURCES Tag: HEAD ---- Log message: - based on original axis build.xml.
---- Files affected: SOURCES: axis-build.xml (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/axis-build.xml diff -u /dev/null SOURCES/axis-build.xml:1.1 --- /dev/null Wed Mar 18 15:17:34 2009 +++ SOURCES/axis-build.xml Wed Mar 18 15:17:28 2009 @@ -0,0 +1,1487 @@ +<?xml version="1.0"?> +<!DOCTYPE project [ + <!ENTITY paths SYSTEM "file:./xmls/path_refs.xml"> + <!ENTITY taskdefs SYSTEM "file:./xmls/taskdefs.xml"> + <!ENTITY targets SYSTEM "file:./xmls/targets.xml"> +]> + +<project name="axis" default="compile" basedir="."> +<!-- =================================================================== --> +<description> + Build file for Axis + +Notes: + This is a build file for use with the Jakarta Ant build tool. + For more information on using the build refer to building-axis.html under docs + + +Prerequisites: + jakarta-ant from http://jakarta.apache.org/ant/ + wsdl4j from http://www-124.ibm.com/developerworks/projects/wsdl4j/ + commons-logging from http://jakarta.apache.org/commons/logging.html + commons-discovery from http://jakarta.apache.org/commons/discovery.html + log4j from http://jakarta.apache.org/log4j + activation from http://java.sun.com/products/javabeans/glasgow/jaf.html + mailapi from http://java.sun.com/products/javamail/ + + +Optional components: + servlet from http://jakarta.apache.org/tomcat/ + regexp from http://jakarta.apache.org/regexp/ + junit from http://www.junit.org/ + jimi from http://java.sun.com/products/jimi/ + xml-security from http://xml.apache.org/security/ + jsse from http://java.sun.com/products/jsse/ + commons-httpclient from http://jakarta.apache.org/commons/httpclient/ + httpunit from http://sourceforge.net/projects/httpunit/ + jms from http://java.sun.com/products/jms/ + castor from http://castor.exolab.org/ + xmlbeans from http://xmlbeans.apache.org/ + +j2ee.jar contains the mailapi, activation and servlet libraries + +Build Instructions: + To build, run + + ant "target" + + on the directory where this file is located with the target you want. + +Most useful targets: + + - compile : creates the "axis.jar" package in "./build/lib" + - javadocs : creates the javadocs in "./build/javadocs" + - dist : creates the complete binary distribution + - srcdist : creates the complete src distribution + - functional-tests : attempts to build Ant task and then run + client-server functional test + - war : create the web application as a WAR file + - clean : clean up files and directories + + +Custom post-compilation work: + + If you desire to do some extra work as a part of the build after the + axis.jar is assembled, simply create an ant buildfile called + "post-compile.xml" in this directory. The build will automatically + notice this and run it at the appropriate time. This is handy for + updating the jar file in a running server, for instance. + +Authors: + Sam Ruby [email protected] + Matthew J. Duftler [email protected] + Glen Daniels [email protected] + +Copyright: + Copyright (c) 2001-2002 Apache Software Foundation. +</description> +<!-- ==================================================================== --> + +<!-- Include the Generic XML files --> + +<!-- This is an xml entity included in Apache Axis build files--> + +<property environment="env"/> +<!-- workaround for those IDEs that dont set ant.home as per the ant script --> +<property name="ant.home" value="env.ANT_HOME" /> + +<!-- set axis home up --> +<property name="axis.home" location="."/> + +<!-- debug flag for ant javac, values are "on" and "off" --> +<property name="debug" value="on" /> +<property name="nowarn" value="off" /> + +<property name="axis.version" value="1.4" /> +<!-- This should be the version # above with dots replaced by underscores --> +<property name="axis.dirname" value="1_4" /> + +<property name="name" value="axis" /> +<property name="Name" value="Axis" /> +<property name="year" value="2005" /> +<property name="jaxrpc" value="jaxrpc" /> +<property name="saaj" value="saaj" /> + +<!-- what gets pulled in to the binaries: everything --> +<property name="debuglevel" value="lines,vars,source" /> +<property name="deprecation" value="true" /> +<property name="source" value="1.3" /> +<property name="target" value="1.3" /> + +<!-- directories --> +<property name="src.dir" location="${axis.home}/src"/> +<property name="docs.dir" location="${axis.home}/docs"/> +<property name="samples.dir" location="${axis.home}/samples"/> +<property name="test.dir" location="${axis.home}/test"/> + +<!-- we resolve the lib dir twice, to ensure that any + paths from Gump are absolute --> +<property name="axis.lib.dir" location="${axis.home}/lib"/> +<property name="lib.dir" location="${axis.lib.dir}"/> + +<property name="packages" value="org.*,javax.*" /> +<property name="jaxrpc" value="jaxrpc" /> + + +<property name="build.file" value="build.xml" /> +<!-- directories for output --> + +<property name="build.dir" location="${axis.home}/build"/> +<property name="build.dest" location="${build.dir}/classes"/> +<property name="build.lib" location="${build.dir}/lib"/> +<property name="build.samples" location="${build.dir}/classes/samples"/> +<property name="build.javadocs" location="${build.dir}/javadocs"/> +<property name="build.webapp" location="${build.dir}/webapps/axis"/> +<property name="axis.war.filename" value="axis.war"/> +<property name="axis.war" location="${build.dir}/${axis.war.filename}"/> + +<property name="webapp" location="${axis.home}/webapps/axis" /> +<property name="dist.dir" location="${axis.home}/axis-${axis.dirname}" /> + +<property name="test.setup.dir" location="${test.dir}/setup" /> +<property name="test.build.dir" location="${build.dir}/test/" /> +<property name="test.reports.dir" location="${test.build.dir}/reports" /> +<!-- axis convention is to build into the same hierarchy as the main source --> +<property name="test.classes.dir" location="${build.dest}"/> +<property name="test.data.dir" location="${test.build.dir}/data"/> +<property name="test.output.printsummary" value="withOutAndErr"/> + +<property name="test.functional.remote" value="no" /> +<property name="test.functional.local" value="yes" /> +<property name="test.functional.both" value="no" /> +<property name="test.functional.usefile" value="true" /> +<property name="test.functional.reportdir" location="${axis.home}/test-reports" /> +<property name="test.functional.SimpleAxisPort" value="8080" /> +<property name="test.functional.ServicePort" value="8080"/> +<property name="test.functional.TCPListenerPort" value="8088" /> +<property name="test.functional.serverurl" + value="http://localhost:${test.functional.TCPListenerPort}" /> +<property name="test.functional.webapp.url" + value="http://localhost:${test.functional.TCPListenerPort}/axis" /> +<property name="test.functional.TCPListener.url" + value="tcp://localhost:${test.functional.TCPListenerPort}" /> + +<property name="test.functional.fail" value="yes" /> + +<property name="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/> +<property name="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/> + +<!-- Place Holder for proxy settings --> +<property name="http.proxyHost" value=""/> +<property name="http.proxyPort" value=""/> +<property name="http.nonProxyHosts" value="localhost"/> +<property name="http.proxyUser" value=""/> +<property name="http.proxyPassword" value=""/> +<property name="socks.proxyHost" value=""/> +<property name="socks.proxyPort" value="1080"/> + +<property name="javac.fork" value="no"/> +<property name="foreach.fork" value="no"/> +<property name="ant.inheritAll" value="false"/> +<property name="ant.inheritRefs" value="false"/> + +<!-- to test against .NET, we need a local IIS instance--> +<property name="iis.base" location="c:\inetpub\wwwroot" /> +<property name="iis.hostname" value="127.0.0.1"/> +<property name="iis.port" value="80"/> + +<property name="exclude.log4j.configuration" value="true"/> + + + <path id="classpath"> + <pathelement location="${activation.jar}"/> + <pathelement location="${commons-logging.jar}"/> + <pathelement location="${commons-discovery.jar}"/> + <pathelement location="${commons-httpclient.jar}"/> + <pathelement location="${commons-net.jar}"/> + <pathelement location="${log4j-core.jar}"/> + <pathelement location="${xercesImpl.jar}"/> + <pathelement location="${xmlParserAPIs.jar}"/> + <pathelement location="${xalan.jar}"/> + <pathelement location="${xml-apis.jar}"/> + <pathelement location="${xerces.jar}"/> + <pathelement location="${regexp.jar}"/> + <pathelement location="${xmlunit.jar}"/> + <pathelement location="${jsse.jar}"/> + <pathelement location="${jimi.jar}"/> + <pathelement location="${activation.jar}"/> + <pathelement location="${mailapi.jar}"/> + <pathelement location="${wsdl4j.jar}"/> + <pathelement location="${tools.jar}"/> + <pathelement location="${xmlbeans.jar}"/> + <pathelement location="${junit.jar}"/> + <pathelement location="${servlet.jar}"/> + <!-- + <pathelement path="${java.class.path}"/> + --> + <pathelement location="${build.dest}" /> + <pathelement location="${build.dir}/tools" /> + <pathelement location="${build.lib}/axis-ant.jar" /> + <pathelement location="${build.lib}/axis-schema.jar" /> +<!-- + <pathelement location="${build.dir}/work" /> +--> + </path> + + <path id="boot.classpath"> + <pathelement location="${xml-apis.jar}"/> + <pathelement path="${sun.boot.class.path}"/> + </path> + + +<!-- taskdefs that are know PRIOR to compilation --> + + + <!-- =================================================================== + This is basically the <ant /> task, except that it forks + and the verbosity setting is not propagated down + =================================================================== --> + <target name="my-forking-ant"> + <echo message="Forking a JVM for target ${target} in file ${file}"/> + <java classname="org.apache.tools.ant.Main" fork="yes" failonerror="true" dir="${dir}"> + <!-- See if this helps with Gump test failures --> + <sysproperty key="build.clonevm" value="true"/> + + <!-- Pass the parser settings --> + <jvmarg value="-Djavax.xml.parsers.DocumentBuilderFactory=${javax.xml.parsers.DocumentBuilderFactory}"/> + <jvmarg value="-Djavax.xml.parsers.SAXParserFactory=${javax.xml.parsers.SAXParserFactory}"/> + <jvmarg value="-Xbootclasspath:${sun.boot.class.path}"/> + <jvmarg value="-Djikes.class.path=${jikes.class.path}"/> + + <!-- Pass through the proxy parameters --> + <jvmarg value="-Dhttp.proxyHost=${http.proxyHost}"/> + <jvmarg value="-Dhttp.proxyPort=${http.proxyPort}"/> + <jvmarg value="-Dhttp.nonProxyHosts=${http.nonProxyHosts}"/> + <jvmarg value="-Dhttp.proxyUser=${http.proxyUser}"/> + <jvmarg value="-Dhttp.proxyPassword=${http.proxyPassword}"/> + <classpath refid="classpath"/> + <arg line="-buildfile ${file} ${target}"/> + </java> + </target> + + + <!-- =================================================================== + This is an accessory function to echo out fileNames + =================================================================== --> + <target name="echo-file"> + <basename property="fileName" file="${file}"/> + <dirname property="dirName" file="${file}"/> + <echo message="Dir: ${dirName} File: ${fileName}"/> + </target> + + <!-- =================================================================== + This is an accessory function to compile some given component + =================================================================== --> + <target name="component-compile"> + <echo message="${file}"/> + <basename property="fileName" file="${file}"/> + <dirname property="dirName" file="${file}"/> + <ant inheritAll="false" dir="${dirName}" antfile="${fileName}" target="compile"/> + </target> + + <!-- =================================================================== + This is an accessory function to exec JUST the testcase of a + component. + =================================================================== --> + <target name="batch-component-test"> + <antcall target="echo-file"/> + <basename property="fileName" file="${file}"/> + <dirname property="dirName" file="${file}"/> + <ant inheritAll="false" dir="${dirName}" antfile="${fileName}" target="component-junit-functional"/> + </target> + + <!-- =================================================================== + This is an accessory function to execs the full component test + =================================================================== --> + <target name="batch-component-run"> + <antcall target="echo-file"/> + <basename property="fileName" file="${file}"/> + <dirname property="dirName" file="${file}"/> + <ant inheritAll="false" dir="${dirName}" antfile="${fileName}" target="run"/> + </target> + + <!-- =================================================================== --> + <!-- Determine what dependencies are present --> + <!-- =================================================================== --> + + <target name="setenv" unless="setenv.already.executed" depends="axis-clover-setup, axis-xmlbeans-setup"> + <property name="setenv.already.executed" value="true"/> + + <condition property="ant.good"> + <and> + <contains string="${ant.version}" substring="Apache Ant version"/> + </and> + </condition> + + <mkdir dir="${build.dir}"/> + <mkdir dir="${build.dest}"/> + <mkdir dir="${build.lib}"/> + <mkdir dir="${build.dir}/work"/> + + <available property="servlet.present" + classname="javax.servlet.Servlet" + classpathref="classpath"/> + + <available property="regexp.present" + classname="org.apache.oro.text.regex.Pattern" + classpathref="classpath"/> + + <available property="junit.present" + classname="junit.framework.TestCase" + classpathref="classpath"/> + + <available property="wsdl4j.present" + classname="javax.wsdl.Definition" + classpathref="classpath"/> + + <available property="commons-logging.present" + classname="org.apache.commons.logging.Log" + classpathref="classpath"/> + + <available property="commons-discovery.present" + classname="org.apache.commons.discovery.tools.DiscoverSingleton" + classpathref="classpath"/> + + <available property="commons-httpclient.present" + classname="org.apache.commons.httpclient.HttpConnection" + classpathref="classpath"/> + + <available property="commons-net.present" + classname="org.apache.commons.net.smtp.SMTPClient" + classpathref="classpath"/> + + <available property="log4j.present" + classname="org.apache.log4j.Category" + classpathref="classpath"/> + + <available property="activation.present" + classname="javax.activation.DataHandler" + classpathref="classpath"/> + + <available property="security.present" + classname="org.apache.xml.security.Init" + classpathref="classpath"/> + + <available property="mailapi.present" + classname="javax.mail.internet.MimeMessage" + classpathref="classpath"/> + + <available property="httpunit.present" + classname="com.meterware.httpunit.GetMethodWebRequest" + classpathref="classpath"/> + + <available property="jsse.present" + classname="javax.net.ssl.SSLSocketFactory" + classpathref="classpath"/> + + <condition property="jetty.present" > + <and> + <available classname="javax.servlet.Servlet" classpathref="classpath" /> + <available classname="org.mortbay.http.HttpServer" classpathref="classpath" /> + </and> + </condition> + + <condition property="jdk14.jsse.present" > + <and> + <available classname="javax.net.ssl.X509TrustManager" classpathref="classpath" /> + <available classname="javax.net.SocketFactory" classpathref="classpath" /> + <available classname="javax.net.ssl.SSLContext" classpathref="classpath" /> + <available classname="javax.net.ssl.SSLSocketFactory" classpathref="classpath" /> + </and> + </condition> + + <condition property="sun.jsse.present" > + <and> + <available classname="com.sun.net.ssl.X509TrustManager" classpathref="classpath" /> + <available classname="javax.net.SocketFactory" classpathref="classpath" /> + <available classname="com.sun.net.ssl.SSLContext" classpathref="classpath" /> + <available classname="javax.net.ssl.SSLSocketFactory" classpathref="classpath" /> + </and> + </condition> + + <condition property="ibm.jsse.present" > + <and> + <available classname="com.ibm.net.ssl.X509TrustManager" classpathref="classpath" /> + <available classname="javax.net.SocketFactory" classpathref="classpath" /> + <available classname="com.ibm.net.ssl.SSLContext" classpathref="classpath" /> + <available classname="javax.net.ssl.SSLSocketFactory" classpathref="classpath" /> + <available classname="com.ibm.crypto.provider.IBMJCE" classpathref="classpath" /> + </and> + </condition> + + <condition property="attachments.present" > + <and> + <available classname="javax.activation.DataHandler" classpathref="classpath" /> + <available classname="javax.mail.internet.MimeMessage" classpathref="classpath" /> + </and> + </condition> + + <condition property="sun.codec.present" > + <available classname="sun.awt.image.codec.JPEGImageEncoderImpl" classpathref="classpath" /> + </condition> + + <condition property="jimi.present" > + <available classname="com.sun.jimi.core.Jimi" classpathref="classpath" /> + </condition> + + <condition property="merlinio.present" > + <available classname="javax.imageio.ImageIO" classpathref="classpath" /> + </condition> + + <condition property="axis-ant.present" > + <available classname="org.apache.axis.tools.ant.foreach.ForeachTask"> + <classpath> + <pathelement location="${build.lib}/axis-ant.jar"/> + </classpath> + </available> + </condition> + + <condition property="jimiAndAttachments.present"> + <and> + <available classname="javax.activation.DataHandler" classpathref="classpath" /> + <available classname="javax.mail.internet.MimeMessage" classpathref="classpath" /> + <available classname="com.sun.jimi.core.Jimi" classpathref="classpath" /> + </and> + </condition> + + <condition property="jms.present" > + <available classname="javax.jms.Message" classpathref="classpath" /> + </condition> + + <condition property="jmsAndSonicMQ.present" > + <and> + <available classname="javax.jms.Message" classpathref="classpath" /> + <available classname="progress.message.jclient.Message" classpathref="classpath" /> + </and> + </condition> + + <available property="post-compile.present" file="post-compile.xml" /> + + <property environment="env"/> + <condition property="debug" value="on"> + <and> + <equals arg1="on" arg2="${env.debug}"/> + </and> + </condition> + + <condition property="castor.present" > + <available classname="org.exolab.castor.xml.MarshalException" classpathref="classpath" /> + </condition> + + <condition property="xmlbeans.present" > + <and> + <available classname="org.apache.xmlbeans.XmlObject" classpathref="classpath" /> + <available classname="javax.xml.stream.XMLStreamReader" classpathref="classpath" /> + </and> + </condition> + + <condition property="bsf.present" > + <available classname="org.apache.bsf.BSFManager" classpathref="classpath" /> + </condition> + + <condition property="combridge.present" > + <available classname="org.apache.axis.components.bridge.COMBridge" classpathref="classpath" /> + </condition> + + <!-- look for WSDL support on the platform --> + <condition property="wsdl.found"> + <or> + <available file="wsdl" filepath="${env.PATH}"/> + <available file="wsdl.exe" filepath="${env.PATH}"/> + <available file="wsdl.exe" filepath="${env.Path}"/> + </or> + </condition> + <echo level="verbose">wsdl.found=${wsdl.found}</echo> + <condition property="csc.found"> + <or> + <available file="csc" filepath="${env.PATH}"/> + <available file="csc.exe" filepath="${env.PATH}"/> + <available file="csc.exe" filepath="${env.Path}"/> + </or> + </condition> + <echo level="verbose">csc.found=${csc.found}</echo> + <condition property="dotnetapps.found"> + <and> + <isset property="csc.found"/> + <isset property="wsdl.found"/> + </and> + </condition> + <echo level="verbose">dotnetapps.found=${dotnetapps.found}</echo> + <!-- look for IIS --> + <condition property="iis.found"> + <and> + <os family="windows" /> + <available file="${iis.base}" type="dir" /> + </and> + </condition> + <echo level="verbose">iis.found=${iis.found}</echo> + <echo level="verbose">iis.base=${iis.base}</echo> + + <!-- look for xalan --> + <available property="xalan2.present" + classname="org.apache.xalan.transformer.TransformerImpl" /> +<!-- apply the current proxy settings to the current JVM. + This gives in-VM code network access through any firewall + --> + <echo level="verbose" message="-- Applying Network Settings ---"/> + <!-- we cannot set proxyuser and proxypassword as these are only ant1.6 --> +<!-- <setproxy + proxyhost="${http.proxyHost}" + proxyport="${http.proxyPort}" + socksProxyHost="${socks.proxyHost}" + socksProxyPort="${socks.proxyPort}" + /> + --> + <!-- these are conditions used for patternset + configuration of which sets of tests to run. + Ignore them until the functional tests use patternsets --> + <!-- set the flag for testing jsp pages --> + <condition property="test.functional.httpunit.jsp"> + <isset property="testserver.is.appserver"/> + </condition> + <!-- set the flag for testing the admin servlet --> + <condition property="test.functional.httpunit.adminservlet"> + <isset property="testserver.is.appserver"/> + </condition> + <!-- set the online flag to true if offline is not set --> + <condition property="test.functional.online"> + <not><isset property="offline"/></not> + </condition> + + </target> + + <!-- print out the current enviroment. + Also, probe for javadocs being out of date and set javadoc.notrequired + to true if they are not needed --> + <target name="printEnv" depends="setenv,check-javadoc-needed" > + + <echo message="-----------------------------------------------------------------"/> + <echo message=" Build environment for ${Name} ${axis.version} [${year}] "/> + <echo message="-----------------------------------------------------------------"/> + <echo message="Building with ${ant.version}"/> + <echo message="using build file ${ant.file}"/> + <echo message="Java ${java.version} located at ${java.home} "/> + <echo message="-----------------------------------------------------------------"/> + + <echo message="--- Flags (Note: If the {property name} is displayed, "/> + <echo message=" then the component is not present)" /> + <echo message=""/> + + <echo message="basedir = ${basedir}"/> + <echo message="axis.home = ${axis.home}"/> + <echo message="build.dir = ${build.dir}"/> + <echo message="build.dest = ${build.dest}"/> + <echo message="lib.dir = ${lib.dir}"/> + <echo message=""/> + <echo message="=== Required Libraries (for building code) ===" /> + <echo message="activation.present=${activation.present}" /> + <echo message="commons-discovery.present=${commons-discovery.present}" /> + <echo message="commons-logging.present=${commons-logging.present}" /> + <echo message="wsdl4j.present=${wsdl4j.present}" /> + <echo message=""/> + <echo message="--- Optional Libraries (for building code) ---" /> + <echo message="attachments.present=${attachments.present}" /> + <echo message="bsf.present=${bsf.present}" /> + <echo message="castor.present=${castor.present}" /> + <echo message="commons-httpclient.present=${commons-httpclient.present}" /> + <echo message="commons-net.present=${commons-net.present}" /> + <echo message="ibm.jsse.present=${ibm.jsse.present}" /> + <echo message="jimi.present=${jimi.present}" /> + <echo message="jms.present=${jms.present}" /> + <echo message="jetty.present=${jetty.present}" /> <<Diff was trimmed, longer than 597 lines>> _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
