Skip to content
Browse files

Add license info in plain text files and update sample logic not to p…

…rocess comments.

git-svn-id: https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk@1151507 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 47e3358 commit 8508a39ff68fdb75b1b5e60c72761b542d7776fa Florian Moga committed
View
8 ...plete-webapp/src/main/java/org/apache/tuscany/sca/sample/comet/CountryRepositoryImpl.java
@@ -53,9 +53,11 @@ public void start() {
.getResourceAsStream(fileName)));
String line;
while ((line = reader.readLine()) != null) {
- Country c = new Country();
- c.setName(line);
- countries.add(c);
+ if (!line.startsWith("#")) {
+ Country c = new Country();
+ c.setName(line);
+ countries.add(c);
+ }
}
} catch (FileNotFoundException e) {
e.printStackTrace();
View
16 samples/learning-more/binding-comet/autocomplete-webapp/src/main/resources/countries.txt
@@ -1,3 +1,19 @@
+# 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.
Afghanistan
Albania
Algeria
View
8 ...ore/binding-websocket/autocomplete-webapp/src/main/java/sample/CountryRepositoryImpl.java
@@ -53,9 +53,11 @@ public void start() {
.getResourceAsStream(fileName)));
String line;
while ((line = reader.readLine()) != null) {
- Country c = new Country();
- c.setName(line);
- countries.add(c);
+ if (!line.startsWith("#")) {
+ Country c = new Country();
+ c.setName(line);
+ countries.add(c);
+ }
}
} catch (FileNotFoundException e) {
e.printStackTrace();
View
16 samples/learning-more/binding-websocket/autocomplete-webapp/src/main/resources/countries.txt
@@ -1,3 +1,19 @@
+# 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.
Afghanistan
Albania
Algeria

0 comments on commit 8508a39

Please sign in to comment.
Something went wrong with that request. Please try again.