From 200a40b332420f94992eb39a6d0ea1cf1490ffc4 Mon Sep 17 00:00:00 2001 From: coreyg Date: Fri, 21 Nov 2014 09:30:19 +0000 Subject: Adding tuscany's website to their svn repo for svnpubsub git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1640879 13f79535-47bb-0310-9956-ffa450edef68 --- site/trunk/site-publish/getting-started.html | 213 +++++++++++++++++++++++++++ 1 file changed, 213 insertions(+) create mode 100644 site/trunk/site-publish/getting-started.html (limited to 'site/trunk/site-publish/getting-started.html') diff --git a/site/trunk/site-publish/getting-started.html b/site/trunk/site-publish/getting-started.html new file mode 100644 index 0000000000..f5c0e975d4 --- /dev/null +++ b/site/trunk/site-publish/getting-started.html @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + Apache Tuscany : Getting Started + + + + + + + + + + + + + + + +
+ + + + +   + +
+ + +
+
+ + + + + + + + + +
+  Apache Tuscany > Home > SCA Overview > SCA Java > SCA Java Work-In-Progress > Getting Started + + User List | Dev List | Issue Tracker   +
+ + + + + + + +
+ + +
+ +
+
+

Getting Started with Tuscany SCA for Java

+ + +

Overview

+ + +

Set up the development environment

+ +

1) Repository

+ +

Tuscany source code is hosted at Apache subversion repository. If you want to build Tuscany from source, you need to install a subversion client.

+
Where to download the subversion clients?
Command line: http://subversion.tigris.org/ (1.4.2)
+Windows GUI: http://tortoisesvn.tigris.org/ (1.4.1)
+

2) Build

+
Where to download maven?
Maven 2: http://maven.apache.org/ (2.0.4)
+

3) Development IDE

+
Where to download Eclipse/WTP?
Eclipse: http://www.eclipse.org/ (3.2.1)
+Eclipse WTP: http://www.eclipse.org/webtools/ (1.5.2)
+ +

Create a simple project from scratch

+ +
+
+mvn archetype:create -DgroupId=sample -DartifactId=helloworld
+
+
+ +

Configure the project for maven build

+ +
+
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.tuscany.samples.sca</groupId>
+    <version>1.0-incubator-SNAPSHOT</version>
+    <artifactId>sample-mortgage</artifactId>
+    <packaging>jar</packaging>
+    <name>Tuscany Mortgage Sample</name>
+    <description>A sample Mortgage application made of several SCA components wired together.</description>
+
+    <properties>
+        <property name="tuscanyVersion">1.0-incubator-SNAPSHOT</property>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.osoa</groupId>
+            <artifactId>sca-api-r0.95</artifactId>
+            <version>${tuscanyVersion}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>test</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>test</scope>
+        </dependency>
+</project>
+
+
+ +

Load the project into Eclipse

+ +

1. Adding M2_REPO classpath variable

+
+
+mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
+
+
+ +

+ +

2. (Optional) Add maven as an external tool for Eclipse

+ +

3. Create Eclispe metadata files

+
+
+mvn -Peclipse eclipse:eclipse
+
+
+ +

4. Import projects into Eclipse
+File --> Import ... --> Existing Projects into Workspace

+ + + +

Develop a simple SCA application

+ +

1. Declare components in the SCDL

+
META-INF/sca/default.scdl
+
+The SCDL file
+
+
+ +

2. Implement the components in java

+
CreditCheckImpl.java
+
+The java file
+
+
+ +

Run the SCA application

+
+
+
+ + +
+ + + + + + website stats + + + + + + -- cgit v1.2.3