File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,11 @@ target ('default': "Installs the Grails wrapper") {
5757 new File (" ${ grailsHome} /lib/org.springsource.springloaded/springloaded-core/jars/" ). eachFileMatch( groovy.io.FileType . FILES , { it ==~ / springloaded-core-.*/ }) {
5858 springloadedFiles << it
5959 }
60- if (springloadedFiles. size() != 1 ) {
61- if (springloadedFiles. size() == 0 ) {
60+
61+ springloadedFiles = springloadedFiles. findAll { ! it. name. contains(' sources' ) && ! it. name. contains(' sources' )}
62+
63+ if (springloadedFiles. size() != 1 ) {
64+ if (springloadedFiles. size() == 0 ) {
6265 event(" StatusError" , [" An error occurred locating the springloaded-core jar file" ])
6366 } else {
6467 event(" StatusError" , [" Multiple springloaded-core jar files were found ${ springloadedFiles.absolutePath} " ])
You can’t perform that action at this time.
0 commit comments