Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. task copyPackage1(type: Copy) {
  2. from buildPackage1
  3. into "/pkgs/"
  4. eachFile {
  5. if (it.relativePath.getFile(destinationDir).exists()) {
  6. throw new GradleException("Probably version was no updated. File exists: " + it)
  7. }
  8. }
  9. }
  10. ...
  11. task copyPackage2(type: Copy) {
  12. from buildPackage2
  13. into "/pkgs/"
  14. eachFile {
  15. if (it.relativePath.getFile(destinationDir).exists()) {
  16. throw new GradleException("Probably version was no updated. File exists: " + it)
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement