groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject incubator-groovy git commit: Documentation: Do not show license header of example classes
Date Tue, 09 Jun 2015 19:41:42 GMT
Repository: incubator-groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 11f1e8891 -> d2e614e3f


Documentation: Do not show license header of example classes


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/d2e614e3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/d2e614e3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/d2e614e3

Branch: refs/heads/GROOVY_2_4_X
Commit: d2e614e3faf33317cb8d514ee190d4e65431902f
Parents: 11f1e88
Author: pascalschumacher <pascalschumacher@gmx.net>
Authored: Tue Jun 9 21:40:25 2015 +0200
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Tue Jun 9 21:41:14 2015 +0200

----------------------------------------------------------------------
 src/spec/doc/guide-integrating.adoc                  | 10 +++++-----
 src/spec/test-resources/reloading/dependency1.groovy |  4 +++-
 src/spec/test-resources/reloading/dependency2.groovy |  4 +++-
 src/spec/test-resources/reloading/source1.groovy     |  2 ++
 src/spec/test-resources/reloading/source2.groovy     |  5 +++--
 src/spec/test-resources/reloading/source3.groovy     |  4 +++-
 6 files changed, 19 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d2e614e3/src/spec/doc/guide-integrating.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/guide-integrating.adoc b/src/spec/doc/guide-integrating.adoc
index 312c26e..5e68534 100644
--- a/src/spec/doc/guide-integrating.adoc
+++ b/src/spec/doc/guide-integrating.adoc
@@ -211,7 +211,7 @@ a directory with the following script inside:
 [source,groovy]
 .ReloadingTest.groovy
 ----
-include::{projectdir}/src/spec/test-resources/reloading/source1.groovy[]
+include::{projectdir}/src/spec/test-resources/reloading/source1.groovy[tags=greeter,indent=0]
 ----
 
 then you can execute this code using a `GroovyScriptEngine`:
@@ -241,7 +241,7 @@ Hello, world!
 [source,groovy]
 .ReloadingTest.groovy
 ----
-include::{projectdir}/src/spec/test-resources/reloading/source2.groovy[]
+include::{projectdir}/src/spec/test-resources/reloading/source2.groovy[tags=greeter,indent=0]
 ----
 
 And the message should change to:
@@ -260,7 +260,7 @@ the same directory, without interrupting the executing script:
 [source,groovy]
 .Depencency.groovy
 ----
-include::{projectdir}/src/spec/test-resources/reloading/dependency1.groovy[]
+include::{projectdir}/src/spec/test-resources/reloading/dependency1.groovy[tags=dependency,indent=0]
 ----
 
 and update the `ReloadingTest` script like this:
@@ -268,7 +268,7 @@ and update the `ReloadingTest` script like this:
 [source,groovy]
 .ReloadingTest.groovy
 ----
-include::{projectdir}/src/spec/test-resources/reloading/source3.groovy[]
+include::{projectdir}/src/spec/test-resources/reloading/source3.groovy[tags=greeter,indent=0]
 ----
 
 And this time, the message should change to:
@@ -286,7 +286,7 @@ And as a last test, you can update the `Dependency.groovy` file without
touching
 [source,groovy]
 .Depencency.groovy
 ----
-include::{projectdir}/src/spec/test-resources/reloading/dependency2.groovy[]
+include::{projectdir}/src/spec/test-resources/reloading/dependency2.groovy[tags=dependency,indent=0]
 ----
 
 And you should observe that the dependent file was reloaded:

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d2e614e3/src/spec/test-resources/reloading/dependency1.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test-resources/reloading/dependency1.groovy b/src/spec/test-resources/reloading/dependency1.groovy
index b34eefb..cd0697e 100644
--- a/src/spec/test-resources/reloading/dependency1.groovy
+++ b/src/spec/test-resources/reloading/dependency1.groovy
@@ -16,6 +16,8 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
+// tag::dependency[]
 class Dependency {
     String message = 'Hello, dependency 1'
-}
\ No newline at end of file
+}
+// end::dependency[]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d2e614e3/src/spec/test-resources/reloading/dependency2.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test-resources/reloading/dependency2.groovy b/src/spec/test-resources/reloading/dependency2.groovy
index d5a21d5..b39ad57 100644
--- a/src/spec/test-resources/reloading/dependency2.groovy
+++ b/src/spec/test-resources/reloading/dependency2.groovy
@@ -16,6 +16,8 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
+// tag::dependency[]
 class Dependency {
     String message = 'Hello, dependency 2'
-}
\ No newline at end of file
+}
+// end::dependency[]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d2e614e3/src/spec/test-resources/reloading/source1.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test-resources/reloading/source1.groovy b/src/spec/test-resources/reloading/source1.groovy
index 0fbdbfd..ff651ed 100644
--- a/src/spec/test-resources/reloading/source1.groovy
+++ b/src/spec/test-resources/reloading/source1.groovy
@@ -16,6 +16,7 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
+// tag::greeter[]
 class Greeter {
     String sayHello() {
         def greet = "Hello, world!"
@@ -24,3 +25,4 @@ class Greeter {
 }
 
 new Greeter()
+// end::greeter[]

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d2e614e3/src/spec/test-resources/reloading/source2.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test-resources/reloading/source2.groovy b/src/spec/test-resources/reloading/source2.groovy
index 5411ea6..4788b56 100644
--- a/src/spec/test-resources/reloading/source2.groovy
+++ b/src/spec/test-resources/reloading/source2.groovy
@@ -16,6 +16,7 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
+// tag::greeter[]
 class Greeter {
     String sayHello() {
         def greet = "Hello, Groovy!"
@@ -23,5 +24,5 @@ class Greeter {
     }
 }
 
-
-new Greeter()
\ No newline at end of file
+new Greeter()
+// end::greeter[]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/d2e614e3/src/spec/test-resources/reloading/source3.groovy
----------------------------------------------------------------------
diff --git a/src/spec/test-resources/reloading/source3.groovy b/src/spec/test-resources/reloading/source3.groovy
index 42121f0..2c8def7 100644
--- a/src/spec/test-resources/reloading/source3.groovy
+++ b/src/spec/test-resources/reloading/source3.groovy
@@ -16,6 +16,7 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
+// tag::greeter[]
 import Dependency
 
 class Greeter {
@@ -25,4 +26,5 @@ class Greeter {
     }
 }
 
-new Greeter()
\ No newline at end of file
+new Greeter()
+// end::greeter[]
\ No newline at end of file


Mime
View raw message