How can I use ant <exec> to execute commands on Windchill?

Viewed 129

Need to run this below command in the Ant exec tag.

windchill ext.cummins.securityLabel.CumminsLoadAgreement -d %WT_HOME%/loadFiles/ext/cummins/Agreements/AgreementList/Agreement_Loader.xlsx -u wcadmin -p wcadmin

1 Answers

You can make use of Java Task in your ant script to perform this.

Use the below script

<java classname="ext.cummins.securityLabel.CumminsLoadAgreement" fork="true">
            <arg value="${username}"/>
            <arg value="${password}"/>
            <arg value="-d"/>
            <arg path="${Your_Custom_Directory}/${Custom_file}"/>
        </java>
Related