You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2011/08/25 22:44:05 UTC

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

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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--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. -->
+
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 
@@ -11,18 +24,6 @@
 
 	<url>http://incubator.apache.org/airavata/index.html</url>
 
-	<repositories>
-		<repository>
-			<name>ogce.m2.all</name>
-			<id>ogce.m2.all</id>
-			<url>http://community.ucs.indiana.edu:9090/archiva/repository/ogce.m2.all
-			</url>
-			<snapshots>
-				<updatePolicy>daily</updatePolicy>
-			</snapshots>
-		</repository>
-	</repositories>
-
 	<properties>
 		<axis2.version>1.5.4</axis2.version>
 	</properties>

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 @@
-<service name="SimpleService" >
+<service name="SimpleMathService" >
 	<Description>
 		Provide Simple Service for Testing Purpose including addition, subtraction, multiplication, array-generator
 	</Description>