Skip to content

Commit

Permalink
If no servers are active in the war, delete all the libs
Browse files Browse the repository at this point in the history
  • Loading branch information
ldaley committed Jun 16, 2009
1 parent 97b7309 commit 04d168b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/_Events.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ eventCreateWarStart = { warName, stagingDir ->
fileset(dir:"${basedir}/grails-app/ldap-servers", includes:"${ldapServer.key}/**")
}
}
} else {
def libs = new File(ldapServerPluginDir, "lib")
libs.eachFile { file ->
ant.delete(file: "$stagingDir/WEB-INF/lib/${file.name}")
}
}

}
Expand Down

0 comments on commit 04d168b

Please sign in to comment.