Révision 3237
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/InstallAndUpdateMacrosMacro.groovy (revision 3237) | ||
|---|---|---|
| 66 | 66 |
} |
| 67 | 67 |
|
| 68 | 68 |
if (news.size() > 0 ) {
|
| 69 |
println "\n${news.join(", ")} created."
|
|
| 69 |
println "\nFiles added: ${news.join(", ")}."
|
|
| 70 | 70 |
} |
| 71 | 71 |
|
| 72 | 72 |
if (updated.size() > 0 ) {
|
| 73 |
println "\n${updated.join(", ")} updated."
|
|
| 73 |
println "\nFiles updated: ${updated.join(", ")}."
|
|
| 74 | 74 |
} |
| 75 | 75 |
|
| 76 | 76 |
if (errors.size() > 0) {
|
| 77 |
println "\n${errors.keySet().join(", ")} failed:"
|
|
| 77 |
println "\nFiles not updated: ${errors.keySet().join(", ")}:"
|
|
| 78 | 78 |
println errors.values().join("\n\t")
|
| 79 | 79 |
} |
| 80 | 80 |
|
| 81 | 81 |
def getFiles(def svnRepository, def m, def debug) {
|
| 82 |
println "get files of $m"
|
|
| 82 |
if (debug) println "Looking for files in $m"
|
|
| 83 | 83 |
def files = [] |
| 84 | 84 |
try {
|
| 85 | 85 |
|
| ... | ... | |
| 101 | 101 |
files << m |
| 102 | 102 |
} |
| 103 | 103 |
|
| 104 |
} catch(Exception e) { }
|
|
| 104 |
} catch(Exception e) {
|
|
| 105 |
println "** Warning: "+e.getMessage() |
|
| 106 |
println " For address "+svnRepository+m |
|
| 107 |
} |
|
| 105 | 108 |
|
| 106 | 109 |
return files |
| 107 | 110 |
} |
| ... | ... | |
| 113 | 116 |
} |
| 114 | 117 |
}); |
| 115 | 118 |
} |
| 119 |
|
|
Formats disponibles : Unified diff