Author: ningjiang
Date: Thu Sep 22 08:55:30 2011
New Revision: 1173997
URL: http://svn.apache.org/viewvc?rev=1173997&view=rev
Log:
CXF-3817 added pom support on js_provider
Added:
cxf/trunk/distribution/src/main/release/samples/js_provider/pom.xml (with
props)
cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/
cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.js
(contents, props changed)
- copied, changed from r1173871,
cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js
cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.jsx
(contents, props changed)
- copied, changed from r1173871,
cxf/trunk/distribution/src/main/release/samples/js_provider/impl.jsx
Removed:
cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js
cxf/trunk/distribution/src/main/release/samples/js_provider/impl.jsx
Modified:
cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
cxf/trunk/distribution/src/main/release/samples/js_provider/build.xml
Modified: cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt?rev=1173997&r1=1173996&r2=1173997&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
(original)
+++ cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt Thu
Sep 22 08:55:30 2011
@@ -87,10 +87,22 @@ compilation, there is no server-side jav
Finally, copy resource files into the build/classes directory with the
commands:
For UNIX:
- cp ./src/demo/hwDispatch/client/*.xml ./build/classes/demo/hwDispatch/client
+ cp ./src/main/java/demo/hwDispatch/client/*.xml
./build/classes/demo/hwDispatch/client
For Windows:
- copy src\demo\hwDispatch\client\*.xml build\classes\demo\hwDispatch\client
+ copy src\main\java\demo\hwDispatch\client\*.xml
build\classes\demo\hwDispatch\client
+
+
+Running the demo using maven
+----------------------------
+
+From the base directory of this sample (i.e., where this README file is
+located) run the commands, entered on a single command line:
+
+Using either UNIX or Windows:
+
+ mvn -Pserver (from one command line window)
+ mvn -Pclient (from a second command line window)
Running the demo using java
Modified: cxf/trunk/distribution/src/main/release/samples/js_provider/build.xml
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/js_provider/build.xml?rev=1173997&r1=1173996&r2=1173997&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/js_provider/build.xml
(original)
+++ cxf/trunk/distribution/src/main/release/samples/js_provider/build.xml Thu
Sep 22 08:55:30 2011
@@ -43,7 +43,7 @@
</target>
<target name="server" description="run demo server" depends="build">
- <cxfrun classname="org.apache.cxf.js.rhino.ServerApp" param1="-v"
param2="-b" param3="http://localhost:9000/SoapContext"
param4="${basedir}/impl.jsx" param5="${basedir}/impl.js"/>
+ <cxfrun classname="org.apache.cxf.js.rhino.ServerApp" param1="-v"
param2="-b" param3="http://localhost:9000/SoapContext"
param4="${basedir}/src/main/resources/impl.jsx"
param5="${basedir}/src/main/resources/impl.js"/>
</target>
<target name="generate.code">
Added: cxf/trunk/distribution/src/main/release/samples/js_provider/pom.xml
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/js_provider/pom.xml?rev=1173997&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/js_provider/pom.xml (added)
+++ cxf/trunk/distribution/src/main/release/samples/js_provider/pom.xml Thu Sep
22 08:55:30 2011
@@ -0,0 +1,176 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.cxf.samples</groupId>
+ <artifactId>js_provider</artifactId>
+ <name>Hello world javascript demo</name>
+ <description>Hello world javascript demo</description>
+ <version>2.5.0-SNAPSHOT</version>
+
+ <parent>
+ <groupId>org.apache.cxf.samples</groupId>
+ <artifactId>cxf-samples</artifactId>
+ <version>2.5.0-SNAPSHOT</version>
+ </parent>
+ <properties>
+ <cxf.version>${project.version}</cxf.version>
+ <cxf.release.base>${basedir}/../..</cxf.release.base>
+ </properties>
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <resources>
+ <resource>
+ <directory>wsdl</directory>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ </resources>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>prepare-transform</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <copy
file="${basedir}/src/main/java/demo/hwDispatch/client/GreetMeDocLiteralReq1.xml"
todir="${basedir}/target/classes/demo/hwDispatch/client" />
+ <copy
file="${basedir}/src/main/java/demo/hwDispatch/client/GreetMeDocLiteralReq3.xml"
todir="${basedir}/target/classes/demo/hwDispatch/client" />
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-codegen-plugin</artifactId>
+ <version>${project.version}</version>
+ <executions>
+ <execution>
+ <id>generate-sources</id>
+ <phase>generate-sources</phase>
+ <configuration>
+ <wsdlOptions>
+ <wsdlOption>
+
<wsdl>${basedir}/wsdl/hello_world.wsdl</wsdl>
+ </wsdlOption>
+ </wsdlOptions>
+ </configuration>
+ <goals>
+ <goal>wsdl2java</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>server</id>
+ <build>
+ <defaultGoal>test</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+
<mainClass>org.apache.cxf.js.rhino.ServerApp</mainClass>
+ <arguments>
+ <argument>-v</argument>
+ <argument>-b</argument>
+
<argument>http://localhost:9000/SoapContext</argument>
+
<argument>${basedir}/target/classes/impl.jsx</argument>
+
<argument>${basedir}/target/classes/impl.js</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>client</id>
+ <build>
+ <defaultGoal>test</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+
<mainClass>demo.hwDispatch.client.Client</mainClass>
+ <arguments>
+
<argument>${basedir}/wsdl/hello_world.wsdl</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-frontend-js</artifactId>
+ <version>2.5.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-http</artifactId>
+ <version>2.5.0-SNAPSHOT</version>
+ </dependency>
+ <!-- Jetty is needed if you're using the CXFServlet -->
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-http-jetty</artifactId>
+ <version>2.5.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
Propchange: cxf/trunk/distribution/src/main/release/samples/js_provider/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/js_provider/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/js_provider/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Copied:
cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.js
(from r1173871,
cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js)
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.js?p2=cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.js&p1=cxf/trunk/distribution/src/main/release/samples/js_provider/impl.js&r1=1173871&r2=1173997&rev=1173997&view=diff
==============================================================================
(empty)
Propchange:
cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.js
------------------------------------------------------------------------------
svn:eol-style = native
Copied:
cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.jsx
(from r1173871,
cxf/trunk/distribution/src/main/release/samples/js_provider/impl.jsx)
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.jsx?p2=cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.jsx&p1=cxf/trunk/distribution/src/main/release/samples/js_provider/impl.jsx&r1=1173871&r2=1173997&rev=1173997&view=diff
==============================================================================
(empty)
Propchange:
cxf/trunk/distribution/src/main/release/samples/js_provider/src/main/resources/impl.jsx
------------------------------------------------------------------------------
svn:eol-style = native