You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mirae-dev@ws.apache.org by ia...@apache.org on 2006/01/25 01:43:06 UTC

svn commit: r372062 - in /webservices/mirae/trunk: README build.xml system.properties.sample

Author: ias
Date: Tue Jan 24 16:43:00 2006
New Revision: 372062

URL: http://svn.apache.org/viewcvs?rev=372062&view=rev
Log:
Make wide changes for compiling and building components: JAXP, StAX, and WS.

Modified:
    webservices/mirae/trunk/README
    webservices/mirae/trunk/build.xml
    webservices/mirae/trunk/system.properties.sample

Modified: webservices/mirae/trunk/README
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/README?rev=372062&r1=372061&r2=372062&view=diff
==============================================================================
--- webservices/mirae/trunk/README (original)
+++ webservices/mirae/trunk/README Tue Jan 24 16:43:00 2006
@@ -1,6 +1,6 @@
 # -*- Mirae -*-
 #
-#   Copyright 2003-2004 The Apache Software Foundation.
+#   Copyright 2003-2006 The Apache Software Foundation.
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.
@@ -15,39 +15,43 @@
 #   limitations under the License.
 #
 #
-# @author Damitha Kumarage (damitha@hsenid.lk) , Jeyakumaran Chandrasegaram (jkumaran@hsenid.lk)
+# @author Ias (iasandcb@gmail.com), Damitha Kumarage (damitha@hsenid.lk), and Jeyakumaran Chandrasegaram (jkumaran@hsenid.lk)
 #
 #
 
-1)How to install and do testing
+1) How to install and do testing
 ___________________________________
 
-a)You need to download and configure following.
+a) You need to download and configure following.
 
 (i) Download WTK2.2 (Go to url http://java.sun.com/products/sjwtoolkit/index.html) and install it.
 
 (ii) Download Tomcat (if you have not) from http://jakarta.apache.org/tomcat/ and install it.
 
-(iii) Install Ant (download from http://ant.apache.org/) and install it.
-     Then copy the junit.jar(from mirae-home/lib) and antenna-bin-0.9.13.jar (from http://antenna.sourceforge.net/) to ant-home/lib
+(iii) Install Ant (download from http://ant.apache.org/) and Antenna (from http://antenna.sourceforge.net/).
+     If you want to run test, please copy the junit.jar to ant.home/lib.
 
-(iv) For Mirae WS module, download Mail4ME from http://mail4me.objectweb.org/software/downloads/index.html and copy it to add the library to mirae-home/lib.
+(iv) For Mirae WS module, download Mail4ME from http://mail4me.objectweb.org/software/downloads/index.html and copy it to add the library to mirae.home/lib.
 
 b) To run the auto build
 
-Change the system.properties file according to your configurations.
+Make your system.properties file from system.properties.sample according to your configurations.
 
 version=mirae-1.0
-j2me-home=/home/jeyakumaran/programs/j2me/WTK2.2
-tomcat-home=/home/jeyakumaran/programs/tomcat/apache-tomcat-5.5.12
-mirae.home=/home/jeyakumaran/work/projects/mirae
-ant_home=/home/jeyakumaran/programs/java/ant/apache-ant-1.6.5
+java.me.home=d:/java/sdk/WTK23
+tomcat.home=d:/java/server/apache-tomcat-5.5.12
+mirae.home=d:/java/workspace/mirae
+ant.home=d:/java/tool/apache-ant-1.6.5
+antenna.jar.path=d:/java/tool/antenna-bin-0.9.13.jar
 build.debug=true
-wtk.home=${j2me-home}
-tomcat-start=startup.sh
-tomcat-stop=shutdown.sh
+wtk.home=${java.me.home}
+wtk.cldc.version=1.1
+wtk.midp.version=2.0
+wtk.midpapi=${wtk.home}/lib/midpapi20.jar:${wtk.home}/lib/cldcapi11.jar
+tomcat.start=startup.bat
+tomcat.stop=shutdown.bat
 
-c)run ant test
+c) Run ant test
 
 (We are in the progress of writing a complete installation guide as well)
 

Modified: webservices/mirae/trunk/build.xml
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/build.xml?rev=372062&r1=372061&r2=372062&view=diff
==============================================================================
--- webservices/mirae/trunk/build.xml (original)
+++ webservices/mirae/trunk/build.xml Tue Jan 24 16:43:00 2006
@@ -1,7 +1,7 @@
 <!--
 # -*- Mirae -*-
 #
-#   Copyright 2003-2004 The Apache Software Foundation.
+#   Copyright 2003-2006 The Apache Software Foundation.
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.
@@ -16,20 +16,23 @@
 #   limitations under the License.
 #
 #
-# @author Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
+# @author Ias (iasandcb@gmail.com), Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
 #
 #
 #-->
 
-<!--This will build, deploy and run the tests for JSR172Impl project-->
+<!--This will build, deploy and run the tests for Mirae project-->
 
-<project name="jsr172impl" default="test">
+<project name="Mirae" default="test" basedir=".">
 
     <property file="system.properties"/>
-    <property name="build.dir" location="./build"/>
+    <property name="build.dir" location="${basedir}/build"/>
+    <property name="build.lib.dir" location="${build.dir}/lib"/>
+    <property name="build.runtime.dir" location="${build.dir}/runtime"/>
     <property name="build.classes.dir" location="${build.dir}/classes"/>
     <property name="build.classes.mirae.dir" location="${build.classes.dir}/mirae"/>
     <property name="build.classes.tools.dir" location="${build.classes.dir}/tools"/>
+    <property name="build.classes.tools.wsdl2javame.dir" location="${build.classes.tools.dir}/wsdl2javame"/>
     <property name="build.classes.tools.wsdl2ws_j2me.dir" location="${build.classes.tools.dir}/wsdl2ws_j2me"/>
     <property name="test.dir" location="${build.dir}/tests"/>
     <property name="test.unit.dir" location="${test.dir}/unit"/>
@@ -41,17 +44,21 @@
     <property name="mirae.home.bin" location="${mirae.home}/bin"/>
     <property name="mirae.home.build" location="${mirae.home}/build"/>
     <property name="mirae.home.tests.functional" location="${mirae.home}/tests/functional"/>
-    <property name="src.dir" value="./src/mirae"/>
-    <property name="tools.dir" value="./src/tools"/>
-    <property name="bin.dir" value="./bin"/>
-    <property name="lib.dir" value="./lib"/>
-    <property name="conf.dir" value="./conf"/>
-    <property name="log.dir" value="./logs"/>
-    <property name="testsrc.dir" value="./tests"/>
-    <property name="doc.dir" value="./docs"/>
+    <property name="src.dir" value="${basedir}/src/mirae"/>
+    <property name="tools.dir" value="${basedir}/src/tools"/>
+    <property name="bin.dir" value="${basedir}/bin"/>
+    <property name="lib.dir" value="${basedir}/lib"/>
+    <property name="conf.dir" value="${basedir}/conf"/>
+    <property name="log.dir" value="${basedir}/logs"/>
+    <property name="testsrc.dir" value="${basedir}/tests"/>
+    <property name="doc.dir" value="${basedir}/docs"/>
     <property name="version" value="1.0"/>
 
-    <fileset dir="${j2me-home}/lib" id="j2mejars">
+    <taskdef resource="antenna.properties">
+       <classpath location="${antenna.jar.path}"/>
+    </taskdef>
+
+	<fileset dir="${java.me.home}/lib" id="javamejars">
         <include name="**/*.jar"/>
     </fileset>
 
@@ -65,13 +72,14 @@
     </fileset>
 
     <path id="compile.classpath">
-        <fileset refid="j2mejars"/>
+        <fileset refid="javamejars"/>
     </path>
 
     <path id="wsdl2ws.classpath">
         <fileset refid="axisjars"/>
-        <fileset refid="j2mejars"/>
-
+    	<!--
+        <fileset refid="javamejars"/>
+		-->
     </path>
 
     <path id="test.classpath">
@@ -161,54 +169,106 @@
             author="no"
             version="true"
             use="true"
-            windowtitle="JSR172 Implementation API Documentation Version: ${version}">
+            windowtitle="Mirae API Documentation Version: ${version}">
             <classpath refid="compile.classpath"/>
         </javadoc>
     </target>
 
     <!--Compiles wsdl2ws tool source-->
-    <target name="tool-compile">
+    <target name="compile-tool" depends="prepare">
+    	<!--
         <javac srcdir="${tools.dir}"
             destdir="${build.classes.tools.wsdl2ws_j2me.dir}"
             debug="${build.debug}">
             <classpath refid="wsdl2ws.classpath"/>
         </javac>
+        -->
+        <javac srcdir="${tools.dir}/wsdl2javame"
+            destdir="${build.classes.tools.wsdl2javame.dir}"
+            debug="${build.debug}">
+            <classpath refid="wsdl2ws.classpath"/>
+        </javac>
     </target>
 
-    <target name="makejar-wsdl2ws_j2me" depends="tool-compile">
+	<!--
+	<target name="makejar-wsdl2ws_j2me" depends="tool-compile">
         <jar destfile="${lib.dir}/wsdl2ws_j2me.jar"
             basedir="${build.classes.tools.wsdl2ws_j2me.dir}"/>
     </target>
+	-->
+	
+	<target name="jar-wsdl2javame" depends="compile-tool">
+        <jar destfile="${build.lib.dir}/wsdl2javame.jar"
+            basedir="${build.classes.tools.wsdl2javame.dir}"/>
+    </target>
 
-    <!--Creates neccessary folder structure-->
+            	<!--Creates neccessary folder structure-->
     <target name="prepare">
         <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.lib.dir}"/>
+        <mkdir dir="${build.runtime.dir}"/>
         <mkdir dir="${build.classes.dir}"/>
         <mkdir dir="${build.classes.mirae.dir}"/>
         <mkdir dir="${build.classes.tools.dir}"/>
         <mkdir dir="${build.classes.tools.wsdl2ws_j2me.dir}"/>
+        <mkdir dir="${build.classes.tools.wsdl2javame.dir}"/>
         <mkdir dir="${log.dir}"/>
     </target>
 
     <!--Compiles sources-->
-    <target name="compile" depends="prepare">
+    <target name="compile-mirae" depends="prepare">
         <javac srcdir="${src.dir}" destdir="${build.classes.mirae.dir}">
             <classpath refid="compile.classpath"/>
         </javac>
     </target>
 
-    <target name="makejar-mirae" depends="compile">
+    <target name="compile-mirae-jaxp" depends="prepare">
+        <wtkbuild destdir="${build.classes.mirae.dir}" srcdir="${src.dir}/jaxp">
+        </wtkbuild>
+    </target>
+
+    <target name="compile-mirae-stax" depends="prepare">
+        <wtkbuild destdir="${build.classes.mirae.dir}" srcdir="${src.dir}/stax">
+        </wtkbuild>
+    </target>
+
+    <target name="compile-mirae-ws" depends="prepare, compile-mirae-stax">
+        <wtkbuild destdir="${build.classes.mirae.dir}" srcdir="${src.dir}/stax">
+        </wtkbuild>
+    </target>
+
+	<target name="jar-mirae-jaxp" depends="compile-mirae-jaxp">
+        <jar destfile="${build.runtime.dir}/mirae-jaxp.jar"
+            basedir="${build.classes.mirae.dir}" includes="javax/xml/parsers/**,org/xml/**, org/apache/mirae/j2me/xml/**"/>
+    </target>
+
+	<target name="jar-mirae-stax" depends="compile-mirae-stax">
+        <jar destfile="${build.runtime.dir}/mirae-stax.jar"
+            basedir="${build.classes.mirae.dir}" includes="javax/xml/stream/**,javax/xml/namespace/**,org/apache/mirae/stax/**,org/apache/mirae/util/**"/>
+    </target>
+
+	<target name="jar-mirae-ws" depends="compile-mirae-ws">
+        <jar destfile="${build.runtime.dir}/mirae-ws.jar"
+            basedir="${build.classes.mirae.dir}" includes="java/rmi/**,javax/microedition/xml/rpc/**,javax/xml/rpc/**,javax/xml/namespace/QName.class,org/apache/mirae/io/**,org/apache/mirae/ws/**"/>
+    </target>
+
+	<target name="jar-mirae" depends="compile-mirae">
         <jar destfile="${lib.dir}/mirae.jar"
             basedir="${build.classes.mirae.dir}"/>
     </target>
 
     <!--Runs the test suite of the application-->
-    <target name="mainbuild">
+    <target name="build">
+        <sequential>
+            <antcall target="jar-mirae"/>
+        </sequential>
+    	<!--
         <sequential>
-            <antcall target="makejar-mirae"/>
+            <antcall target="jar-wsdl2ws_j2me"/>
         </sequential>
+        -->
         <sequential>
-            <antcall target="makejar-wsdl2ws_j2me"/>
+            <antcall target="jar-wsdl2javame"/>
         </sequential>
         <sequential>
             <!--<antcall target="docs"/>-->
@@ -216,7 +276,7 @@
     </target>
 
     <!--build and run the tests -->
-    <target name="test" depends="mainbuild">
+    <target name="test" depends="build">
         <parallel>
             <antcall target="startServer"/>
             <sequential>

Modified: webservices/mirae/trunk/system.properties.sample
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/system.properties.sample?rev=372062&r1=372061&r2=372062&view=diff
==============================================================================
--- webservices/mirae/trunk/system.properties.sample (original)
+++ webservices/mirae/trunk/system.properties.sample Tue Jan 24 16:43:00 2006
@@ -15,15 +15,19 @@
 #   limitations under the License.
 #
 #
-# @author Damitha Kumarage (damitha@hsenid.lk) , Jeyakumaran Chandrasegaram (jkumaran@hsenid.lk)
+# @author Ias (iasandcb@gmail.com), Damitha Kumarage (damitha@hsenid.lk), and Jeyakumaran Chandrasegaram (jkumaran@hsenid.lk)
 #
 #
 version=mirae-1.0
-j2me-home=/home/kurinchikumaran/programs/WTK2.2
-tomcat-home=/home/kurinchikumaran/programs/tomcat/apache-tomcat-5.5.12
-mirae.home=/home/kurinchikumaran/work/workspace/mirae/mirae/trunk
-ant_home=/home/kurinchikumaran/programs/ant
+java.me.home=d:/java/sdk/WTK23
+tomcat.home=d:/java/server/apache-tomcat-5.5.12
+mirae.home=d:/java/workspace/mirae
+ant.home=d:/java/tool/apache-ant-1.6.5
+antenna.jar.path=d:/java/tool/antenna-bin-0.9.13.jar
 build.debug=true
-wtk.home=${j2me-home}
-tomcat-start=startup.sh
-tomcat-stop=shutdown.sh
+wtk.home=${java.me.home}
+wtk.cldc.version=1.1
+wtk.midp.version=2.0
+wtk.midpapi=${wtk.home}/lib/midpapi20.jar:${wtk.home}/lib/cldcapi11.jar
+tomcat.start=startup.bat
+tomcat.stop=shutdown.bat



---------------------------------------------------------------------
To unsubscribe, e-mail: mirae-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: mirae-dev-help@ws.apache.org