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 146638 Details for
Bug 288759
[reconciler] eclipse will always report null point error when a non-existing path is used for links
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch code for this enhancement
patch_288759.txt (text/plain), 1.77 KB, created by
Ben Xu
on 2009-09-08 03:50:31 EDT
(
hide
)
Description:
patch code for this enhancement
Filename:
MIME Type:
Creator:
Ben Xu
Created:
2009-09-08 03:50:31 EDT
Size:
1.77 KB
patch
obsolete
>Index: src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java,v >retrieving revision 1.21 >diff -u -r1.21 DropinsRepositoryListener.java >--- src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java 6 Apr 2009 16:57:35 -0000 1.21 >+++ src/org/eclipse/equinox/internal/p2/reconciler/dropins/DropinsRepositoryListener.java 8 Sep 2009 07:43:34 -0000 >@@ -37,6 +37,7 @@ > private static final String LINK = ".link"; //$NON-NLS-1$ > private static final String ZIP = ".zip"; //$NON-NLS-1$ > private static final String LINKS_PATH = "path"; //$NON-NLS-1$ >+ private static final String LINK_IS_OPTIONAL = "optional"; //$NON-NLS-1$ > private static final String DROPIN_ARTIFACT_REPOSITORIES = "dropin.artifactRepositories"; //$NON-NLS-1$ > private static final String DROPIN_METADATA_REPOSITORIES = "dropin.metadataRepositories"; //$NON-NLS-1$ > private static final String PIPE = "|"; //$NON-NLS-1$ >@@ -112,6 +113,15 @@ > path = path.trim(); > } > File linkedFile = new File(path); >+ // Check if the link target is marked as optional. >+ // If link is optional, then the link target may not exist. >+ // So IF link is marked as optional AND does not exist, simply ignore it. >+ String optional = links.getProperty(LINK_IS_OPTIONAL); >+ if (Boolean.valueOf(optional).booleanValue()) { >+ if (!linkedFile.exists()) { >+ return null; >+ } >+ } > if (!linkedFile.isAbsolute()) { > // link support is relative to the install root > File root = Activator.getEclipseHome();
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 288759
:
146638
|
177463