[Groovy] External Process et Subversion.
Bonjour,
J'ai un script groovy que j'utilise pour mettre a jour mon repository svn.
svn add, svn move et svn up fonctionne correctement.
Cependant svn commit ne fonctionne pas.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
def useshell = { command ->
println command
def proc = command.execute()
proc.in.eachLine { line -> println line }
proc.err.eachLine{ line -> println line }
proc.waitFor()
return
}
new File("test1").mkdir()
useshell "svn add test1"
useshell "svn commit -m \" test1\" --non-interactive" |
server@myserver:~/myhome$ groovy test.groovy
svn add test1 //command 1
A test1 // reponse de svn
svn commit -m " test1" --non-interactive //command 2
Pas de reponse ici !! et le commit n'est pas execute.
Des idees ?