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.
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.
I'm not sure if there's a proper way to do it, but you can write a second script ("T2.groovy") that loads this one and sets that target as its default, e.g.
includeTargets << new File("path/to/YourScript")
setDefaultTarget("t2")