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 228994 Details for
Bug 395897
INDEX_LOCATION_ATTRIBUTE_NAME attribute value is ignored when the index is rebuilt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
mkdirs on directory holding the index
eclipse.jdt.core_createnewfile.patch (text/plain), 1.14 KB, created by
Troy Bishop
on 2013-03-25 10:07:18 EDT
(
hide
)
Description:
mkdirs on directory holding the index
Filename:
MIME Type:
Creator:
Troy Bishop
Created:
2013-03-25 10:07:18 EDT
Size:
1.14 KB
patch
obsolete
>diff --git a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/index/FileIndexLocation.java b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/index/FileIndexLocation.java >index 67fc9ae..8a5d6c5 100644 >--- a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/index/FileIndexLocation.java >+++ b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/index/FileIndexLocation.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2011 IBM Corporation and others. >+ * Copyright (c) 2011, 2013 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 >@@ -38,6 +38,11 @@ > } > > public boolean createNewFile() throws IOException { >+ File directory = this.indexFile.getParentFile(); >+ if ((directory != null) && !directory.exists()) { >+ directory.mkdirs(); >+ } >+ // always call File#createNewFile() so that the IOException is thrown if there is a failure > return this.indexFile.createNewFile(); > } >
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 395897
:
224383
|
225343
|
225398
|
225796
|
225915
|
225923
|
225953
|
226433
|
227564
|
227624
|
228741
|
228742
|
228901
|
228976
|
228994
|
229073
|
229088
|
229091
|
229146
|
229157