AdjustingForInflation
AdjustingForInflation

Reputation: 1611

Gant by example

I am trying to get a simple "Hello, Gant!" Gant build up and running. I just downloaded & extracted the 1.9.10-Groovy-2.0.0 version and am trying to create a build that defines a single greet task. When greet executes, it prints a "Hello, Gant!" message to STDOUT.

Specific questions:

Upvotes: 0

Views: 591

Answers (1)

Michael Easter
Michael Easter

Reputation: 24468

re: install. Yes, the install is typical. Define GANT_HOME and place GANT_HOME/bin in PATH

The typical Gant build file is build.gant. Here is an example that is not the default:

$ cat HelloGant.groovy 

target ('greet' : 'greet') {
    println "hi there"
}

Here is an example execution:

$ gant -f HelloGant.groovy greet
greet:
hi there
------ greet

BUILD SUCCESSFUL
Total time: 1.52 seconds

Upvotes: 1

Related Questions