| Summary: | [workspace] Build Path Exclusion Filter not applied | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Mo Nours Arab <monours_arab> |
| Component: | Build | Assignee: | pde-build-inbox <pde-build-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | aniefer, erik, mark.melvin |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Mo Nours Arab
The exclusion filters specified in the Project->Properities->Java Build Path are not used by the plug-in export. The value would have to be duplicated in the build.properties. I'll bite... How would I do that in build.properies? ;o) *** Bug 104156 has been marked as a duplicate of this bug. *** This is not implemented. You would have to patch ModelBuildScriptGenerator to read the exclusion list from the build.properties and generate the appropriate exclusion filter when generating the javac call. A comma separated list of the excluded file should be good enough. Marking as 3.2 in case Mark provides the patch :) Hmm...I'd love to take a crack at a patch. I'll post it if I do. Actually, it looks like it *is* implemented now that I have grokked the source. Let's say my plugin's jar file is called "plugin.jar". So, my build.properties looks something like this:
source.plugin.jar = src/
output.plugin.jar = bin/
bin.includes = plugin.xml,\
META-INF/,\
plugin.jar,\
plugin.properties
Basically we just wanted to exclude a couple files in our src folder from the final jar. As it turns out, all I had to do was simply add the following to build.properties:
exclude.plugin.jar = com/my/company/pkg/file1,\
com/my/company/pkg/file2
And they are properly excluded from the final jar file. So it looks like I don't need to come up with a patch after all. I think we could close this bug.
The result looks the same but how you get there is different: - The exclusion filter specified in the build path excludes files from the compilation, so the files are never given to the compiler - The excludes.<jarName> will cause all the code to be compiled but the resulting jar to not be copied. So I think we should not close it now. deferring to 3.3 No plan to address that for 3.3 *** This bug has been marked as a duplicate of bug 105631 *** |