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
1
vote
1 answer

gant script with grails : includeTarget error

Creating a gant script to compile external module from a grails (v2.3.4) application: grails create-script compile With the header below in the code: includeTargets << grailsScript("_GrailsInit") includeTargets <<…
ludo_rj
  • 3,877
  • 1
  • 18
  • 37
1
vote
1 answer

Grails: Automating Grails Plugin Installations

Imagine that we have a grails plugin (that we're developing) and also a test app that we're using to test the grails plugin. I'm trying to test the _Install.groovy script of the plugin, but it's quite a process each time. Can anyone please recommend…
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
0
votes
2 answers

How do I run test-app from within a gant script?

I would like to execute some additional script steps after each test run. So basically, I would like to create a new script in grails which first calls the standard test-app functional:webtest -baseUrl=http://example.com afterwards runs some kind…
rdmueller
  • 10,742
  • 10
  • 69
  • 126
0
votes
1 answer

Group by many2many field in Gantt/Tree views in Odoo 13?

As I have seen in this video : https://www.youtube.com/watch?v=iD2kb51Q7xg ...the feature "Group by many2many field" in Tree- and Gantt- views is available in Odoo 15: I have already found pieces of code corresponding to this feature in…
sylvain
  • 853
  • 1
  • 7
  • 20
0
votes
1 answer

how to change project name by grails custom script

I want to write a script to change grails project's name. need to modify: .project : Vote -> NewName application.properties : app.name=AMP -> app.name=NewName could anyone show me an example or link of match doc?
atian25
  • 4,166
  • 8
  • 37
  • 60
0
votes
0 answers

Setting colors for gant-chart based on percentage values (Excel)

I created a gantt-chart in excel which contains different projects and their planned start and end dates. I want to modify this chart in the following way: there is a changing percentage value, which shows the progress of the project. Depending on…
0
votes
1 answer

Add series / data to highchart gantt from function

My series are like this: series: [{ name: 'Test', data: [{ start: Date.UTC(2017, 10, 18, 8, 20), end: Date.UTC(2017, 10, 18, 11, 30), …
Mario_P
  • 45
  • 1
  • 7
0
votes
4 answers

Regex to find pairs of strings

I have found this great gant script on http://blog.armbruster-it.de/2010/07/getting-a-list-of-all-i18n-properties-used-in-a-grails-application/ Thanks Stefan! Description: create a list of all i18n properties used in groovy code and gsp…
skurt
  • 1,019
  • 2
  • 13
  • 29
0
votes
1 answer

Use Hudson Build Parameter in Grails Build Target

I have created two Hudson String Parameters in my parametrized build configuration: svnRoot, and svnBranch. I can reference these just fine when specifying my Repository URL: ${svnRoot}/${svnBranch}/subProject. But I have not been able to reference…
Stephen Swensen
  • 22,107
  • 9
  • 81
  • 136
0
votes
1 answer

converting gant build scripts into ant scripts

I am pressmuming (without really knowing) that "gant" is superior to "ant", especially when building grails applications. I have some old, inherited, grails apps using ant. Is is possible or easy to convert existing build.xml files into gant build…
luiscolorado
  • 1,525
  • 2
  • 16
  • 23
0
votes
4 answers

Problem with Gant

I was trying Ant.echo("hello gant") but I am getting this error message: No such property: Ant for class: build Any help would be highly appreciated.
Ratn Deo--Dev
  • 1,038
  • 2
  • 15
  • 29
0
votes
1 answer

How to copy Grails 2 plugin resources to the Grails app?

I'm writing a custom Grails 2 plugin to modularize my Grails applications. In the plugin I'm planning to define basic GSPs that can be overridden by the application that will utilize the plugin. I'm thinking of writing a Grails command script that…
Psycho Punch
  • 6,418
  • 9
  • 53
  • 86
0
votes
1 answer

How to use non-interactive mode in your own Grails scripts?

I'm using Grails 2.5.0. Given a very simple Gant script like the following, which I put in grails-app/scripts/TestScript.groovy includeTargets << grailsScript("_GrailsInit") target(test: "The description of the script goes here!") { …
Philippe
  • 6,703
  • 3
  • 30
  • 50
0
votes
1 answer

How to (ignore|keep going) a gant-build in case of compile errors?

Does anybody know how I can run a gant build which ignores build errors? Something like ant and make are doing with the '-k' or '-keep-going' switch. Thx
user31157
0
votes
1 answer

Using (multi lexeme) grails targets in gant scripts

I have a gant script in my grails project. I would like to do something just like this: includeTargets << new File ( "${grailsHome}/scripts/War.groovy" ) war() But for the deploy target in the script provided by the tomcat plugin. Specifically, I…
Brandon
  • 2,900
  • 1
  • 23
  • 36