Hi All,
I have written an ANT script to compile and run the ABL Unit test case which is running fine but at the end I am getting the below error and showing it in the console. Is there a way to setup session parameters (PF file type) to suppress this error from ANT script?
-D limit has been exceeded; automatically increasing to <new value>. (5410)
Any help will be greatly appreciated.
Below is my ANT script:
<?xml version="1.0" encoding="UTF-8"?>
<project name="ABLUnit-Ant" default="build" basedir=".">
<!-- ABLUnit task definition target starts here -->
<target name="build">
<!-- <antcall target="pct_compile"/>
<delete dir="./.pct" quiet="true" /> -->
<antcall target="main"/>
</target>
<target name="taskdef">
<taskdef name="ablunit" classname="com.progress.openedge.ant.ablunit.ABLUnitTask"
classpath="c:/Progress/dlcv116/java/ant-ablunit.jar" />
</target>
<!-- Main target starts here -->
<target name="main" depends="taskdef">
<ablunit dlc="C:\Progress\dlcv116" environment="gui"
printsummary="true" haltonerror="no" haltonfailure="no"
tempdir="${basedir}/tmpdir">
<dbinfo name="C:\DevelopmentOE\Advanceddb\116\openacc.db" host="localhost" port="9000" />
<dbinfo name="C:\DevelopmentOE\Advanceddb\116\openstrt.db" host="localhost" port="9100" />
<dbinfo name="C:\DevelopmentOE\Advanceddb\116\OpenSaaS.db" host="localhost" port="9200" />
<dbinfo name="C:\DevelopmentOE\OASaaSApp116\DB\SmartDB\SmartDB.db" host="localhost" port="4716" />
<propath>
<pathelement location="." />
<pathelement location="C:\DevelopmentOE\OASaaSApp116\OpenAccountsBL" />
<pathelement location="C:\DevelopmentOE\OASaaSApp116\Common" />
<pathelement location="C:\DevelopmentOE\OASaaSApp116\SCL" />
<pathelement location="C:\DevelopmentOE\OASaaSApp116\AdvancedFramework" />
<pathelement location="C:\Progress\dlcv116\gui\ablunit.pl" />
<pathelement location="C:\Progress\dlcv116\gui\OpenEdge.Core.pl" />
</propath>
<!-- <test name="${basedir}/samples/MyTestClass.cls" todir="${basedir}/results"
outfile="result-MyTestClass-gui" format="xml" /> -->
<test name="${basedir}\Base\Company\Companies\CompanyUnitTest.cls" todir="${basedir}/results"
outfile="results" format="xml" />
<!-- <batchtest todir="${basedir}/results" format="xml">
<fileset dir="${basedir}/Base/Company/Companies">
<include name="CompanyUnitTest.cls" />
</fileset>
</batchtest> -->
</ablunit>
</target>
<target name="pct_compile">
<taskdef resource="PCT.properties" classpath="lib/PCT-194.jar" />
<!-- compile using character session -->
<PCTCompile graphicalMode="false" dlcHome="C:\Progress\dlcv116\" MD5="true"
destDir="." relativePaths="false"
failOnError="true"
debugListing="false"
listing="false"
keepXref="false"
forceCompile="false"
noParse="false"
xmlXref="false"
verbose="true">
<fileset dir=".">
<!-- <include name="**/*.cls" /> -->
<include name="**/Company/Companies/*.cls" />
<!-- <include name="**/*.w" /> -->
<!-- <include name="C:\DevelopmentOE\OASaaSApp116\OpenAccountsBL\GL\CostCode\CostCodeMHTest.p" /> -->
</fileset>
<PCTConnection dbName="openacc.db" hostname="localhost" dbPort="9000" />
<PCTConnection dbName="openstrt.db" hostname="localhost" dbPort="9100" />
<PCTConnection dbName="OpenSaaS.db" hostname="localhost" dbPort="9200" />
<PCTConnection dbName="SmartDB.db" hostname="localhost" dbPort="4716" />
<propath>
<pathelement location="." />
<pathelement location="C:\DevelopmentOE\OASaaSApp116\OpenAccountsBL" />
<pathelement location="C:\DevelopmentOE\OASaaSApp116\Common" />
<pathelement location="C:\DevelopmentOE\OASaaSApp116\SCL" />
<pathelement location="C:\DevelopmentOE\OASaaSApp116\AdvancedFramework" />
</propath>
</PCTCompile>
</target>
</project>
Thanks & Regards,
Manohar Halappa
ok Guys was able to fix the issue by setting the -D parameters in C:\Progress\dlcv116\startup.pf. That fixed it :-)
U have mixed abl unit and PCT compiler tasks in one build.xml then how ur running this build.xml ? I mean to say by proenv or oe studio ?