Skip to content

Commit

Permalink
upgraded _Events script, it should be able to handle a non-existant p…
Browse files Browse the repository at this point in the history
…lugin dir
  • Loading branch information
aalmiray committed Jul 13, 2010
1 parent ddb6a59 commit 78918dd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/_Events.groovy
Expand Up @@ -19,7 +19,12 @@
*/

eventCopyLibsEnd = { jardir ->
ant.fileset(dir:"${getPluginDirForName('swingxtras-builder').file}/lib/", includes:"*.jar").each {
griffonCopyDist(it.toString(), jardir)
if (!isPluginProject) {
def pluginDir = getPluginDirForName('swingxtras-builder')
if(pluginDir?.file?.exists()) {
ant.fileset(dir: "${pluginDir.file}/lib/", includes: '*.jar').each {
griffonCopyDist(it.toString(), jardir)
}
}
}
}

0 comments on commit 78918dd

Please sign in to comment.