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
2
votes
1 answer

In Grails 2, how do you includeTargets from Gant scripts from a plugin your app is dependent upon?

In Grails 2, I am creating a company specific authentication plugin that depends on the shiro plugin. I would like to reuse shiro's gant scripts in my plugin's gant scripts. My challenge is that I do not know how to access shiro's gant scripts in my…
1
vote
1 answer

Grails startup error message

When I start my Grails-application I get the following error: WARNING: Configurational method [checksums] in grails-app/conf/BuildConfig.groovy doesn't exist. Ignoring.. WARNING: Configurational method [inherits] in…
marko
  • 3,736
  • 6
  • 29
  • 46
1
vote
1 answer

NoClassDefFoundError GANT script on Grails

I'm trying to build some GANT script prior to my Grails Plugin. Basicly, i want to extend DefaultGrailsTemplateGenerator Class with new Class which add new method to auto generate service class by Grails Templating scheme. Suppose i've named my…
1
vote
1 answer

NoClassDefFoundError when running Gant task from within Ant script

I have an Android build script. It tries to use Gant tasks instead of Ant targets for custom work done on project. The interesting build script's part looks the following way:
user1076465
1
vote
2 answers

Grails script call my own java classes

I have just created a grails script to create database, but the code is in Java and I thought I could use that in grails script. This is my script import com.test.database.* import com.test.constant.* import org.neo4j.kernel.* target(main: "The…
toy
  • 11,711
  • 24
  • 93
  • 176
1
vote
1 answer

Groovy older version in Grails war

For some reason, 'grails war' is including in "WEB-INF/lib" the 'groovy-1.6.9.jar' and 'groovy-all-1.7.8.jar' files. I'm working with Grails 1.3.7 and when I deploy this war in Tomcat, I receive the following…
Eldelshell
  • 6,683
  • 7
  • 44
  • 63
1
vote
1 answer

Gant build scripting, how to retrieve a task that I want to execute

This is in grails, but I don't think anything specific to grails applies. I have a Gant script that looks something like this: includeTargets << grailsScript( "Init" ) includeTargets << grailsScript( "TestApp" ) target(main: "run tests with jacoco…
Troy
  • 710
  • 1
  • 10
  • 18
1
vote
2 answers

How to run Gant targets from within a Grails controller?

Suppose I have a block of Gant code: target(echo:"test"){ ant.echo(message:"hi") } setDefaultTarget("echo") This is usually run from a command line. How could I place the block in a Grails controller and run it from there?
john
  • 2,572
  • 11
  • 35
  • 51
1
vote
1 answer

Gant script cacheing causing problems

this is driving me crazy - i'm trying to 'fix' a broken plugin and its using Gant scripts. when i create a script it seems to run it - but if i create an error in a script and try and back the change out by deleting it - running the script a second…
WILLIAM WOODMAN
  • 1,185
  • 5
  • 19
  • 36
1
vote
0 answers

Grails gant script to run test cases first and then run the application but It is giving cliScriptException

I am writing a GANT script in grails to run unit test cases first and then it will run the if unit test cases passed . My Script is includeTargets << grailsScript("_GrailsInit") includeTargets << grailsScript("_GrailsSettings") includeTargets <<…
Abhimanyu
  • 705
  • 7
  • 20
1
vote
1 answer

How is Gant able to reference targets by their names, and not get a missing property exception?

In the code presented here: Gant file, there is the following code: target(dist: 'Create release artefacts') { depends(test) depends(jar) } target(run: 'Run the distributed jar') { depends(dist) Ant.java(jar:…
Geo
  • 93,257
  • 117
  • 344
  • 520
1
vote
0 answers

Execute Grails Command in BuildConfig GAnt closure

I want to execute a Grails command (grails doc) in the BuildConfig.groovy to do some stuff before the war is packaged: grails.war.resources = { stagingDir, args -> // call some ant tasks } How can I execute a Grails command in this closure?
matcauthon
  • 2,261
  • 1
  • 24
  • 41
1
vote
1 answer

Creating general purpose gant scripts

Is it possible to create gant scripts to automate generalized processes. e.g. Grails provides a default script 'create-app' to create a project using a tomcat container. Now suppose that I want to write my own script that could create projects…
Rammohan
  • 493
  • 6
  • 27
1
vote
1 answer

grails: gant does not resolve calling classes

after some refactorings, grails does not find classes from a gant script. The gant script is located in a plugin (as ZIP in /lib) and uses several groovy classes. Those classes could not be resolved by the script. I already tried: grails…
elCapitano
  • 1,821
  • 3
  • 22
  • 42
1
vote
0 answers

Ilog gantt, stop deselecting pucks on mouse down

I am trying to find a solution for stopping deselection on mouse down for ilog gantt chart... there is a method in IlvGanttSelectInteractor called mouseDown which is deselecting the pucks.. I want to deselect on mouse up.. Any suggestions would be…