How do I print the build output graph that shows the directories where my classes reside?


(Nate Stuart Davidoff) #1

Ideally I would like a task or some kind of task action that can print the list of files and where they reside in my completed war file. I am able to print out a source tree of where the files are before they get copied but that doesn’t put my mind at ease for the final output of the directory file structure.


(Luke Daley) #2

Something like this…

task showWar {
  dependsOn war
  doLast {
    zipTree(war.archivePath).visit {
      println it.path
    }
  }
}

(Nate Stuart Davidoff) #3

Luke, Thank you so much that is exactly what I needed!!!


(Luke Daley) #4

Glad that helps. Happy Gradling.