Questions tagged [gant]

A Groovy-based build system that uses Ant tasks, but no XML.

Gant is Groovy Ant Scripting

Gant is a tool for scripting tasks using instead of to specify the logic. A Gant specification is a Groovy script and so can bring all the power of Groovy to bear directly, something not possible with Ant scripts. Whilst it might be seen as a competitor to Ant, Gant uses Ant tasks for many of the actions, so Gant is really an alternative way of doing things using Ant, but using a programming language rather than XML to specify the rules.

Gant isn't really a "build framework"

Gant is just a lightweight on Groovy's AntBuilder. It is just a way of scripting Ant tasks using Groovy. Gant can be used to do build tasks, but it doesn't have the integrated artifact dependency management, project lifecycle management, and multi-module/sub-project support that a fully fledged build framework should provide. on the other hand is a complete build framework based on Groovy and . If you just want to do some Ant task scripting then Gant is probably the tool you need, but for replacing Ant and as build frameworks (so as to get rid of all the XML and use Groovy), then you probably need to consider Gradle.

56 questions
0
votes
1 answer

Ivy/gant include BlazeDS jars that aren`t in a public repo and have no version

Ive been trying to figure out the best way to include the BlazeDS jars in my Gant/Ivy build. Ive been unable to find a public repo for these jars and Im new to ivy. Obviously with Maven youd just do a local maven install to your local repo. Whats…
Darran
  • 91
  • 2
  • 5
0
votes
1 answer

Using xmlProperty task with GANT

I am writing a task with gant and I am getting struggled with the task xmlProperty. I have this example xml file: bar and when I do: ant.xmlproperty(file:"myFile.xml") println…
Fran García
  • 2,011
  • 16
  • 24
0
votes
1 answer

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!"…
AdjustingForInflation
  • 1,571
  • 2
  • 26
  • 50
0
votes
1 answer

Using a Grails service inside a script

I'm trying to use a Grails service inside the following Grails script includeTargets << grailsScript("_GrailsInit") target(loadGames: "The description of the script goes here!") { def listFile = new File('list.txt') listFile.eachLine { …
spierepf
  • 2,774
  • 2
  • 30
  • 52
0
votes
1 answer

Going to append the part of text file during grails _Install task

I'm wiring grails plugin. During _Install I would like to append the part of my plugin'sConfig.groovy. The block I'd like to cut and append starts with // **** PLUGINSTART and ends with // **** PLUGINEND Curently I'm using ant.copy and…
Archer
  • 5,073
  • 8
  • 50
  • 96
0
votes
1 answer

How to overwrite grails command default script

My grails project depends on another java project, before build grails project, i want to build the java project and publish to a local ivy repository. I want to keep on using grails command line mode, so I want to overwrite the default behavior of…
Xilang
  • 1,513
  • 3
  • 18
  • 36
0
votes
1 answer

Why Gant target is executed when one of the dependency failed?

This is the content of build.gant: target('cleanCache': 'description') { ... } target('remove': 'description') { ... File app = new File("...") if (!app.exists()) { println "Error" return -1 } ... // continue if no…
jocki
  • 1,728
  • 16
  • 26
0
votes
2 answers

Why Gant does not fail on positive integer returning target?

When I have the following build.gant target(example: 'example target') { echo(message: "name : ${it.name}, description: ${it.description}") } target(alwaysFails: 'never succeed') { 27 } If I run gant alwaysFails, the build failed. But if I run…
KwonNam
  • 686
  • 1
  • 8
  • 19
0
votes
1 answer

Gant: Copy with filtering

I have a 'doc' directory containing HTML documentation and each HTML contains placeholders for the application version and the SVN revision: Welcome to the ... V${version} r${buildNumber} In my Grails/Gant build script we create a doc package for…
Jonas
  • 854
  • 13
  • 33
-1
votes
1 answer

shell script to groovy script using gant

I have written a shell script with commands like: version=$1; sed -i 's/def version = ".*"/def version = "'$version'"/' $file; grails package-plugin; echo -n 'Enter description of new version: '; read desc; git commit -m "$desc"; I want to…
sivareddy963
  • 143
  • 1
  • 11
-2
votes
1 answer

How to add Root Node to the Tree Panel in extjs 4 mvc

I am having the tree with all my task which gets all the data from the database and i am able to display the data in the treeview panel. Now I want to add Root node dynamically. ie. user when clicks the Add New Root Node button, I am able to create…
yaryan997
  • 483
  • 3
  • 10
  • 18
1 2 3
4