Skip to content

Commit

Permalink
Avoid strip the bundle BR.class on Windows, fix #544
Browse files Browse the repository at this point in the history
  • Loading branch information
galenlin committed Dec 29, 2017
1 parent f01b103 commit 04f08ae
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1537,11 +1537,10 @@ class AppPlugin extends BundlePlugin {
}
// Delete classes in library which contains 'BR.class'
def bindingReferenceDirs = []
int prefixLen = javac.destinationDir.path.length() + 1
def retainedPackagePath = new File(javac.destinationDir, small.packagePath)
javac.destinationDir.eachFileRecurse(FileType.FILES, {
if (it.name == 'BR.class') {
String relativePath = it.path.substring(prefixLen)
if (!relativePath.startsWith(small.packagePath)) {
if (it.parentFile != retainedPackagePath) {
bindingReferenceDirs.add(it.parentFile)
}
}
Expand Down

0 comments on commit 04f08ae

Please sign in to comment.