FELIX-850: local fix for MSHARED-86 (should use isFile instead of exists)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@738941 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/maven/shared/osgi/DefaultMaven2OsgiConverter.java b/bundleplugin/src/main/java/org/apache/maven/shared/osgi/DefaultMaven2OsgiConverter.java
index 60d6ee1..dbe135f 100644
--- a/bundleplugin/src/main/java/org/apache/maven/shared/osgi/DefaultMaven2OsgiConverter.java
+++ b/bundleplugin/src/main/java/org/apache/maven/shared/osgi/DefaultMaven2OsgiConverter.java
@@ -78,7 +78,7 @@
*/
public String getBundleSymbolicName( Artifact artifact )
{
- if ( ( artifact.getFile() != null ) && artifact.getFile().exists() )
+ if ( ( artifact.getFile() != null ) && artifact.getFile().isFile() )
{
Analyzer analyzer = new Analyzer();
@@ -121,7 +121,7 @@
}
int i = artifact.getGroupId().lastIndexOf( '.' );
- if ( ( i < 0 ) && ( artifact.getFile() != null ) && artifact.getFile().exists() )
+ if ( ( i < 0 ) && ( artifact.getFile() != null ) && artifact.getFile().isFile() )
{
String groupIdFromPackage = getGroupIdFromPackage( artifact.getFile() );
if ( groupIdFromPackage != null )