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
13
votes
3 answers

Gradle vs. Gant

I'm working on a Linux/Apache/MySQL/Grails application and have the choice of build tools. I'm looking at Gradle or Gant. They look very similar to me, so I'm not sure what differentiates them. What are the major differences between Gradle and…
jmq
  • 10,110
  • 16
  • 58
  • 71
12
votes
5 answers

How to debug grails command

When I run dbm-generate-changelog exception is thrown. I would like to debug this script but I can't figure how to do it. I tried to put breakpoint to the script file _DatabaseMigrationCommon.groovy and then in eclipse created new "debug…
svobol13
  • 1,842
  • 3
  • 25
  • 40
8
votes
1 answer

Where can I find a single example expressed in Ivy, Maven, Gant, and Gradle?

I'd like to find a simple, non-trivial Java project that is expressed in terms of Ant + Ivy, Maven, Gant, and Gradle. I'm not interested in each tool's varied sample demos. Where can I find such an example, for reference?
Michael Easter
  • 23,733
  • 7
  • 76
  • 107
5
votes
4 answers

one-off grails script for populating database

Update: as of Grails 1.3.6 one has access to the full domain from Gant scripts. From the Grails 1.3.6 release notes: You can now run one or more Groovy scripts from the commandline using the run-script command, e.g. grails run-script…
Hans Westerbeek
  • 5,645
  • 3
  • 34
  • 35
4
votes
2 answers

How to establish a Hibernate session within a grails script

The following grails script: // Import.groovy includeTargets << grailsScript("Bootstrap") target(main: "Import some data...") { depends(bootstrap) def Channel = grailsApp.classLoader.loadClass("content.Channel") def c // works:…
dstnbrkr
  • 4,305
  • 22
  • 23
4
votes
3 answers

How to invoke non default target in grails gant script

I have a gant script A with two targets t1 - default target t2 - another target Even when I run grails A t2 the default target is run? How can I run the non-default target? I have tried grails A --target='t2' etc. but doesn't work.
Paras
  • 804
  • 1
  • 10
  • 25
4
votes
2 answers

How can I run a Groovy class from the command-line within a Grails environment?

I'm using Grails 2.1.0, and I have a Groovy class that I've written that's not dependent on services, controllers, or any of the other Grails goodness. It uses some .jar libraries and other classes that are already in the Grails classpath. I want…
dc174548
  • 41
  • 1
  • 4
3
votes
2 answers

Merge Spring and Grails projects

We are developing an backoffice application using Spring and Maven as configuration manager. The project is moreless divided in two parts, and one of this parts is just for manage the data in the DB tables. Now someone has discovered Grails, and…
HED
  • 183
  • 4
3
votes
1 answer

How to create a CLI script for code generation, like what "grails create-controller" does

I would like to create a command line tool to generate some java source code...e.g., a controller class, service class, and a DTO class. I've been trying to find the scripts for CreateController.groovy (from grails), but I've had no luck finding…
Ron Stevenson
  • 166
  • 1
  • 13
3
votes
2 answers

Choosing a scripting/build tool

We are currently working on a project with both actionscript and Java. Up to now, we were using Ant as our main build tool, but the dumb amount of duplication it implies and the lack of flexibility (we are building a pretty large amount of small…
Axelle Ziegler
  • 2,505
  • 17
  • 19
3
votes
3 answers

Is Gant 100% Ant compatible?

I wrote some Groovy code, and I'd like to integrate it with the existing Java code. We'd like to be able to keep our ant scripts, and only add the needed Groovy functionality. Will Gant allow us to keep our existing scripts?
Geo
  • 93,257
  • 117
  • 344
  • 520
2
votes
1 answer

building project using gant and eclipse

I am looking for a solution to build java project using gant inside eclipse, i searched web but didn't find any thing. May because I am not searching in the right direction because I have no idea about gant. Actually I got all the java source and…
Waqas
  • 6,812
  • 2
  • 33
  • 50
2
votes
1 answer

Gant, Groovy scp and Ant

I'm trying to scp a directory to a remote server, but I'm getting this error. Please help Exactly one of [file|localfile|remotefile] or one or more nested filesets is required. …
toy
  • 11,711
  • 24
  • 93
  • 176
2
votes
2 answers

Executing a gant script from a grails project

I have written my own gant script which works fine from the command line. Now I need to run this script from a grails project like this: def outputMessage try{ GroovyScriptEngine engine = new GroovyScriptEngine("/www",…
Fran García
  • 2,011
  • 16
  • 24
2
votes
1 answer

Using a plugin in a Gant task with Grails

I have a gant task I wrote using: grails create-script my-script And I'm using some code from a plugin I have in my build config: compile ":csv:0.3.1" However, it isn't on the classpath when I execute my gant script. I have another dependency I'm…
chubbsondubs
  • 37,646
  • 24
  • 106
  • 138
1
2 3 4