Re: External license files
Peter Hansson <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAC55jYMx7-0BTHQaiWN5+xqh-UudogeyuT+7mBx7b_EC0JNpWw@mail.gmail.com> |
Is your app Ant or Maven based?
Never mind, I'll assume in the following that your app is Maven based as
most apps are, I guess.
You can add a single license text file to the Installer by setting the
installerLicenseFile config parameter in your POM.
(http://www.mojohaus.org/nbm-maven-plugin/build-installers-mojo.html)
Something like:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<configuration>
<installerLicenseFile>${basedir}/src/main/resources/licenses/my-license1.txt</installerLicenseFile>
...
</configuration>
</plugin>
If you have more than one license text file you want to display and need
the user to accept to then a workaround would be to have Maven concatenate
your license text files before they are picked up by the NBM Maven Plugin.
If you need more advanced functionality than this then you need to supply
your own Java code for a more customized version of the Installer.
Peter
On Thu, Aug 25, 2016 at 4:20 PM, karolinas <[email protected]> wrote:
> Hello. I am using some purchased libraries in my application, hence I need
> to include the license files to the installer. What is the right approach
> to do it?
>
>
>
>
>