Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2008-08-15 19:26:19 +0000
committerAndrew Niefer2008-08-15 19:26:19 +0000
commit586b7c9b3cdb0962e86e4705d9f4c59a35ce95ea (patch)
tree72f9b0e4c3b21474b4be23123eec39ad331ee76d /bundles/org.eclipse.equinox.launcher
parent13ca409e32e49e1535188e027cf9e3ecfc6ca95d (diff)
downloadrt.equinox.framework-586b7c9b3cdb0962e86e4705d9f4c59a35ce95ea.tar.gz
rt.equinox.framework-586b7c9b3cdb0962e86e4705d9f4c59a35ce95ea.tar.xz
rt.equinox.framework-586b7c9b3cdb0962e86e4705d9f4c59a35ce95ea.zip
bug 240212 - isJar
Diffstat (limited to 'bundles/org.eclipse.equinox.launcher')
-rw-r--r--bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
index 3064d0c24..86acf393e 100644
--- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
+++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
@@ -2062,16 +2062,7 @@ public class Main {
* path represents a JAR file.
*/
private boolean isJAR(String path) {
- if (path.endsWith(File.separator))
- return false;
- int index = path.lastIndexOf('.');
- if (index == -1)
- return false;
- index++;
- // handle the case where we have a '.' at the end
- if (index >= path.length())
- return false;
- return "JAR".equalsIgnoreCase(path.substring(index)); //$NON-NLS-1$
+ return new File(path).isFile();
}
/*

Back to the top