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 --- .../itests/helloworld/GroovyHelloWorld.composite | 32 +++++++++++++++++++ .../itests/helloworld/JRubyHelloWorld.composite | 32 +++++++++++++++++++ .../helloworld/JavaScriptHelloWorld.composite | 32 +++++++++++++++++++ .../itests/helloworld/JythonHelloWorld.composite | 32 +++++++++++++++++++ .../itests/helloworld/helloworld.componentType | 30 ++++++++++++++++++ .../script/itests/helloworld/helloworld.groovy | 22 +++++++++++++ .../script/itests/helloworld/helloworld.js | 23 ++++++++++++++ .../script/itests/helloworld/helloworld.py | 20 ++++++++++++ .../script/itests/helloworld/helloworld.rb | 21 ++++++++++++ .../itests/properties/GroovyHelloWorld.composite | 32 +++++++++++++++++++ .../itests/properties/JRubyHelloWorld.composite | 32 +++++++++++++++++++ .../properties/JavaScriptHelloWorld.composite | 32 +++++++++++++++++++ .../itests/properties/JythonHelloWorld.composite | 32 +++++++++++++++++++ .../itests/properties/helloworld.componentType | 32 +++++++++++++++++++ .../script/itests/properties/helloworld.groovy | 22 +++++++++++++ .../script/itests/properties/helloworld.js | 23 ++++++++++++++ .../script/itests/properties/helloworld.py | 20 ++++++++++++ .../script/itests/properties/helloworld.rb | 21 ++++++++++++ .../references/JavaScriptReference.composite | 37 ++++++++++++++++++++++ .../itests/references/reference.componentType | 31 ++++++++++++++++++ .../script/itests/references/reference.js | 22 +++++++++++++ 21 files changed, 580 insertions(+) create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/GroovyHelloWorld.composite create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JRubyHelloWorld.composite create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JavaScriptHelloWorld.composite create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JythonHelloWorld.composite create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.componentType create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.groovy create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.js create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.py create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.rb create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/GroovyHelloWorld.composite create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JRubyHelloWorld.composite create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JavaScriptHelloWorld.composite create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JythonHelloWorld.composite create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.componentType create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.groovy create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.js create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.py create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.rb create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/JavaScriptReference.composite create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType create mode 100644 sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js (limited to 'sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany') diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/GroovyHelloWorld.composite b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/GroovyHelloWorld.composite new file mode 100644 index 0000000000..c52db94bff --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/GroovyHelloWorld.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JRubyHelloWorld.composite b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JRubyHelloWorld.composite new file mode 100644 index 0000000000..2fc2948d0a --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JRubyHelloWorld.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JavaScriptHelloWorld.composite b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JavaScriptHelloWorld.composite new file mode 100644 index 0000000000..489feeab96 --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JavaScriptHelloWorld.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JythonHelloWorld.composite b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JythonHelloWorld.composite new file mode 100644 index 0000000000..70c40d908c --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/JythonHelloWorld.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.componentType b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.componentType new file mode 100644 index 0000000000..99a18538d8 --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.componentType @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.groovy b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.groovy new file mode 100644 index 0000000000..9f89bd373e --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.groovy @@ -0,0 +1,22 @@ +/* + * 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. + */ + +def sayHello(s) { + return "Hello " + s +} \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.js b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.js new file mode 100644 index 0000000000..eac2ab283f --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.js @@ -0,0 +1,23 @@ +/* + * 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. + */ + +function sayHello(s) { + + return "Hello " + s; +} \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.py b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.py new file mode 100644 index 0000000000..f5dd0f8fcf --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.py @@ -0,0 +1,20 @@ +# 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. +# + +def sayHello(s): + return 'Hello ' + s \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.rb b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.rb new file mode 100644 index 0000000000..cd2d3bcaea --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/helloworld/helloworld.rb @@ -0,0 +1,21 @@ +# 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. +# + +def sayHello(s) + return "Hello " + s +end \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/GroovyHelloWorld.composite b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/GroovyHelloWorld.composite new file mode 100644 index 0000000000..35abb780fa --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/GroovyHelloWorld.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JRubyHelloWorld.composite b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JRubyHelloWorld.composite new file mode 100644 index 0000000000..bd4661b7a3 --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JRubyHelloWorld.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JavaScriptHelloWorld.composite b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JavaScriptHelloWorld.composite new file mode 100644 index 0000000000..adf04cbcc0 --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JavaScriptHelloWorld.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JythonHelloWorld.composite b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JythonHelloWorld.composite new file mode 100644 index 0000000000..633f20e8f0 --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/JythonHelloWorld.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.componentType b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.componentType new file mode 100644 index 0000000000..de4669ddea --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.componentType @@ -0,0 +1,32 @@ + + + + + + + + + Tuscany + + + \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.groovy b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.groovy new file mode 100644 index 0000000000..a7eb446d37 --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.groovy @@ -0,0 +1,22 @@ +/* + * 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. + */ + +def sayHello(s) { + return "Hello " + s + " from " + greeter +} \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.js b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.js new file mode 100644 index 0000000000..64df3ebbef --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.js @@ -0,0 +1,23 @@ +/* + * 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. + */ + +function sayHello(s) { + + return "Hello " + s + " from " + greeter; +} \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.py b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.py new file mode 100644 index 0000000000..868cfa9eeb --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.py @@ -0,0 +1,20 @@ +# 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. +# + +def sayHello(s): + return 'Hello ' + s + ' from ' + greeter \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.rb b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.rb new file mode 100644 index 0000000000..2844f8b8d9 --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/properties/helloworld.rb @@ -0,0 +1,21 @@ +# 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. +# + +def sayHello(s) + return "Hello " + s + " from " + $greeter +end \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/JavaScriptReference.composite b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/JavaScriptReference.composite new file mode 100644 index 0000000000..00bbac878e --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/JavaScriptReference.composite @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType new file mode 100644 index 0000000000..71be1baf73 --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.componentType @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js new file mode 100644 index 0000000000..ad0a932d26 --- /dev/null +++ b/sandbox/SPI/implementation-script/src/test/resources/org/apache/tuscany/implementation/script/itests/references/reference.js @@ -0,0 +1,22 @@ +/* + * 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. + */ + +function sayHello(s) { + return ref.sayHello(s); +} \ No newline at end of file -- cgit v1.2.3