Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

...

For information on configuration parameters, refer to Configuration File & Parameters.

Using Module Settings Inside build.xml

...

Attribute

Type

Description

Required

name

String

Module name to be matched with an existing WhiteSource Mend project name. If a project with this name does not exist, then a new project will be created.

One of these attributes

token

String

Module token to match an existing WhiteSource Mend project can be retrieved from the admin page in your WhiteSource Mend account

Each module must be declared with nested <path> elements that store the location of the module's lib folder (with all the dependencies).

...

...

<!-- Define the White Source target -->

<target name="whitesourceMend" description="white source ant plugin">

    <!-- Execute White Source -->

    <whitesource    <Mend apikey="${whitesourceMend.apikey}">

        <!-- check policies (optional) -->

        <checkpolicies reportdir="."/>

         

        <!-- first module -->

        <module name="MyModule">

            <path refid="module1.libs.path"/>

        </module>

         

        <!-- second module -->

        <module token="${whitesourceMend.module2.token}">

            <path refid="module2.libs.path"/>

        </module>

    </whitesource>Mend>

</target>

...

More information on working with nested <path> elements can be found here.

...