javajarosgidotcms

"-includeresource" in JAR Manifest inside Gradle build file


In build.gradle for the dotCMS OSGi custom Spring example, there is a line in the JAR manifest:

instruction '-includeresource', 'spring=spring, libs'

Is this a typo? Is '-includeresource' supposed to be 'Include-Resource'? I can't seem to find any documentation anywhere on this.

Sorry if this is obvious. I am new to Gradle and Java.


Solution

  • -includeresource is an bnd instruction. Per the documentation, it is used to:

    Include resources from the file system