Skip to content

Commit

Permalink
Merge branch 'master' into additional-vmargs-locations
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rider authored Nov 7, 2024
2 parents 7e684f2 + 2815608 commit 6962fda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bundles/org.eclipse.osgi/supplement/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.equinox.supplement
Bundle-Version: 1.11.0.qualifier
Bundle-Version: 1.11.100.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.equinox.log;version="1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
*******************************************************************************/
package org.eclipse.osgi.internal.location;

import java.io.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.channels.FileLock;
import java.nio.channels.OverlappingFileLockException;
import org.eclipse.osgi.internal.messages.Msg;
Expand Down Expand Up @@ -50,7 +53,7 @@ public synchronized boolean lock() throws IOException {
System.out.println(NLS.bind(Msg.location_cannotLock, lockFile));
// produce a more specific message for clients
String specificMessage = NLS.bind(Msg.location_cannotLockNIO, new Object[] {lockFile, ioe.getMessage(), "\"-D" + LocationHelper.PROP_OSGI_LOCKING + "=none\""}); //$NON-NLS-1$ //$NON-NLS-2$
throw new IOException(specificMessage);
throw new IOException(specificMessage, ioe);
} catch (OverlappingFileLockException e) {
// handle it as null result
fileLock = null;
Expand Down

0 comments on commit 6962fda

Please sign in to comment.