Groovy for Domain-specific Languages - Second Edition
Introduction to DSLs and Groovy [ 18 ] first_name 'Fergal' surname 'Dearle' } title 'Groovy for DSL' } This will output the foll ...
Chapter 1 [ 19 ] Summary So, now we have a feel for DSLs and Groovy. We have seen how DSLs can be used in place of general-purpo ...
http://www.ebook3000.com ...
[ 21 ] Groovy Quick Start In this chapter, we will jump straight into getting you up and running with the language on your compu ...
Groovy Quick Start [ 22 ] GVM is the ideal tool for maintaining parallel versions of the various tools in the Groovy ecosystem. ...
Chapter 2 [ 23 ] If you are the latter, then GVM has got to be your best reason yet for giving Cygwin a spin. You can install Cy ...
Groovy Quick Start [ 24 ] Add the Groovy bin directory to your PATH. This will be %GROOVY_HOME%\bin (Windows) or $GROOVY_HOME/b ...
Chapter 2 [ 25 ] The Groovy script engine – groovy Let's start by writing a Groovy version of the ubiquitous Hello World program ...
Groovy Quick Start [ 26 ] We already know that Groovy is a language built on top of the JVM and that it runs as Java bytecode. S ...
Chapter 2 [ 27 ] You can try this script against any running Java application. Just add the following switches to the Java start ...
Groovy Quick Start [ 28 ] The Groovy shell – groovysh The Groovy shell is a useful command-line tool for trying out snippets of ...
Chapter 2 [ 29 ] The load command allows scripts to be loaded into groovysh from a file. However, some limitations of the Groovy ...
Groovy Quick Start [ 30 ] This launches the following Groovy console: In the preceding GroovyConsole, we are trying out a handy ...
Chapter 2 [ 31 ] The Groovy compiler – groovyc Using the Groovy script engine, we can execute Groovy scripts from the command li ...
Groovy Quick Start [ 32 ] Eclipse Eclipse was the first Java IDE to have Groovy support integrated through the Groovy-Eclipse pl ...
[ 33 ] Essential Groovy DSLs It's tempting at this point in the book to dive into the Groovy language. Instead in this chapter w ...
Essential Groovy DSLs [ 34 ] If you already have Gradle installed with a different version you can switch versions as follows: $ ...
Chapter 3 [ 35 ] Gradle tasks As we saw previously, Gradle tasks are the building blocks of a Gradle build. We can define as man ...
Essential Groovy DSLs [ 36 ] If we add multiple doFirst and doLast actions in a task, Gradle gives us what seem to be illogical ...
Chapter 3 [ 37 ] The << operator is synonymous with doLast, so we can use it over again in the build script to add actions ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf