Skip to content

Commit 0df19ad

Browse files
committed
fix for GRAILS-5759 "ReleasePlugin.groovy error when publishing plugin in local repository"
1 parent efdcfd0 commit 0df19ad

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

scripts/ReleasePlugin.groovy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,12 @@ target(modifyOrCreatePluginList:"Updates the remote plugin.xml descriptor or cre
232232
withPluginListUpdate {
233233
ant.delete(file:pluginsListFile)
234234
// get newest version of plugin list
235-
fetchRemoteFile("${pluginSVN}/.plugin-meta/plugins-list.xml", pluginsListFile)
235+
try{
236+
fetchRemoteFile("${pluginSVN}/.plugin-meta/plugins-list.xml", pluginsListFile)
237+
}(Exception e){
238+
println "Error reading remote plugin list [${e.message}], building locally..."
239+
updatePluginsListManually()
240+
}
236241

237242
def remoteRevision = "0"
238243
if (shouldUseSVNProtocol(pluginDistURL)) {

scripts/_PluginDependencies.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,9 +1458,9 @@ def fetchRemote(url, closure) {
14581458
// determine if the file exists
14591459
SVNNodeKind nodeKind = repo.checkPath(file , -1)
14601460
if (nodeKind == SVNNodeKind.NONE) {
1461-
throw new Exception("The file does not exist.")
1461+
throw new Exception("The file does not exist.: " + url)
14621462
} else if (nodeKind != SVNNodeKind.FILE) {
1463-
throw new Exception("Error not a file..")
1463+
throw new Exception("Error not a file..: " + url)
14641464
}
14651465
// present w/ file etc for repo extraction
14661466
closure.call(repo, file)

0 commit comments

Comments
 (0)