Skip to content

Commit 9521a70

Browse files
author
graeme
committed
updated to add plugin.xml if it doesn't exist
git-svn-id: https://svn.codehaus.org/grails/trunk@4534 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent a3bc738 commit 9521a70

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

scripts/ReleasePlugin.groovy

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,21 @@ task(releasePlugin: "The implementation task") {
7676

7777
task(checkInPluginZip:"Checks in the plug-in zip if it has not been checked in already") {
7878
def statusClient = new SVNStatusClient((ISVNAuthenticationManager)authManager,null)
79+
def wcClient = new SVNWCClient((ISVNAuthenticationManager)authManager,null)
80+
def pluginFile = new File(pluginZip)
7981
try {
80-
statusClient.doStatus(pluginZip, true)
82+
statusClient.doStatus(pluginFile, true)
8183
}
8284
catch(SVNException) {
83-
if(!message) askForMessage()
8485
// not checked in add and commit
85-
def wcClient = new SVNWCClient((ISVNAuthenticationManager)authManager,null)
86-
def pluginFile = new File(pluginZip)
8786
wcClient.doAdd(pluginFile,true,false,false,false)
87+
}
88+
def pluginXml = new File("${basedir}/plugin.xml")
89+
try {
90+
statusClient.doStatus(pluginXml, true)
91+
}
92+
catch(SVNException e) {
93+
wcClient.doAdd(pluginXml, true, false,false,false)
8894
}
8995
}
9096
task(updateAndCommitLatest:"Commits the latest revision of the Plug-in") {

0 commit comments

Comments
 (0)