Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 92106 Details for
Bug 221998
Ensure that OSGi-INF is included in build.properties
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
org.eclipse.pde.core.patch
pde.patch (text/plain), 6.61 KB, created by
Chris Aniszczyk
on 2008-03-10 21:13:22 EDT
(
hide
)
Description:
org.eclipse.pde.core.patch
Filename:
MIME Type:
Creator:
Chris Aniszczyk
Created:
2008-03-10 21:13:22 EDT
Size:
6.61 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.pde.core >Index: src/org/eclipse/pde/internal/core/ICoreConstants.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/ICoreConstants.java,v >retrieving revision 1.63 >diff -u -r1.63 ICoreConstants.java >--- src/org/eclipse/pde/internal/core/ICoreConstants.java 12 Feb 2008 15:48:22 -0000 1.63 >+++ src/org/eclipse/pde/internal/core/ICoreConstants.java 11 Mar 2008 01:12:33 -0000 >@@ -129,11 +129,16 @@ > public static final String[] EE_TOKENS = new String[] {"wassim", "zx", "bbauman", "cherie", "jlb" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ > }; > >+ // Common folder names >+ public static String MANIFEST_FOLDER_NAME = "META-INF/"; //$NON-NLS-1$ >+ public static String OSGI_INF_FOLDER_NAME = "OSGI-INF/"; //$NON-NLS-1$ >+ > // Common paths >- public static IPath MANIFEST_PATH = new Path("META-INF/MANIFEST.MF"); //$NON-NLS-1$ >- public static IPath PLUGIN_PATH = new Path("plugin.xml"); //$NON-NLS-1$ >- public static IPath FRAGMENT_PATH = new Path("fragment.xml"); //$NON-NLS-1$ >- public static IPath FEATURE_PATH = new Path("feature.xml"); //$NON-NLS-1$ >- public static IPath BUILD_PROPERTIES_PATH = new Path("build.properties"); //$NON-NLS-1$ >+ public static IPath MANIFEST_PATH = new Path(BUNDLE_FILENAME_DESCRIPTOR); >+ public static IPath PLUGIN_PATH = new Path(PLUGIN_FILENAME_DESCRIPTOR); >+ public static IPath FRAGMENT_PATH = new Path(FRAGMENT_FILENAME_DESCRIPTOR); >+ public static IPath FEATURE_PATH = new Path(FEATURE_FILENAME_DESCRIPTOR); >+ public static IPath BUILD_PROPERTIES_PATH = new Path(BUILD_FILENAME_DESCRIPTOR); >+ public static IPath OSGI_INF_PATH = new Path(OSGI_INF_FOLDER_NAME); > > } >Index: src/org/eclipse/pde/internal/core/builders/BuildErrorReporter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders/BuildErrorReporter.java,v >retrieving revision 1.33 >diff -u -r1.33 BuildErrorReporter.java >--- src/org/eclipse/pde/internal/core/builders/BuildErrorReporter.java 2 Jan 2008 15:56:21 -0000 1.33 >+++ src/org/eclipse/pde/internal/core/builders/BuildErrorReporter.java 11 Mar 2008 01:12:33 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2005, 2007 IBM Corporation and others. >+ * Copyright (c) 2005, 2008 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -8,6 +8,7 @@ > * Contributors: > * IBM Corporation - initial API and implementation > * Brock Janiczak <brockj@tpg.com.au> - bug 191545 >+ * Jacek Pospychala <jacek.pospychala@pl.ibm.com> - bug 221998 > *******************************************************************************/ > package org.eclipse.pde.internal.core.builders; > >@@ -16,39 +17,20 @@ > import java.util.ArrayList; > import java.util.regex.Matcher; > import java.util.regex.Pattern; >- >-import org.eclipse.core.resources.IFile; >-import org.eclipse.core.resources.IFolder; >-import org.eclipse.core.resources.IMarker; >-import org.eclipse.core.resources.IProject; >-import org.eclipse.core.resources.IResource; >-import org.eclipse.core.runtime.CoreException; >-import org.eclipse.core.runtime.IPath; >-import org.eclipse.core.runtime.IProgressMonitor; >-import org.eclipse.core.runtime.Path; >-import org.eclipse.jdt.core.IClasspathEntry; >-import org.eclipse.jdt.core.IJavaProject; >-import org.eclipse.jdt.core.JavaCore; >-import org.eclipse.jdt.core.JavaModelException; >+import org.eclipse.core.resources.*; >+import org.eclipse.core.runtime.*; >+import org.eclipse.jdt.core.*; > import org.eclipse.jface.text.BadLocationException; > import org.eclipse.jface.text.IDocument; > import org.eclipse.osgi.service.resolver.BundleDescription; > import org.eclipse.osgi.util.NLS; > import org.eclipse.pde.core.build.IBuild; > import org.eclipse.pde.core.build.IBuildEntry; >-import org.eclipse.pde.core.plugin.IPluginLibrary; >-import org.eclipse.pde.core.plugin.IPluginModelBase; >-import org.eclipse.pde.core.plugin.PluginRegistry; >+import org.eclipse.pde.core.plugin.*; > import org.eclipse.pde.internal.build.IBuildPropertiesConstants; >-import org.eclipse.pde.internal.core.ClasspathUtilCore; >-import org.eclipse.pde.internal.core.ICoreConstants; >-import org.eclipse.pde.internal.core.PDECore; >-import org.eclipse.pde.internal.core.PDECoreMessages; >+import org.eclipse.pde.internal.core.*; > import org.eclipse.pde.internal.core.build.WorkspaceBuildModel; >-import org.eclipse.pde.internal.core.ibundle.IBundleFragmentModel; >-import org.eclipse.pde.internal.core.ibundle.IBundleModel; >-import org.eclipse.pde.internal.core.ibundle.IBundlePluginModelBase; >-import org.eclipse.pde.internal.core.ibundle.IManifestHeader; >+import org.eclipse.pde.internal.core.ibundle.*; > import org.eclipse.pde.internal.core.text.build.BuildEntry; > import org.eclipse.pde.internal.core.text.build.BuildModel; > import org.eclipse.pde.internal.core.util.CoreUtility; >@@ -207,20 +189,28 @@ > private void validateBinIncludes(IBuildEntry binIncludes) { > // make sure we have a manifest entry > if (fProject.exists(ICoreConstants.MANIFEST_PATH)) { >- String key = "META-INF/"; //$NON-NLS-1$ >- validateBinIncludes(binIncludes, key); >+ validateBinIncludes(binIncludes, ICoreConstants.MANIFEST_FOLDER_NAME); >+ } >+ >+ // if we have an OSGI_INF/ directory, let's do some validation >+ if (fProject.exists(ICoreConstants.OSGI_INF_PATH)) { >+ try { >+ IFolder folder = fProject.getFolder(ICoreConstants.OSGI_INF_PATH); >+ if (folder.members().length > 0) { // only validate if we have something in it >+ validateBinIncludes(binIncludes, ICoreConstants.OSGI_INF_FOLDER_NAME); >+ } >+ } catch (CoreException e) { // do nothing >+ } > } > > // make sure if we're a fragment, we have a fragment.xml entry > if (fProject.exists(ICoreConstants.FRAGMENT_PATH)) { >- String key = "fragment.xml"; //$NON-NLS-1$ >- validateBinIncludes(binIncludes, key); >+ validateBinIncludes(binIncludes, ICoreConstants.FRAGMENT_FILENAME_DESCRIPTOR); > } > > // make sure if we're a plugin, we have a plugin.xml entry > if (fProject.exists(ICoreConstants.PLUGIN_PATH)) { >- String key = "plugin.xml"; //$NON-NLS-1$ >- validateBinIncludes(binIncludes, key); >+ validateBinIncludes(binIncludes, ICoreConstants.PLUGIN_FILENAME_DESCRIPTOR); > } > > // validate for bundle localization
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221998
:
92070
| 92106