Return-Path: X-Original-To: apmail-incubator-airavata-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-airavata-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6B6C7B87 for ; Thu, 25 Aug 2011 20:44:30 +0000 (UTC) Received: (qmail 81832 invoked by uid 500); 25 Aug 2011 20:44:30 -0000 Delivered-To: apmail-incubator-airavata-commits-archive@incubator.apache.org Received: (qmail 81785 invoked by uid 500); 25 Aug 2011 20:44:30 -0000 Mailing-List: contact airavata-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: airavata-dev@incubator.apache.org Delivered-To: mailing list airavata-commits@incubator.apache.org Received: (qmail 81778 invoked by uid 99); 25 Aug 2011 20:44:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 20:44:30 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 20:44:27 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 989F92388A68; Thu, 25 Aug 2011 20:44:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1161746 - in /incubator/airavata/trunk/samples/simple_math_service: pom.xml src/main/java/org/apache/airavata/samples/SimpleMathService.java src/main/resources/services.xml Date: Thu, 25 Aug 2011 20:44:05 -0000 To: airavata-commits@incubator.apache.org From: smarru@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110825204405.989F92388A68@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: smarru Date: Thu Aug 25 20:44:05 2011 New Revision: 1161746 URL: http://svn.apache.org/viewvc?rev=1161746&view=rev Log: Adding the license header Modified: incubator/airavata/trunk/samples/simple_math_service/pom.xml incubator/airavata/trunk/samples/simple_math_service/src/main/java/org/apache/airavata/samples/SimpleMathService.java incubator/airavata/trunk/samples/simple_math_service/src/main/resources/services.xml Modified: incubator/airavata/trunk/samples/simple_math_service/pom.xml URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/samples/simple_math_service/pom.xml?rev=1161746&r1=1161745&r2=1161746&view=diff ============================================================================== --- incubator/airavata/trunk/samples/simple_math_service/pom.xml (original) +++ incubator/airavata/trunk/samples/simple_math_service/pom.xml Thu Aug 25 20:44:05 2011 @@ -1,3 +1,16 @@ + + + + @@ -11,18 +24,6 @@ http://incubator.apache.org/airavata/index.html - - - ogce.m2.all - ogce.m2.all - http://community.ucs.indiana.edu:9090/archiva/repository/ogce.m2.all - - - daily - - - - 1.5.4 Modified: incubator/airavata/trunk/samples/simple_math_service/src/main/java/org/apache/airavata/samples/SimpleMathService.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/samples/simple_math_service/src/main/java/org/apache/airavata/samples/SimpleMathService.java?rev=1161746&r1=1161745&r2=1161746&view=diff ============================================================================== --- incubator/airavata/trunk/samples/simple_math_service/src/main/java/org/apache/airavata/samples/SimpleMathService.java (original) +++ incubator/airavata/trunk/samples/simple_math_service/src/main/java/org/apache/airavata/samples/SimpleMathService.java Thu Aug 25 20:44:05 2011 @@ -1,14 +1,35 @@ +/* + * + * 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. + * + */ + package org.apache.airavata.samples; public class SimpleMathService { - /** - * - * @param x - * @param y - * @return x plus y - */ + /** + * + * @param x + * @param y + * @return x plus y + */ public int add(int x, int y) { - return x + y; + return x + y; } /** @@ -18,9 +39,9 @@ public class SimpleMathService { * @return x minus y */ public int subtract(int x, int y) { - return x + y; + return x + y; } - + /** * * @param x @@ -28,9 +49,9 @@ public class SimpleMathService { * @return x multiply y */ public int multiply(int x, int y) { - return x * y; + return x * y; } - + /** * * @param x @@ -38,13 +59,13 @@ public class SimpleMathService { * @return a string array with size contains x */ public String[] stringArrayGenerate(String x, int size) { - String[] result = new String[size]; - for (int i = 0; i < result.length; i++) { - result[i] = x; - } - return result; + String[] result = new String[size]; + for (int i = 0; i < result.length; i++) { + result[i] = x; + } + return result; } - + /** * * @param x @@ -52,10 +73,10 @@ public class SimpleMathService { * @return an integer array with size contains x */ public int[] intArrayGenerate(int x, int size) { - int[] result = new int[size]; - for (int i = 0; i < result.length; i++) { - result[i] = x; - } - return result; + int[] result = new int[size]; + for (int i = 0; i < result.length; i++) { + result[i] = x; + } + return result; } } Modified: incubator/airavata/trunk/samples/simple_math_service/src/main/resources/services.xml URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/samples/simple_math_service/src/main/resources/services.xml?rev=1161746&r1=1161745&r2=1161746&view=diff ============================================================================== --- incubator/airavata/trunk/samples/simple_math_service/src/main/resources/services.xml (original) +++ incubator/airavata/trunk/samples/simple_math_service/src/main/resources/services.xml Thu Aug 25 20:44:05 2011 @@ -1,4 +1,4 @@ - + Provide Simple Service for Testing Purpose including addition, subtraction, multiplication, array-generator