tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r569345 - in /incubator/tuscany/java/sca/demos/alert-aggregator: build.xml src/main/webapp/AlertAggregator.html
Date Fri, 24 Aug 2007 10:57:36 GMT
Author: slaws
Date: Fri Aug 24 03:57:35 2007
New Revision: 569345

URL: http://svn.apache.org/viewvc?rev=569345&view=rev
Log:
fix any build to allow demo to be compiled
correct json service urls

Modified:
    incubator/tuscany/java/sca/demos/alert-aggregator/build.xml
    incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/AlertAggregator.html

Modified: incubator/tuscany/java/sca/demos/alert-aggregator/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/alert-aggregator/build.xml?rev=569345&r1=569344&r2=569345&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/alert-aggregator/build.xml (original)
+++ incubator/tuscany/java/sca/demos/alert-aggregator/build.xml Fri Aug 24 03:57:35 2007
@@ -22,15 +22,86 @@
 	
     <target name="init">
         <mkdir dir="target/classes"/>
+    	<mkdir dir="target/sdo-source"/>
     </target>
 	
-    <target name="compile" depends="init">
+    <target name="generate" depends="init">
+        <java classname="org.apache.tuscany.sdo.generate.XSD2JavaGenerator"
+              fork="true">
+        	<arg value="-targetDirectory"/>
+        	<arg value="target/sdo-source"/>
+        	<arg value="-javaPackage"/>
+        	<arg value="org.apache.tuscany.sca.demos.aggregator.service"/>
+        	<arg value="-schemaNamespace"/>
+        	<arg value="http://tuscany.apache.org/sca/demos/aggregator/service"/>
+        	<arg value="-noNotification"/>
+        	<arg value="-noContainment"/>
+        	<arg value="-noUnsettable"/>
+        	<arg value="src/main/resources/Alerts.wsdl"/>
+        	
+            <classpath>
+                <pathelement path="target/classes"/>
+            	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>
+    	
+        <java classname="org.apache.tuscany.sdo.generate.XSD2JavaGenerator"
+              fork="true">
+        	<arg value="-targetDirectory"/>
+        	<arg value="target/sdo-source"/>
+        	<arg value="-javaPackage"/>
+        	<arg value="org.apache.tuscany.sca.demos.aggregator.sources"/>
+        	<arg value="-schemaNamespace"/>
+        	<arg value="http://tuscany.apache.org/sca/demos/aggregator/sources"/>
+        	<arg value="-noNotification"/>
+        	<arg value="-noContainment"/>
+        	<arg value="-noUnsettable"/>
+        	<arg value="src/main/resources/AlertsSources.wsdl"/>
+     	
+            <classpath>
+                <pathelement path="target/classes"/>
+            	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>   
+    	
+        <java classname="org.apache.tuscany.sdo.generate.XSD2JavaGenerator"
+              fork="true">
+        	<arg value="-targetDirectory"/>
+        	<arg value="target/sdo-source"/>
+        	<arg value="-javaPackage"/>
+        	<arg value="org.apache.tuscany.sca.demos.aggregator.types"/>
+        	<arg value="-schemaNamespace"/>
+        	<arg value="http://tuscany.apache.org/sca/demos/aggregator/types"/>
+        	<arg value="-noNotification"/>
+        	<arg value="-noContainment"/>
+        	<arg value="-noUnsettable"/>
+        	<arg value="src/main/resources/Alerts.xsd"/>
+     	
+            <classpath>
+                <pathelement path="target/sdo-source"/>
+            	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </java>     	
+    </target>
+	
+    <target name="compile" depends="generate">
+        <javac srcdir="target/sdo-source"
+               destdir="target/classes"
+               debug="on"
+               source="1.5"
+               target="1.5">
+            <classpath>
+            	<pathelement path="target/classes"/>
+            	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </javac>
         <javac srcdir="src/main/java"
                destdir="target/classes"
                debug="on"
                source="1.5"
                target="1.5">
             <classpath>
+            	<pathelement path="target/classes"/>
             	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
             </classpath>
         </javac> 
@@ -49,40 +120,98 @@
           <property name="artifactId" value="${artifactId}"/>
         </ant>   
 
-        <war destfile="target/sample-helloworldjsonrpc.war" 
+        <war destfile="target/demo-alert-aggregator.war" 
              webxml="src/main/webapp/WEB-INF/web.xml">
             <fileset dir="src/main/webapp"/>
             <zipfileset dir="../../modules" prefix="WEB-INF/lib">
-                <include name="sca-api-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-assembly-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-assembly-xml-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-binding-jsonrpc-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-contribution-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-contribution-impl-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-core-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-core-databinding-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-core-spi-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-databinding-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-host-embedded-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-host-http-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-host-webapp-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-implementation-java-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-implementation-java-runtime-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-implementation-java-xml-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-java-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-java-xml-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-wsdl-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-wsdl-xml-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-policy-0.90-incubating-SNAPSHOT.jar"/>
+            	<include name="sca-api-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-assembly-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-assembly-xml-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-binding-feed-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-binding-jsonrpc-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-binding-sca-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-binding-sca-xml-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-binding-ws-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-binding-ws-axis2-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-binding-ws-xml-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-contribution-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-contribution-impl-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-contribution-java-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-contribution-namespace-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-core-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-core-databinding-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-core-spi-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-databinding-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-databinding-axiom-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-databinding-jaxb-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-databinding-sdo-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-distributed-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-extension-helper-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-host-embedded-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-host-http-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-host-webapp-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-implementation-java-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-implementation-java-runtime-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-implementation-java-xml-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-interface-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-interface-java-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-interface-java-xml-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-interface-wsdl-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-interface-wsdl-runtime-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-interface-wsdl-xml-1.0-incubating-SNAPSHOT.jar"/>
        	
+            	<include name="tuscany-policy-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-policy-xml-1.0-incubating-SNAPSHOT.jar"/>
             </zipfileset>
             <lib dir="../../lib">
-                <include name="json-rpc-1.0.jar"/>
-                <include name="stax-api-1.0.1.jar"/>
-                <include name="wsdl4j-1.6.2.jar"/>
-                <include name="wstx-asl-3.2.0.jar"/>
-                <include name="XmlSchema-1.3.1.jar"/>
-                <include name="**/../../modules/*.jar"/>
+            	<include name="XmlSchema-1.3.1.jar"/>
+            	<include name="activation-1.1.jar"/>
+            	<include name="annogen-0.1.0.jar"/>
+            	<include name="ant-1.7.0.jar"/>
+            	<include name="ant-launcher-1.7.0.jar"/>
+            	<include name="axiom-api-1.2.4.jar"/>
+            	<include name="axiom-dom-1.2.4.jar"/>
+            	<include name="axiom-impl-1.2.4.jar"/>
+            	<include name="axis2-java2wsdl-1.2.jar"/>
+            	<include name="axis2-kernel-1.2.jar"/>
+            	<include name="backport-util-concurrent-2.2.jar"/>
+            	<include name="backport-util-concurrent-3.0.jar"/>
+            	<include name="cglib-nodep-2.1_3.jar"/>
+            	<include name="common-2.2.3.jar"/>
+            	<include name="commons-codec-1.3.jar"/>
+            	<include name="commons-fileupload-1.1.1.jar"/>
+            	<include name="commons-httpclient-3.0.1.jar"/>
+            	<include name="commons-io-1.1.jar"/>
+            	<include name="commons-logging-1.1.jar"/>
+            	<include name="ecore-2.2.3.jar"/>
+            	<include name="ecore-change-2.2.3.jar"/>
+            	<include name="ecore-xmi-2.2.3.jar"/>
+            	<include name="geronimo-commonj_1.1_spec-1.0.jar"/>
+            	<include name="geronimo-jms_1.1_spec-1.1.jar"/>
+            	<include name="jakarta-httpcore-4.0-alpha4.jar"/>
+            	<include name="jaxb-api-2.1.jar"/>
+            	<include name="jaxb-impl-2.1.4.jar"/>
+            	<include name="jaxen-1.1-beta-9.jar"/>
+            	<include name="jaxws-api-2.1.jar"/>
+            	<include name="jdom-1.0.jar"/>
+            	<include name="json-rpc-1.0.jar"/>
+            	<include name="jsr181-api-1.0-MR1.jar"/>
+            	<include name="jsr250-api-1.0.jar"/>
+            	<include name="mail-1.4.jar"/>
+            	<include name="neethi-2.0.1.jar"/>
+            	<include name="rome-0.9.jar"/>
+            	<include name="saaj-api-1.3.jar"/>
+            	<include name="sca-api-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="stax-api-1.0-2.jar"/>
+            	<include name="stax-api-1.0.1.jar"/>
+            	<include name="woden-1.0-incubating-M7a.jar"/>
+            	<include name="wsdl4j-1.6.2.jar"/>
+            	<include name="wstx-asl-3.2.1.jar"/>
+            	<include name="xercesImpl-2.8.1.jar"/>
+            	<include name="xml-apis-1.3.03.jar"/>
+            	<include name="xsd-2.2.3.jar"/>
+            	<include name="tuscany-sdo-api-r2.1-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-sdo-impl-1.0-incubating-SNAPSHOT.jar"/>
+            	<include name="tuscany-sdo-lib-1.0-incubating-SNAPSHOT.jar"/>
             </lib>
             <classes dir="target/classes"/>
         </war>
@@ -92,8 +221,6 @@
           <property name="artifactId" value="${artifactId}"/>
         </ant> 
      </target>
-
-
 		
     <target name="clean">
         <delete quiet="true" includeemptydirs="true">

Modified: incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/AlertAggregator.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/AlertAggregator.html?rev=569345&r1=569344&r2=569345&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/AlertAggregator.html
(original)
+++ incubator/tuscany/java/sca/demos/alert-aggregator/src/main/webapp/AlertAggregator.html
Fri Aug 24 03:57:35 2007
@@ -42,8 +42,8 @@
     <script type="text/javascript">
     
         // The proxy for the alert and alertsources services running in Tuscany
-        var alertsService       = new dojo.rpc.JsonService("services/SCADomain/AlertsServiceJSONRPC?smd");
-        var alertSourcesService = new dojo.rpc.JsonService("services/SCADomain/AlertsSourcesServiceJSONRPC?smd");
+        var alertsService       = new dojo.rpc.JsonService("services/AlertsServiceJSONRPC?smd");
+        var alertSourcesService = new dojo.rpc.JsonService("services/AlertsSourcesServiceJSONRPC?smd");
 
         // If you want to put an HTTP sniffer in the way to look at the JSONROPC packets
you'll
         // need to edit the target address of the service in the smd. The only way to do
this easily



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


Mime
View raw message