IBM Support

Could not load definitions from resource net/sf/antcontrib/antcontrib.properties.

Troubleshooting


Problem

Could not load definitions from resource net/sf/antcontrib/antcontrib.properties.

Symptom

antcontrib.properties not found warning message while running ant command on one of the build XML's provided by Sterling.

Error Message

ant.cmd -f ycd_load_reference_implementation.xml transactiondata -logfile ycd_load_reference_implementation_transactiondata.log

The following error is thrown.

[taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.
[taskdef] Processing file YFS_custom.xml
[taskdef] Processing file inv_costing_tables.xml
[taskdef] Processing file inv_resource_tables.xml
[taskdef] Processing file inv_tables.xml

Resolving The Problem

This warning is thrown by ant build command when ant-contrib.jar is missing from the classpath. Solution is to add ant-contrib.jar in dynamicclasspath.cfg file.
VENDOR_JAR=D:\Y8.0\Foundation\jar\ant-contrib.jar

ant-contrib.jar can be downloaded from http://sourceforge.net/projects/ant-contrib/files/

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX6701

Product Synonym

[<p><b>]Severity[</b><p>];Critical

Document Information

Modified date:
16 June 2018

UID

swg21558212