Skip to content

Commit

Permalink
Merge pull request #110 from benson-basis/issue-105
Browse files Browse the repository at this point in the history
Update <packageName> to <narSystemPackage>

Fixes issue #105.
  • Loading branch information
ctrueden committed Jun 12, 2014
2 parents f0e483a + d45ce48 commit 005df43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/site/apt/faq.apt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ would complicate matters.
The JNI library is strictly connected to the corresponding java code in the
main artifact (jar file). Since the main artifact has a version number, we decided
that the JNI library should have the same version number. If you add the subtag
<packageName> to the <library> tag, the nar-plugin will generate a NarSystem
<narSystemPackage> to the <library> tag, the nar-plugin will generate a NarSystem
class for you which will load the library. Assuming you specified com.mycompany.mypackage
as packageName, then you need to add the following code to the class with the native
as narSystemPackage, then you need to add the following code to the class with the native
methods:

+--
Expand Down
2 changes: 1 addition & 1 deletion src/site/apt/index.apt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ files are all stored in gnuTargetDirectory and will be handled in subsequent NAR
This goal generates a NarSystem class if necessary. This class contains helper methods for your
code to handle things at run-time. The static method "loadLibrary()" is currently the only method
generated and will load your JNI library with name "artifactId-version". This goals only executed
if you produce a JNI library and you specify a <packageName> as subtag of <library>. The NarSystem
if you produce a JNI library and you specify a <narSystemPackage> as subtag of <library>. The NarSystem
class will then end up in this package.

* {nar-resources}
Expand Down
4 changes: 2 additions & 2 deletions src/site/apt/usage.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ and link native code.
<libraries>
<library>
<type>jni</type>
<packageName>com.mycompany.mypackage</packageName>
<narSystemPackage>com.mycompany.mypackage</narSystemPackage>
</library>
</libraries>
</configuration>
Expand Down Expand Up @@ -119,7 +119,7 @@ The example also shows how to configure the
</goals>
<configuration>
<cpp>true</cpp>
<packageName>org.domain.packagename</packageName>
<narSystemPackage>org.domain.packagename</narSystemPackage>
<source>Module.swg</source>
</configuration>
</execution>
Expand Down

0 comments on commit 005df43

Please sign in to comment.