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

Bug 330465

Summary: Warning for missing localization or manifest includes in build.properties have unclear messages
Product: [Eclipse Project] PDE Reporter: Michael Rennie <Michael_Rennie>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: aniefer, curtis.windatt.public
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Michael Rennie CLA 2010-11-17 10:46:36 EST
I20101116-0800

After a full build of my workspace today I noticed two warnings on the build.properties for one of my bundles (they could have been there before and I might have not noticed):

An entry for OSGI-INF/ is required in bin.includes	
An entry for OSGI-INF/l10n/ is required in bin.includes	

This is what the build.properties currently looks like:

source.. = src/
output.. = bin/
bin.includes = META-INF/,\
               .,\
               about.html,\
               OSGI-INF/l10n/bundle.properties
src.includes = about.html

This is what the manifest.mf looks like (in case it helps):

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-Vendor: %providerName
Bundle-SymbolicName: org.eclipse.wst.jsdt.debug.rhino.debugger
Bundle-Version: 1.0.100.qualifier
Bundle-RequiredExecutionEnvironment: J2SE-1.4
Export-Package: org.eclipse.wst.jsdt.debug.internal.rhino.debugger;x-internal:=true,
 org.eclipse.wst.jsdt.debug.internal.rhino.transport;x-friends:="org.eclipse.wst.jsdt.debug.rhino",
 org.eclipse.wst.jsdt.debug.rhino.debugger,
 org.eclipse.wst.jsdt.debug.rhino.debugger.shell
Import-Package: org.mozilla.javascript;resolution:=optional,
 org.mozilla.javascript.debug;resolution:=optional,
 org.mozilla.javascript.tools;resolution:=optional,
 org.mozilla.javascript.tools.shell;resolution:=optional
Require-Bundle: org.eclipse.wst.jsdt.debug.transport;bundle-version="1.0.0"

I would assume there should be no warnings reported as the build.properties currently includes the OSGI-INF/l10n/bundle.properties entry.
Comment 1 Curtis Windatt CLA 2010-11-17 10:50:22 EST
Andrew, to include a file in build.properties do you need to include it's parent directories?

The quick fix has been around for at least a little while, but to me it seems like a bad assumption.  If the user only wants to include a specific file, adding the parent directories would include more than intended.
Comment 2 Andrew Niefer CLA 2010-11-17 11:14:17 EST
(In reply to comment #1)
> Andrew, to include a file in build.properties do you need to include it's
> parent directories?
> 
> The quick fix has been around for at least a little while, but to me it seems
> like a bad assumption.  If the user only wants to include a specific file,
> adding the parent directories would include more than intended.

You are right, You don't need the parent directories since as you say, you may only want one file from that directory.
Comment 3 Curtis Windatt CLA 2010-11-17 15:21:06 EST
This bug is a feature.  We explicitly check that the manifest folder, osgi folder, fragment/plugin.xml and localization files are included in the build.properties.

We could try and do some better processing here, provide specific messages about why we are suggesting that the folder should be included.  We could also remove the redundant file includes if the quick fix to add the parent directory is used.  It would be appropriate to have more granular control over these warnings as including the folders is a recommended practice, not required.
Comment 4 Eclipse Genie CLA 2019-09-16 12:36:13 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.