Bug 562 - When loading a native jar search for filename+version to aid Maven support
Summary: When loading a native jar search for filename+version to aid Maven support
Status: RESOLVED DUPLICATE of bug 598
Alias: None
Product: Default
Classification: General
Component: default (show other bugs)
Version: unspecified
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2012-03-11 06:21 CET by John Klehm
Modified: 2012-07-05 22:47 CEST (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Klehm 2012-03-11 06:21:33 CET
Right now when jogl.all.jar and gluegen-rt.jar attempt to load their dependencies they look only for the name jogl-all-natives-PLATFORM.jar.  In Maven every artifact (jar or otherwise) needs to have a version number. 

So to support the automaticness of Maven we need to allow the loader to find this style file name:
jogl.all-VERSION.jar when it loads would attempt to find: jogl-all-PLATFORM-VERSION.jar

e.g. possible Maven repo for jogl layout

org
+--jogamp
   +--jogl
      +--VERSION
         +--jogl.all-VERSION.jar
         +--jogl.all-VERSION-PLATFORM.jar



I propose to solve this by having the jogl.all.jar and gluegen-rt.jar search for a variation of their filename (which would grab the version in this case) e.g. jogl.all-2.0-b45-20111219.jar loadUrl searches for jogl.all-2.0-b45-20111219-PLATFORM.jar

Allowing the change I've outlined here would enable seamless support for JOGL in an Eclipse Indigo Maven project, you would be able to just add it to your pom and Eclipse would be ready to go.

I'm willing to make this patch if someone can tip me off to which area of the code does the searching.
Comment 1 Sven Gothel 2012-07-05 22:47:26 CEST
resolved in bug 598

*** This bug has been marked as a duplicate of bug 598 ***