tag:blogger.com,1999:blog-9099513356252812992.post7589031319759071489..comments2015-05-18T10:50:27.375+12:00Comments on Software Hero Worship: Ant Target Dependency GraphJohn Hursthttp://www.blogger.com/profile/12700400206114898455noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-9099513356252812992.post-84121247318237887912014-08-28T00:18:15.365+12:002014-08-28T00:18:15.365+12:00Hi John what version of groovy are you using?Hi John what version of groovy are you using?Smithhttps://www.blogger.com/profile/13384885552437624175noreply@blogger.comtag:blogger.com,1999:blog-9099513356252812992.post-69789091215219459992012-11-22T06:51:11.897+13:002012-11-22T06:51:11.897+13:00thank you John, I'll try to experiment with th...thank you John, I'll try to experiment with these solutions.<br />Vickivickikozelhttps://www.blogger.com/profile/04129214075903312424noreply@blogger.comtag:blogger.com,1999:blog-9099513356252812992.post-14932828103083180652012-11-21T13:03:05.042+13:002012-11-21T13:03:05.042+13:00Argh, example is supposed to read
<import file...Argh, example is supposed to read<br /><br /><import file="common-build.xml"/>John Hursthttps://www.blogger.com/profile/12700400206114898455noreply@blogger.comtag:blogger.com,1999:blog-9099513356252812992.post-33073754868870101372012-11-21T13:01:31.194+13:002012-11-21T13:01:31.194+13:00I've used it with imported scripts.
Targets ...I've used it with imported scripts. <br /><br />Targets from imported scripts get their names prefixed with the 'name' attribute from the imported script.<br /><br />So I have<br /><br /><br /><br />where common-build has name "common", and in my diagram I get nodes "common.compile", "common.test" etc.<br /><br />BTW my original version had trivial tag nesting issues with (not sure how that happened).<br /><br />More importantly, you can improve the format of the result by using quotes around the node names, using:<br /><br />target.dependencies.collect {dep -><br /> '"' + dep + '" -> "' + target + '"'<br />}.join("\n")<br /><br />John Hursthttps://www.blogger.com/profile/12700400206114898455noreply@blogger.comtag:blogger.com,1999:blog-9099513356252812992.post-26857561100096055352012-11-21T12:32:49.846+13:002012-11-21T12:32:49.846+13:00If I am not mistaken, this will work only for that...If I am not mistaken, this will work only for that build.xml to which you are adding the groovy target. How about if I have a myriad of entangled build files, a ton of imports, and a universe of dependencies? This solution would be really practical if it worked for my situation.vickikozelhttps://www.blogger.com/profile/04129214075903312424noreply@blogger.comtag:blogger.com,1999:blog-9099513356252812992.post-10591966599392377052011-05-19T11:11:56.730+12:002011-05-19T11:11:56.730+12:00If you declare the taskdef classpath and taskdef s...If you declare the taskdef classpath and taskdef separately<br />you don't have to put groovy in .ant/libGail Shttps://www.blogger.com/profile/15872083358982800493noreply@blogger.com