You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Glen Mazza <gl...@verizon.net> on 2007/10/14 19:33:55 UTC

Re: svn commit: r584525 - in /incubator/cxf/branches/jliu: distribution/ distribution/src/main/release/samples/restful_jaxrs/ distribution/src/main/release/samples/restful_jaxrs/src/ distribution/src/main/release/samples/restful_jaxrs/src/demo/ distributio...

Am Sonntag, den 14.10.2007, 10:43 +0000 schrieb jliu@apache.org:
> Author: jliu
> Date: Sun Oct 14 03:43:08 2007
> New Revision: 584525
> 
> URL: http://svn.apache.org/viewvc?rev=584525&view=rev
> Log:
> Add a sample for JSR-311
> 
> Added:
> incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/README.txt
> URL: http://svn.apache.org/viewvc/incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/README.txt?rev=584525&view=auto
> ==============================================================================
> --- incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/README.txt (added)
> +++ incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/README.txt Sun Oct 14 03:43:08 2007
> @@ -0,0 +1,133 @@
> +RESTful Hello World Demo 
> +========================
> +
> +
> +
> +Building the demo using wsdl2java and javac
> +-------------------------------------------

...using javac  (no wsdl2java, correct?)


> +
> +From the samples/restful_jaxrs directory, first create the target
> +directory build/classes and then compile the provided client 
> +and server applications with the commands:
> +
> +For UNIX:  
> +  mkdir -p build/classes
> +  
> +  export CLASSPATH=$CLASSPATH:$CXF_HOME/lib/cxf-manifest-incubator.jar:./build/classes
> +  javac -d build/classes src/demo/jaxrs/client/*.java
> +  javac -d build/classes src/demo/jaxrs/server/*.java
> +
> +For Windows:
> +  mkdir build\classes
> +    Must use back slashes.
> +
> +  set classpath=%classpath%;%CXF_HOME%\lib\cxf-manifest-incubator.jar;.\build\classes
> +  javac -d build\classes src\demo\jaxrs\client\*.java
> +  javac -d build\classes src\demo\jaxrs\server\*.java
> +
> +
> +Finally, copy resource files into the build/classes directory with the commands:
> +
> +For UNIX:    
> +  cp ./src/demo/jaxrs/client/*.xml ./build/classes/demo/jaxrs/client
> +  cp ./src/demo/jaxrs/server/*.xml ./build/classes/demo/jaxrs/server
> +
> +For Windows:
> +  copy src\demo\jaxrs\client\*.xml build\classes\demo\jaxrs\client
> +  copy src\demo\jaxrs\server\*.xml build\classes\demo\jaxrs\server
> +
> +

> Added: incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/src/demo/jaxrs/client/add_customer.txt
> URL: http://svn.apache.org/viewvc/incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/src/demo/jaxrs/client/add_customer.txt?rev=584525&view=auto
> ==============================================================================
> Added: incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/src/demo/jaxrs/client/update_customer.txt
> URL: http://svn.apache.org/viewvc/incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/src/demo/jaxrs/client/update_customer.txt?rev=584525&view=auto
> ==============================================================================

Perhaps these two should have .xml extensions.

Regards,
Glen