You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by pa...@apache.org on 2015/06/09 22:50:51 UTC
[1/2] incubator-groovy git commit: Add Apache license header because
Apache Rat requires it
Repository: incubator-groovy
Updated Branches:
refs/heads/GROOVY_2_4_X d2e614e3f -> 84eb44997
Add Apache license header because Apache Rat requires it
Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/84eb4499
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/84eb4499
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/84eb4499
Branch: refs/heads/GROOVY_2_4_X
Commit: 84eb449977a1c3a2d2f7ba516316264f1c140d95
Parents: 6591a1f
Author: pascalschumacher <pa...@gmx.net>
Authored: Tue Jun 9 22:41:15 2015 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Tue Jun 9 22:49:40 2015 +0200
----------------------------------------------------------------------
.../main/resources/groovy/ui/icons/credits.txt | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/84eb4499/subprojects/groovy-console/src/main/resources/groovy/ui/icons/credits.txt
----------------------------------------------------------------------
diff --git a/subprojects/groovy-console/src/main/resources/groovy/ui/icons/credits.txt b/subprojects/groovy-console/src/main/resources/groovy/ui/icons/credits.txt
index 3933e7e..118978e 100644
--- a/subprojects/groovy-console/src/main/resources/groovy/ui/icons/credits.txt
+++ b/subprojects/groovy-console/src/main/resources/groovy/ui/icons/credits.txt
@@ -1,3 +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.
+ */
+
These icons are from the famfamfam.com silk icons set
http://www.famfamfam.com/lab/icons/silk/
[2/2] incubator-groovy git commit: inline testdata because otherwise
we would have to add a Apache license header to the testdata file
Posted by pa...@apache.org.
inline testdata because otherwise we would have to add a Apache license header to the testdata file
Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/6591a1f8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/6591a1f8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/6591a1f8
Branch: refs/heads/GROOVY_2_4_X
Commit: 6591a1f8c7c7c15f4168a8cbe8ec19ffbbcbac12
Parents: d2e614e
Author: pascalschumacher <pa...@gmx.net>
Authored: Tue Jun 9 22:43:11 2015 +0200
Committer: pascalschumacher <pa...@gmx.net>
Committed: Tue Jun 9 22:49:40 2015 +0200
----------------------------------------------------------------------
src/test/groovy/io/LineColumnReaderTest.groovy | 52 ++++++++++++++++++++-
src/test/groovy/io/sample-text-file.txt | 49 -------------------
2 files changed, 51 insertions(+), 50 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/6591a1f8/src/test/groovy/io/LineColumnReaderTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/io/LineColumnReaderTest.groovy b/src/test/groovy/io/LineColumnReaderTest.groovy
index 9e46a4d..56c0793 100644
--- a/src/test/groovy/io/LineColumnReaderTest.groovy
+++ b/src/test/groovy/io/LineColumnReaderTest.groovy
@@ -25,7 +25,57 @@ import java.nio.CharBuffer
*/
class LineColumnReaderTest extends GroovyTestCase {
- def reader = new LineColumnReader(new FileReader(new File('src/test/groovy/io/sample-text-file.txt')))
+ String text = '''L'invitation au voyage
+
+Mon enfant, ma soeur,
+Songe à la douceur
+D'aller là-bas vivre ensemble !
+Aimer à loisir,
+Aimer et mourir
+Au pays qui te ressemble !
+Les soleils mouillés
+De ces ciels brouillés
+Pour mon esprit ont les charmes
+Si mystérieux
+De tes traîtres yeux,
+Brillant à travers leurs larmes.
+
+Là, tout n'est qu'ordre et beauté,
+Luxe, calme et volupté.
+
+Des meubles luisants,
+Polis par les ans,
+Décoreraient notre chambre ;
+Les plus rares fleurs
+Mêlant leurs odeurs
+Aux vagues senteurs de l'ambre,
+Les riches plafonds,
+Les miroirs profonds,
+La splendeur orientale,
+Tout y parlerait
+À l'âme en secret
+Sa douce langue natale.
+
+Là, tout n'est qu'ordre et beauté,
+Luxe, calme et volupté.
+
+Vois sur ces canaux
+Dormir ces vaisseaux
+Dont l'humeur est vagabonde ;
+C'est pour assouvir
+Ton moindre désir
+Qu'ils viennent du bout du monde.
+- Les soleils couchants
+Revêtent les champs,
+Les canaux, la ville entière,
+D'hyacinthe et d'or ;
+Le monde s'endort
+Dans une chaude lumière.
+
+Là, tout n'est qu'ordre et beauté,
+Luxe, calme et volupté.'''
+
+ def reader = new LineColumnReader(new StringReader(text))
void testReadLine() {
reader.withReader { LineColumnReader r ->
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/6591a1f8/src/test/groovy/io/sample-text-file.txt
----------------------------------------------------------------------
diff --git a/src/test/groovy/io/sample-text-file.txt b/src/test/groovy/io/sample-text-file.txt
deleted file mode 100644
index e662db2..0000000
--- a/src/test/groovy/io/sample-text-file.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-L'invitation au voyage
-
-Mon enfant, ma soeur,
-Songe à la douceur
-D'aller là-bas vivre ensemble !
-Aimer à loisir,
-Aimer et mourir
-Au pays qui te ressemble !
-Les soleils mouillés
-De ces ciels brouillés
-Pour mon esprit ont les charmes
-Si mystérieux
-De tes traîtres yeux,
-Brillant à travers leurs larmes.
-
-Là, tout n'est qu'ordre et beauté,
-Luxe, calme et volupté.
-
-Des meubles luisants,
-Polis par les ans,
-Décoreraient notre chambre ;
-Les plus rares fleurs
-Mêlant leurs odeurs
-Aux vagues senteurs de l'ambre,
-Les riches plafonds,
-Les miroirs profonds,
-La splendeur orientale,
-Tout y parlerait
-À l'âme en secret
-Sa douce langue natale.
-
-Là, tout n'est qu'ordre et beauté,
-Luxe, calme et volupté.
-
-Vois sur ces canaux
-Dormir ces vaisseaux
-Dont l'humeur est vagabonde ;
-C'est pour assouvir
-Ton moindre désir
-Qu'ils viennent du bout du monde.
-- Les soleils couchants
-Revêtent les champs,
-Les canaux, la ville entière,
-D'hyacinthe et d'or ;
-Le monde s'endort
-Dans une chaude lumière.
-
-Là, tout n'est qu'ordre et beauté,
-Luxe, calme et volupté.
\ No newline at end of file