[ 
https://jira.codehaus.org/browse/MOJO-1373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=283075#comment-283075
 ] 

Joe Mays commented on MOJO-1373:
--------------------------------

Hi Erik,

I just found your osxappbundle plugin, and it's almost everything I need!  Just 
need to be able to include jnilib/dylib native libs.  Basically we just need to 
copy them to Contents/Resources/Java and then System.loadLibrary works with the 
default java.library.path (i.e., ".").  So, if we had something like:

<nativeLibraries>
  <fileSet>
    <directory>${basedir}/src/main/app-resources</directory>
    <includes>
      <include>libHelloWorld.dylib</include>
    </includes>
  </fileSet>
</nativeLibraries>

...where the fileSet would be copied to Contents/Resources/Java, I think that 
would suffice.  Then, System.loadLibrary("HelloWorld") would work.

I can put together an example - just let me know that you're still willing to 
add this feature!

Thanks,
Joe

> jnilib example
> --------------
>
>                 Key: MOJO-1373
>                 URL: https://jira.codehaus.org/browse/MOJO-1373
>             Project: Mojo
>          Issue Type: Wish
>          Components: osxappbundle
>            Reporter: Erik Martino Hansen
>            Assignee: Eirik Bjørsnøs
>
> I have found no example of how to include a jnilib in the bundle. The problem 
> is that if the artifact is of type jnilib it is placed deep down in the repo 
> directory structure with a name that includes a version number. What you want 
> is the possibility to place the jnilib directly in the Java directory and 
> change the name to not include the version number.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to