Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 128368

Summary: PDE export ignores exluded sources
Product: [Eclipse Project] PDE Reporter: Daniel Krügler <daniel.kruegler>
Component: BuildAssignee: pde-build-inbox <pde-build-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Daniel Krügler CLA 2006-02-17 04:04:26 EST
Although the plug-in project settings allow to select sources to be excluded from the built process (These are marked in the .classpath file with the attribute
"excluding" as part of the "classpathentry" element), these settings are ignored by the PDE export process. This behaviour is very annoying for everyone responsible for the master built process of his/her product, because it can lead to failing builts which can ususally not be foreseen, because the PDE compiler does take these excluded sources into account (as it should).

(Minor note: My Eclipse version is 3.1.2, but I could not chose 3.1.2 from the
version list above - is this an oversight of the version management of the bug tracking system?)
Comment 1 Pascal Rapicault CLA 2006-02-17 08:27:52 EST
Closing as a dup of 105631. 
However note that if the files you need to exclude from the build are in the same source folder, removing the source folder from the source.<libName> property should fix the problem.


*** This bug has been marked as a duplicate of 105631 ***
Comment 2 Daniel Krügler CLA 2006-02-17 08:53:34 EST
Regrettably the mentioned workaround does not apply for our use-case, so I will
follow the development of bug #105631.
Comment 3 Pascal Rapicault CLA 2006-02-17 10:41:09 EST
The bug mentionned will not be addressed in the short term. You may want to try to use the exclude.<libName> property which will avoid the compiled classes to be copied in the final jar.
Also you might want to look at enhancing pde build to take another property indicating which files to exclude from the compilation. The code is in ModelBuildScriptGenerator.
Comment 4 Eddie Galvez CLA 2006-12-07 10:37:40 EST
I'm trying to use exclude.<library> but can you tell me what I assume is its starting folder? 

So, for example:

source.my.jar = src/

and under src say I have "src/com.badpackage", since I can't exclude it from compilation... how can I exclude the resulting classes?

exclude.my.jar = "src/com.badpackage/" ?
exclude.my.jar = "com.badpackage/" ?

something else?