Exclude Single Plugin from Build

Which IIQ version are you inquiring about?

Version 8.3

Share all details related to your problem, including any error messages you may have received.

How can we exclude single plugin folder from the build.

We want to exclude a plugin lib folder from the build due to some dependencies as our build fails while looking for classes that does not exist under iiq root lib folder. We are not adding the plugin lib jars under root iiq lib due to version mismatch.

Hi @cgogu ,

Welcome to the Sailpoint community.

Are you adding any of your Java classes to this plugin?
if not you can remove the lib folder from your plugin and all the elements that contain lib in your build.xml

Hi @cgogu,

Welcome to our community.

As Hardik already mentioned, you need to look in the build.plugins.xml file (folder scriptsof SSB/SSD). Look for:

    <foreach inheritall="true" target="buildPlugin" param="pluginHomeDir">   
      <path>
        <dirset dir="${pluginSrc}" includes="*"/>
      </path>
    </foreach>

Here you can add an exclusion by skipping a directory.

    <foreach inheritall="true" target="buildPlugin" param="pluginHomeDir">
        <path>
            <dirset dir="${pluginSrc}" includes="*"/>
        </path>
        <!-- Exclude the directory you want to skip -->
        <sequential>
            <property name="directoryToExclude" value="path/to/exclude"/>
            <condition property="skipDirectory">
                <equals arg1="${pluginHomeDir}" arg2="${directoryToExclude}"/>
            </condition>
            <antcall target="buildPlugin" inheritall="true">
                <param name="pluginHomeDir" value="${pluginHomeDir}" if:false="skipDirectory"/>
            </antcall>
        </sequential>
    </foreach>

Replace "path/to/exclude" with the path of the directory you want to exclude from being processed. This modification will skip calling the buildPlugin target for the excluded directory while processing others.

(I used ChatGPT to get the ant-code to skip the directory to Exclude, as my ‘ant’ is a bit rusty :stuck_out_tongue_winking_eye: )

I hope this is what you are looking for :slight_smile:

– Remold