OE 11.7.1
I'm testing the ABLDoc in combination with an ANT-script.
But when I run the script (copied from https://community.progress.com/community_groups/openedge_development/f/19/p/22855/80546 and changed the directories to my case) I always get an error "CharScanner; panic:ClassNotFoundException: com.openedge.pdt.core.ast.ProgressHiddenStreamToken"
C:\Users\didier.d\Own\Tools\PCT\MyChecks>C:\Users\didier.d\own\Tools\apache-ant-1.10.3\bin\ant -v -buildfile TestABLdoc-Build2.xml
Apache Ant(TM) version 1.10.3 compiled on March 24 2018
Buildfile: C:\Users\didier.d\Own\Tools\PCT\MyChecks\TestABLdoc-Build2.xml
Detected Java version: 1.8 in: C:\Users\didier.d\Own\Tools\Java_1_8_0
Detected OS: Windows Server 2012 R2
parsing buildfile C:\Users\didier.d\Own\Tools\PCT\MyChecks\TestABLdoc-Build2.xml
with URI = file:/C:/Users/didier.d/Own/Tools/PCT/MyChecks/TestABLdoc-Build2.xml
Project base dir set to: C:\Users\didier.d\own\Tools\PCT\MyChecks
parsing buildfile jar:file:/C:/Users/didier.d/Own/Tools/apache-ant-1.10.3/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/Users/didier.d/Own/Tools/apache-ant-1.10.3/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
Build sequence for target(s) `main' is [taskdef, main]
Complete build sequence is [taskdef, main, ]
taskdef:
main:
[abldoc] Validating the configured ABLDoc projects
[abldoc] Preparing the ABLDoc environment...
[abldoc] Generating ABLDoc documentation...
[abldoc] [INFO] : Initializing tag parser...
[abldoc] [INFO] : Initialising default tag parser...
[abldoc] [INFO] : Initializing serializer...
[abldoc] [INFO] : Initialising HTML serializer...
[abldoc] [INFO] : Initialising template parser...
[abldoc] [INFO] : Copying abldoc artifacts...
[abldoc] [INFO] : Building source tree...
[abldoc] CharScanner; panic: ClassNotFoundException: com.openedge.pdt.core.ast.ProgressHiddenStreamToken
What do I have to do to fix this problem?
I can't find a com.openedge.pdt.core.ast.ProgressHiddenStreamToken on my system?
Regards
Didier
Hi Sanjeev,
No problem, here it is.
The only thing that can be strange is the classpath because I've added there a few directories because I had some problems in the beginning (but I guess those directories doesn't produce the error)
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="C:/Users/didier.d/own/Tools/PCT/MyChecks" default="main" name="ABLDoc-Ant">
<property name="DLC_HOME" value="c:/Progress/oe11.7"/>
<property name="version" value="11.7.1.00"/>
<property name="PROJECT_HOME" value="${DLC_HOME}/oeide/eclipse/plugins/com.progress.openedge.pdt.abldoc.core_${version}"/>
<property name="lib.dir" value="${PROJECT_HOME}/lib/"/>
<property name="artifacts.dir" value="${PROJECT_HOME}/abldoc-artifacts"/>
<!-- Target for defining 'taskdef' -->
<target name="taskdef">
<taskdef name="abldoc" classpath="${DLC_HOME}/java/ant-abldoc.jar" classname="com.progress.openedge.ant.abldoc.ABLDocTask">
<!-- Class path for including the dependencies -->
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${PROJECT_HOME}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${DLC_HOME}/java/ant-libs">
<include name="**/*.jar"/>
</fileset>
</classpath>
</taskdef>
</target>
<target name="main" depends="taskdef">
<abldoc includeProtected="true" includePrivate="true" artifactLoc="${artifacts.dir}" includeExtension="i" verbose="yes" doctitle="ABLDOC" destdir="${basedir}/output" dlc="${DLC_HOME}">
<abldocproject name="Dev" location="C:/Users/testuser/test">
<propath>
<pathelement location="C:/Users/testuser/test"/>
</propath>
<sourcepath>
<fileset dir="C:/Users/testuser/test">
<include name="**/*.p"/>
</fileset>
</sourcepath>
</abldocproject>
</abldoc>
</target>
</project>
Regards