Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'java'
- def antBuild = ant.import(file: file('build.xml'), optional: false)
- def antProject = antBuild.project
- def antTargets = antProject.targets
- antTargets.each { targetName, target ->
- task "ant.$targetName" {
- group = 'ant'
- doLast {
- target.execute()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement