Advertisement
Guest User

Untitled

a guest
Apr 17th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.33 KB | None | 0 0
  1. String fileContents = new File('D:\\Script\\src\\d3def1d592b243029b9ee42b.xml').text
  2. def Violations = new XmlSlurper().parseText(fileContents)
  3. println Violations.Violation.@'OBJ_SIZE'
  4. if ('OBJ_SIZE'==1){
  5.     def file = new File('D:/Directory1')
  6.     file.mkdir()
  7. } else {def file = new File('D:/Directory2')
  8.     file.mkdir()
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement