From d45ce486c8e6b2f9a08f2af67cbbbe1048c07778 Mon Sep 17 00:00:00 2001 From: Benson Margulies Date: Thu, 12 Jun 2014 13:58:25 -0400 Subject: [PATCH] issue #105: change all of the packageName elements in doc to narSystemPackage. --- src/site/apt/faq.apt | 4 ++-- src/site/apt/index.apt | 2 +- src/site/apt/usage.apt.vm | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/site/apt/faq.apt b/src/site/apt/faq.apt index 67e8426bb..b93acb26d 100644 --- a/src/site/apt/faq.apt +++ b/src/site/apt/faq.apt @@ -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 - to the tag, the nar-plugin will generate a NarSystem + to the 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: +-- diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt index e1d782285..c3cf14bbc 100644 --- a/src/site/apt/index.apt +++ b/src/site/apt/index.apt @@ -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 as subtag of . The NarSystem +if you produce a JNI library and you specify a as subtag of . The NarSystem class will then end up in this package. * {nar-resources} diff --git a/src/site/apt/usage.apt.vm b/src/site/apt/usage.apt.vm index e8877b420..d55877245 100644 --- a/src/site/apt/usage.apt.vm +++ b/src/site/apt/usage.apt.vm @@ -48,7 +48,7 @@ and link native code. jni - com.mycompany.mypackage + com.mycompany.mypackage @@ -119,7 +119,7 @@ The example also shows how to configure the true - org.domain.packagename + org.domain.packagename Module.swg