Skip to content

Commit

Permalink
Fixed: Keep needed classpath entries in the Eclipse .classpath file
Browse files Browse the repository at this point in the history
(OFBIZ-12880)

Keeps classpath entries for config folders and dtds which are removed
from the .classpath file after it is generated by the Eclipse Gradle
task.
  • Loading branch information
Michael Brohl authored and mbrohl committed Feb 1, 2024
1 parent fb6796f commit 6a35d40
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,12 @@ eclipse.classpath.file.whenMerged { classpath ->

classpath.entries.removeAll { entry ->
// remove any "src" entries in .classpath of the form /componentName
entry.kind == 'src' && !(entry.path ==~ 'framework/base/config' || entry.path ==~ 'framework/base/dtd') && (
entry.kind == 'src' && (
entry.path ==~ '.*/+(' + componentName.tokenize(fileSep).last() + ')$' ||
entry.path ==~ /(\/+framework)$/ ||
entry.path ==~ /(\/+applications)$/ ||
entry.path ==~ /(\/+plugins)$/ ||
entry.path ==~ /(\/+themes)$/ ||
entry.path ==~ eclipseEntry + '/config' ||
entry.path ==~ eclipseEntry + '/dtd')
entry.path ==~ /(\/+themes)$/ )
}
}
}
Expand Down

0 comments on commit 6a35d40

Please sign in to comment.