From bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a Mon Sep 17 00:00:00 2001 From: dims Date: Tue, 17 Jun 2008 00:23:01 +0000 Subject: Move Tuscany from Incubator to top level. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68 --- .../devstudio6/projects/Calculator/Build/Build.dsp | 67 +++++++++ .../devstudio6/projects/Calculator/Build/Build.mak | 155 +++++++++++++++++++++ .../Calculator/Build/BuildInstructions.txt | 93 +++++++++++++ 3 files changed, 315 insertions(+) create mode 100644 tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/Build.dsp create mode 100644 tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/Build.mak create mode 100644 tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/BuildInstructions.txt (limited to 'tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build') diff --git a/tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/Build.dsp b/tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/Build.dsp new file mode 100644 index 0000000000..e24bca445c --- /dev/null +++ b/tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/Build.dsp @@ -0,0 +1,67 @@ +# Microsoft Developer Studio Project File - Name="Build" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Generic Project" 0x010a + +CFG=Build - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "Build.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "Build.mak" CFG="Build - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "Build - Win32 Release" (based on "Win32 (x86) Generic Project") +!MESSAGE "Build - Win32 Debug" (based on "Win32 (x86) Generic Project") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +MTL=midl.exe + +!IF "$(CFG)" == "Build - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" + +!ELSEIF "$(CFG)" == "Build - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" + +!ENDIF + +# Begin Target + +# Name "Build - Win32 Release" +# Name "Build - Win32 Debug" +# Begin Source File + +SOURCE=.\BuildInstructions.txt +# End Source File +# End Target +# End Project diff --git a/tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/Build.mak b/tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/Build.mak new file mode 100644 index 0000000000..1c01e71a39 --- /dev/null +++ b/tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/Build.mak @@ -0,0 +1,155 @@ +# Microsoft Developer Studio Generated NMAKE File, Based on Build.dsp +!IF "$(CFG)" == "" +CFG=Build - Win32 Debug +!MESSAGE No configuration specified. Defaulting to Build - Win32 Debug. +!ENDIF + +!IF "$(CFG)" != "Build - Win32 Release" && "$(CFG)" != "Build - Win32 Debug" +!MESSAGE Invalid configuration "$(CFG)" specified. +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "Build.mak" CFG="Build - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "Build - Win32 Release" (based on "Win32 (x86) Generic Project") +!MESSAGE "Build - Win32 Debug" (based on "Win32 (x86) Generic Project") +!MESSAGE +!ERROR An invalid configuration is specified. +!ENDIF + +!IF "$(OS)" == "Windows_NT" +NULL= +!ELSE +NULL=nul +!ENDIF + +OUTDIR=.\Release +INTDIR=.\Release + +!IF "$(RECURSE)" == "0" + +ALL : + +!ELSE + +ALL : "WSClient - Win32 Release" "Client - Win32 Release" "Calculator - Win32 Release" + +!ENDIF + +!IF "$(RECURSE)" == "1" +CLEAN :"Calculator - Win32 ReleaseCLEAN" "Client - Win32 ReleaseCLEAN" "WSClient - Win32 ReleaseCLEAN" +!ELSE +CLEAN : +!ENDIF + -@erase + +"$(OUTDIR)" : + if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" + +!IF "$(CFG)" == "Build - Win32 Release" + +MTL=midl.exe +MTL_PROJ= + +!ELSEIF "$(CFG)" == "Build - Win32 Debug" + +MTL=midl.exe +MTL_PROJ= + +!ENDIF + + +!IF "$(NO_EXTERNAL_DEPS)" != "1" +!IF EXISTS("Build.dep") +!INCLUDE "Build.dep" +!ELSE +!MESSAGE Warning: cannot find "Build.dep" +!ENDIF +!ENDIF + + +!IF "$(CFG)" == "Build - Win32 Release" || "$(CFG)" == "Build - Win32 Debug" + +!IF "$(CFG)" == "Build - Win32 Release" + +"Calculator - Win32 Release" : + cd "..\Calculator" + $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Release" + cd "..\Build" + +"Calculator - Win32 ReleaseCLEAN" : + cd "..\Calculator" + $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Release" RECURSE=1 CLEAN + cd "..\Build" + +!ELSEIF "$(CFG)" == "Build - Win32 Debug" + +"Calculator - Win32 Debug" : + cd "..\Calculator" + $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Debug" + cd "..\Build" + +"Calculator - Win32 DebugCLEAN" : + cd "..\Calculator" + $(MAKE) /$(MAKEFLAGS) /F .\Calculator.mak CFG="Calculator - Win32 Debug" RECURSE=1 CLEAN + cd "..\Build" + +!ENDIF + +!IF "$(CFG)" == "Build - Win32 Release" + +"Client - Win32 Release" : + cd "..\Client" + $(MAKE) /$(MAKEFLAGS) /F .\Client.mak CFG="Client - Win32 Release" + cd "..\Build" + +"Client - Win32 ReleaseCLEAN" : + cd "..\Client" + $(MAKE) /$(MAKEFLAGS) /F .\Client.mak CFG="Client - Win32 Release" RECURSE=1 CLEAN + cd "..\Build" + +!ELSEIF "$(CFG)" == "Build - Win32 Debug" + +"Client - Win32 Debug" : + cd "..\Client" + $(MAKE) /$(MAKEFLAGS) /F .\Client.mak CFG="Client - Win32 Debug" + cd "..\Build" + +"Client - Win32 DebugCLEAN" : + cd "..\Client" + $(MAKE) /$(MAKEFLAGS) /F .\Client.mak CFG="Client - Win32 Debug" RECURSE=1 CLEAN + cd "..\Build" + +!ENDIF + +!IF "$(CFG)" == "Build - Win32 Release" + +"WSClient - Win32 Release" : + cd "..\WSClient" + $(MAKE) /$(MAKEFLAGS) /F .\WSClient.mak CFG="WSClient - Win32 Release" + cd "..\Build" + +"WSClient - Win32 ReleaseCLEAN" : + cd "..\WSClient" + $(MAKE) /$(MAKEFLAGS) /F .\WSClient.mak CFG="WSClient - Win32 Release" RECURSE=1 CLEAN + cd "..\Build" + +!ELSEIF "$(CFG)" == "Build - Win32 Debug" + +"WSClient - Win32 Debug" : + cd "..\WSClient" + $(MAKE) /$(MAKEFLAGS) /F .\WSClient.mak CFG="WSClient - Win32 Debug" + cd "..\Build" + +"WSClient - Win32 DebugCLEAN" : + cd "..\WSClient" + $(MAKE) /$(MAKEFLAGS) /F .\WSClient.mak CFG="WSClient - Win32 Debug" RECURSE=1 CLEAN + cd "..\Build" + +!ENDIF + + +!ENDIF + diff --git a/tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/BuildInstructions.txt b/tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/BuildInstructions.txt new file mode 100644 index 0000000000..275b01e3e2 --- /dev/null +++ b/tags/cpp-1.0-incubating-M2-RC1/sca/samples/ides/devstudio6/projects/Calculator/Build/BuildInstructions.txt @@ -0,0 +1,93 @@ + +These sample projects will build: + +A basic calculator SCA service. +A client to test that service. +A WSClient to test the service as exposed by AXIS2C as a web service. + +The sample depdends on the current versions of Tuscany SDO and Tuscany SCA, which in turn +depend on axis2c version 0.92, and libxml2. See the SCA and SDO project installation +details. + +The sample already has the pre-generated proxy and wrapper code in it, but should +you need to regenerate these, you will need the command line tool "scagen" which is +part of the Tuscany SCA project. + +The projects expect to following environment variables to be set: +TUSCANY_SCACPP: +The directory in which the sca runtime is deployed - probably something ending in sca/deploy. + +TUSCANY_SDOCPP: +The directory where the sdo runtime is deployed - probably something ending in sdo/deploy. + +TUSCANY_SCACPP_DEFAULT_COMPONENT=CalculatorSubsystem +This is the default composite to be loaded by SCA. It consists of / + +TUSCANY_SCACPP_SYSTEM_ROOT +This is the point from which SCA will start looking for composites to load. Again this is +set programmatically by the sample. + +AXIS2C_HOME: +This is where axis2c is deployed- this is only required by the WSClient project. + +The Calculator project contains a simple calculator service, and the descriptive files +which help the runtime to find the service. + + +Rebuilding the proxy and wrapper classes +======================================== + +If required, go to the Calculator sample main directory, and +type: +"scagen -dir CalculatorComposite -output CalculatorComposite" + +The generated code is put into the CalculatorComposite subdirectory. + +Building the Client project +=========================== + +Set the active project to be "Client", and then build all. +This will re-build Calculator, then rebuild the Client, +The final step of the build will call a batch file "deploy.cmd", +which copies all the required files to the directory samples/Calculator/deploy + +Use Project..Settings..Debug and check the path to the executable, check also the +path to the working directory. Alter these to match your configuration. + +Run the project, and your SCA service should be called. + +Building the WSClient project +============================= + +Modify the services.xml file, and make the SCA system root defined +within it comply with your SCA system root. + +Set the active project to WSClient and build all. + +The last step of the build will run a wsdeploy script, which +tries to use the environment variable AXIS2C_HOME, to create +a services/Calculator directory, and deploy the services.xml file. +The dll which resolves SCA services is called +tuscany_sca_ws_service.dll - this will be copied to the axis +tree by the same script file. + +To run the axis2 http server, go to the %AXIS2C_HOME%/bin +directory, and launch the executable. + +Now verify that the path to the WSClient executable makes sense +in your project settings, and run the project. + + +Note +==== + +It can be quite hard to debug services which are invoked through axis, as the +dll including the service is loaded on call. One useful technique is to +load the axis http server in visual studio (create an empty project and make +the executable path point to axis2_http_server.exe). +Now use the Project..Settings..Debug..Addition DLLs option and add +services/Calculator/tuscany_sca_ws_service.dll. +You will now be able to set breakpoints in the dll (Axis2EntryPointService_invoke +is a good place - in Axis2EntryPointService_skeleton.cpp). +Run your WSclient from another debugger, and the server debugger will break +on the service code. -- cgit v1.2.3