You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jan-David Salchow (JIRA)" <ji...@codehaus.org> on 2008/12/28 01:28:19 UTC

[jira] Created: (MSHARED-86) Maven2OsgiConverter calculates a wrong symbolic name if artifact.getFile() returns a directory

Maven2OsgiConverter calculates a wrong symbolic name if artifact.getFile() returns a directory
----------------------------------------------------------------------------------------------

                 Key: MSHARED-86
                 URL: http://jira.codehaus.org/browse/MSHARED-86
             Project: Maven Shared Components
          Issue Type: Bug
          Components: maven-osgi
            Reporter: Jan-David Salchow


The method {code}getBundleSymbolicName( Artifact artifact ){code} of the {code}DefaultMaven2OsgiConverter{code} assumes that if {code}( artifact.getFile() != null ) && artifact.getFile().exists(){code} is true the returned file is a jar. This may be a directory hence {code}JarFile jar = new JarFile( artifact.getFile(), false );{code} may throw an exception.

This may be fixed using a simple check around line 87 ff (svn revision 661727).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira