Skip to content
Gilles QUERRET edited this page Sep 21, 2015 · 25 revisions

ClassDocumentation task -- <pct:classdocumentation />

Description

Generates XML documentation from OpenEdge classes. An example of generated documentation is available here (full documentation for OpenEdge.DataAdmin package is available here).

Comments have to be written using a specific syntax to be parsed correctly; documentation is here.

Requirements

Up to 11.3

This task requires JAR file oe_common_services.jar in your classpath. This JAR file is located inside %DLC%\oeide\Architect_repo\plugins\com.openedge.pdt.core_XXX.jar (for 11.1, it may be a different path for previous versions). Remember that JAR files are in fact ZIP files, so use an appropriate tool to extract the content. You'll need an OpenEdge Architect licence to have those files installed. Please note the following requirement :

  • PCT 178 requires oe_common_services from 11.1
  • PCT 179+ requires oe_common_services from 11.2 or 11.3
  • PCT 188+ requires oe_common_services from 11.3.2 (not tested with previous versions)
  • No support for ClassDocumentation in PCT below 178

Drop the JAR file in ${ANT_HOME}/lib or call Ant with -lib /path/to/oe_common_services.jar. Please note that oe_common_services.jar from 11.4 is not supported yet.

Task isn't declared in the same .properties file as the other tasks. You'll need to add this line to your build.xml :

  <taskdef resource="extras.properties" />

From 11.5 and above

This task requires JAR files ast.jar and ast-dependencies.jar in your classpath. Those JAR files are located in %DLC%\oeide\eclipse\plugins\com.progress.openedge.pdt.abldoc.core_11.5.1.00\lib (for 11.5.1, it may be a different path for previous versions). You'll need an OpenEdge Architect licence to have those files installed.

Drop the JAR files in ${ANT_HOME}/lib or call Ant with -lib /path/to/ast.jar -lib /path/to/ast-dependencies.jar.

Task isn't declared in the same .properties file as the other tasks. You'll need to add this line to your build.xml :

  <taskdef resource="extras115.properties" />

PCT build #200 (or above) is required for extras115.properties

Using 11.4

There are no plans to support this version, please upgrade...

Preprocessing

It's recommended to generate documentation from preprocessed source. Use preprocessDir attribute of PCTCompile task to generate preprocessed classes, then use ClassDocumentation on this directory.

Parameters

Attribute Description Type Requirement Default value
destDir Directory where to put XML files File Required No default value
encoding Use specified encoding when reading source files. Not yet implemented String Optional No default value

ClassDocumentation inherits attributes from PCT.

Parameters as nested elements

fileset

Adds a file set

Bugs

This task is work in progress, so report bugs on the PCT bugtracker.

Examples

<PCTCompile destDir="build" preprocessDir="preprocess" dlcHome="${env.DLC}">
  <fileset dir="src">
    <include name="**/*.cls"/>
  </fileset>
  <propath>
    <pathelement path="src"/>
  </propath>
</PCTCompile>
<ClassDocumentation destDir="doc" dlcHome="${env.DLC}">
  <fileset dir="preprocess" includes="**/*.cls" />
  <propath>
    <pathelement path="preprocess" />
  </propath>
</ClassDocumentation>

Compiles every .cls in src directory (and subdirs) in build directory, generates preprocessed classes in preprocess directory, then generate XML documentation from the preprocessed classes.

Clone this wiki locally