axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis-wsif/java build.xml
Date Fri, 11 Oct 2002 20:43:51 GMT
dims        2002/10/11 13:43:51

  Modified:    java     build.xml
  Log:
  Build gracefully even when SoapRMI, ApacheSOAP and EJB jars are absent.
  
  Revision  Changes    Path
  1.7       +73 -3     xml-axis-wsif/java/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/build.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- build.xml	29 Jul 2002 20:00:06 -0000	1.6
  +++ build.xml	11 Oct 2002 20:43:51 -0000	1.7
  @@ -101,15 +101,39 @@
         <srcfiles dir="${build.dir}" includes="**/*.html"/>
       </uptodate>
       <available property="soaprmi.present" classname="soaprmi.Remote" />
  +    <available property="jms.present" classname="javax.jms.Message" />
  +    <available property="ejb.present" classname="javax.ejb.EJBHome" />
  +    <available property="apachesoap.present" classname="org.apache.soap.Envelope" />
  +    <available property="apacheaxis.present" classname="org.apache.axis.message.SOAPEnvelope"
/>
   
     </target>
   
     <target name="checkSoapRMI" unless="soaprmi.present">
       <echo message="Warning: SoapRMI dependencies were not resolved."/>
     </target>
  +
  +  <target name="checkJMS" unless="jms.present">
  +    <echo message="Warning: JMS dependencies were not resolved."/>
  +  </target>
  +
  +  <target name="checkEJB" unless="ejb.present">
  +    <echo message="Warning: EJB dependencies were not resolved."/>
  +  </target>
  +
  +  <target name="checkApacheSOAP" unless="apachesoap.present">
  +    <echo message="Warning: ApacheSOAP dependencies were not resolved."/>
  +  </target>
  +
  +  <target name="checkApacheAxis" unless="apacheaxis.present">
  +    <echo message="Warning: ApacheAXIS dependencies were not resolved."/>
  +  </target>
   
     <target name="checkDependencies" depends="prepare" unless="javac.notRequired">
       <antcall target="checkSoapRMI"/>
  +    <antcall target="checkJMS"/>
  +    <antcall target="checkEJB"/>
  +    <antcall target="checkApacheSOAP"/>
  +    <antcall target="checkApacheAxis"/>
     </target>
   
     <!-- =================================================================== -->
  @@ -120,12 +144,32 @@
       <include name="**/wsif/**/*.java"/>
       <include name="**/wsdl/**/*.java"/>
       <exclude name="**/compiler/**/*.java"/>
  -    <exclude name="**/wsif/**/*SoapRMI.java"/>
  +    <exclude name="**/wsif/**/soaprmi/*.java"/>
  +    <exclude name="**/wsif/**/jms/*.java"/>
  +    <exclude name="**/wsif/**/ejb/*.java"/>
  +    <exclude name="**/wsif/**/apachesoap/*.java"/>
  +    <exclude name="**/wsif/**/apacheaxis/*.java"/>
     </patternset>
   
     <patternset id="soaprmi.source.files">
  -    <include name="**/wsif/**/*SoapRMI.java"/>
  +    <include name="**/wsif/**/soaprmi/*.java"/>
     </patternset>
  +
  +  <patternset id="jms.source.files">
  +    <include name="**/wsif/**/jms/*.java"/>
  +  </patternset>
  +
  +  <patternset id="ejb.source.files">
  +    <include name="**/wsif/**/ejb/*.java"/>
  +  </patternset>
  +
  +  <patternset id="apachesoap.source.files">
  +    <include name="**/wsif/**/apachesoap/*.java"/>
  +  </patternset>
  +
  +  <patternset id="apacheaxis.source.files">
  +    <include name="**/wsif/**/apacheaxis/*.java"/>
  +  </patternset>
   
     <patternset id="compiler.source.files">
       <include name="**/compiler/**/*.java"/>
  @@ -144,7 +188,7 @@
     <!-- =================================================================== -->
     <target name="all" depends="clean,compile,compiler,link"/>
   
  -  <target name="compile" depends="dynamic,soaprmi,samples"/>
  +  <target name="compile" depends="dynamic, soaprmi, jms, ejb, apacheaxis, apachesoap,
samples"/>
   
   
     <!-- =================================================================== -->
  @@ -162,6 +206,31 @@
         <patternset refid="soaprmi.source.files"/>
       </javac>
     </target>
  +
  +  <target name="jms" depends="dynamic" if="jms.present">
  +    <javac srcdir="${src.dir}" destdir="${dynamic.dest}" debug="${debug}">
  +      <patternset refid="jms.source.files"/>
  +      <exclude name="**/JMS2HTTPBridge.java" unless="apachesoap.present"/>
  +    </javac>
  +  </target>
  +
  +  <target name="ejb" depends="dynamic" if="ejb.present">
  +    <javac srcdir="${src.dir}" destdir="${dynamic.dest}" debug="${debug}">
  +      <patternset refid="ejb.source.files"/>
  +    </javac>
  +  </target>
  +
  +  <target name="apachesoap" depends="dynamic" if="apachesoap.present">
  +    <javac srcdir="${src.dir}" destdir="${dynamic.dest}" debug="${debug}">
  +      <patternset refid="apachesoap.source.files"/>
  +    </javac>
  +  </target>
  +
  +  <target name="apacheaxis" depends="dynamic" if="apacheaxis.present">
  +    <javac srcdir="${src.dir}" destdir="${dynamic.dest}" debug="${debug}">
  +      <patternset refid="apacheaxis.source.files"/>
  +    </javac>
  +  </target>
   
     <!-- =================================================================== -->
     <!-- Create compiler classes                                             -->
  @@ -205,6 +274,7 @@
       <javac srcdir="samples" destdir="${build.samples}" 
              classpath="${dynamic.dest}" debug="${debug}">
         <patternset refid="samples.source.files"/>
  +      <exclude name="**/zipcode/**.java" unless="apachesoap.present"/>
       </javac>
   
       <copy todir="${build.samples}">
  
  
  

Mime
View raw message