Ajay Deshwal commented on New Feature MWEBSTART-8

I needed the native library support in webstart plugin while developing an swt appliation.
I have added the feature for jnlp-download-servlet goal which can be easily be extended to other goals.
The configuration looks like following:

<jnlpFile>
........

<nativeDependencies>
<nativeDependency>
<os>Linux</os>
<arch>x86</arch>
<nativeResources>
<nativeResource>
<resourceType>nativelib</resourceType>
<groupId>${swt.groupId}</groupId>
<artifactId>org.eclipse.swt.gtk.linux.native.x86</artifactId>
<version>${swt.version}</version>
</nativeResource>
<nativeResource>
<resourceType>jar</resourceType>
<groupId>${swt.groupId}</groupId>
<artifactId>org.eclipse.swt.gtk.linux.x86</artifactId>
<version>${swt.version}</version>
</nativeResource>
</nativeResources>
</nativeDependency>
<nativeDependency>
<os>Linux</os>
<arch>x86_64</arch>
<nativeResources>
<nativeResource>
<resourceType>jar</resourceType>
<groupId>${swt.groupId}</groupId>
<artifactId>org.eclipse.swt.gtk.linux.x86_64</artifactId>
<version>${swt.version}</version>
</nativeResource>
</nativeResources>
</nativeDependency>
</nativeDependencies>
.......
</jnlpFile>

Inside jnlp template we need to set

${nativeDependencies}

and the output for above example in generated jnlp file looks like following:

<resources os="Linux" arch="x86">
<nativelib href="" version="3.8">
<jar href="" version="3.8">
</resources>

<resources os="Linux" arch="x86_64">
<jar href="" version="3.8">
</resources>

The functionality will check the declared native libs in

<jarResources>
........
</jarResources>

as well and their transitive dependencies. If the declared native lib exists, their declaration won't be in
${dependencies} substitution but only in ${nativeDependencies}.

What do you all think?

I will post a patch after some refinement.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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