You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by ja...@apache.org on 2004/12/19 19:26:18 UTC

cvs commit: ws-wsrp4j/build build.properties.example build.xml

jacob       2004/12/19 10:26:18

  Modified:    build    build.properties.example build.xml
  Log:
  enable deployment on tomcat 5
  for example to use Pluto's binary distibution
  
  Revision  Changes    Path
  1.3       +2 -0      ws-wsrp4j/build/build.properties.example
  
  Index: build.properties.example
  ===================================================================
  RCS file: /home/cvs/ws-wsrp4j/build/build.properties.example,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.properties.example	11 Jun 2004 11:47:50 -0000	1.2
  +++ build.properties.example	19 Dec 2004 18:26:18 -0000	1.3
  @@ -16,4 +16,6 @@
   TOMCAT_HOME=D:/Apache/Tomcat
   // the port tomcat is listening on
   TOMCAT_PORT=8080
  +// tomcat major version
  +tomcat.major.version=5
   		
  
  
  
  1.14      +21 -0     ws-wsrp4j/build/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/ws-wsrp4j/build/build.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- build.xml	16 Jun 2004 13:01:19 -0000	1.13
  +++ build.xml	19 Dec 2004 18:26:18 -0000	1.14
  @@ -334,9 +334,30 @@
                   <include name="${final.shared.name}.jar"/>
               </fileset>
           </copy>
  +   		<antcall target="copy.wsrp.xml"></antcall>
  +    </target>
  +    
  +    <target name="copy.wsrp.xml" depends="tomcat.major.check">
  +    	<antcall target="copy.wsrp.xml.4"></antcall>
  +    	<antcall target="copy.wsrp.xml.5"></antcall>
  +    </target>
  +    
  +    <!-- for now we assume localhost as the configured host -->
  +    <target name="copy.wsrp.xml.5" if="tomcat.major.5">
  +    	<echo message="Tomcat version 5 set"></echo>
  +        <copy file="${wsrp.xml}" todir="${TOMCAT_HOME}/conf/Catalina/localhost" overwrite="true"/>
  +    </target>
  +
  +    <target name="copy.wsrp.xml.4" if="tomcat.major.4">
  +    	<echo message="Tomcat version 4 set"></echo>
           <copy file="${wsrp.xml}" todir="${TOMCAT_HOME}/webapps" overwrite="true"/>
       </target>
       
  +    <target name="tomcat.major.check">
  +		<condition property="tomcat.major.4"><equals arg1="${tomcat.major.version}" arg2="4"/></condition>
  +		<condition property="tomcat.major.5"><equals arg1="${tomcat.major.version}" arg2="5"/></condition>
  +    </target>
  +   
       <!-- ================================================================== -->
       <!-- copy pluto provider files to tomcat                                -->
       <!-- ================================================================== -->