PCT for ant problem.

Posted by Paul Radbone on 24-Nov-2014 03:51

Hi,

i'm having trouble getting PCT for ANT working in Openedge Developer studio (11.3).  I get this error:

build2.xml:12: java.lang.ArrayIndexOutOfBoundsException: 43

When I run this basic script:

<?xml version="1.0" encoding="utf-8"?>
<project name="MyProject" default="build" basedir=".">

<property environment="env" />

<taskdef resource="PCT.properties" />
<typedef resource="types.properties" />


<target name="build" description="Builds source files">
<mkdir dir="build"/>
<PCTCompile destDir="build" graphicalMode="true" dlcHome="${env.DLC}">
<fileset dir="SPARKCommon">
<include name="*.cls" />
</fileset>
<propath>
<pathelement path="SPARKcommon"/>
</propath>
</PCTCompile>
</target>
</project>

The build is failing on the <PCTCompile line of the script.  All the paths are set up as far as I can see and the build directory has been created.  ANT version is 1.9.4, latest version of PCT.

Thanks,

Paul.

All Replies

Posted by Paul Radbone on 24-Nov-2014 04:34

Bit more info:

BUILD FAILED
build.xml:14: java.lang.ArrayIndexOutOfBoundsException: 43
at com.phenix.pct.RCodeInfo.readUnsignedInt(RCodeInfo.java:342)
at com.phenix.pct.RCodeInfo.processFile(RCodeInfo.java:191)
at com.phenix.pct.RCodeInfo.<init>(RCodeInfo.java:90)
at com.phenix.pct.DLCVersion.readArch(DLCVersion.java:71)
at com.phenix.pct.DLCVersion.getObject(DLCVersion.java:49)
at com.phenix.pct.PCT.setDlcHome(PCT.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.IntrospectionHelper$7.set(IntrospectionHelper.java:1107)
at org.apache.tools.ant.IntrospectionHelper$AttributeSetter.setObject(IntrospectionHelper.java:1493)
at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:411)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:528)
at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:464)
at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:199)
at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163)
at org.apache.tools.ant.Task.perform(Task.java:347)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:180)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93)
at org.apache.tools.ant.Main.runBuild(Main.java:826)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Posted by DivyaTheja on 24-Nov-2014 04:43

Hi Paul,

I tried running PCT task from Progress Developer Studio 11.3 with build.xml file you provided. I am able to run ANT task successfully.

Is customer running ANT task from Developer Studio or from commandline? If Developer Studio, the ANT version ships with 11.3 is 1.8.2.  

-DivyaTheja

Posted by Riverside Software on 24-Nov-2014 04:47

When you say last version of PCT, which one is it ? Did you get it from Bitbucket or from Google code ?

Posted by Paul Radbone on 24-Nov-2014 04:50

Hi,

We get the same error whether it's run it from the command line or Openedge Dev Studio 11.3.

Thanks,

Paul.

Posted by Paul Radbone on 24-Nov-2014 04:55

I'm glad you posted that - We had the wrong version!  Downloaded from bitbucket and the world is put to rights again.

Thanks very much.

Paul.

This thread is closed