On 3/8/07, Steinar Bang <[EMAIL PROTECTED]> wrote:

I'm trying to use maven to distribute .so/DLL files used by a JNI
class.  The plan was to use dependency:unpack to drop the .so files
and DLLs into a directory in LD_LIBRARY_PATH (or PATH on Win32).

The questions are:
1. should the DLLs be separate artifacts, or can they be attachments
   to the JNI jar artifact?  (if so, how are they referenced from an
   <artfactItem> in the <artifactItems> list of dependency:unpack?  I
   only know how to do sources here...)


I would have dll to depend on the jar, then use dependency:copy to place
those artifact on your footprint/workspace

2. can dependency:unpack handle .tar or .tar.gz or .tgz files?


Yes

Thanx!


- Steinar

PS the plan was to use ${os.name} and ${os.arch} in the artifactId for
the case where each platform's DLL gets a separate artifact.  How to
do it if the DLLs becomes attachments I have no idea.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to