Configuring and testing Publish Adapter as a Contenta server tool

You can configure testPubServeralAi to be a server or support tool.

Procedure

  1. Relocate testPubServerAi.pl on the server:
    from: SDL Contenta_home/encaps/adapters/testing/testPubServerAi.pl

    to: SDL Contenta_home/encaps/testPubServerAi.pl

  2. In the pcmadmin application, add the server tool to the CompoundAscii and CompoundAscii-based objects.
    • Menu Label: testPubServerAi
    • Tool Type: Server Tool
    • Command Line: interp perl testPubServerAi.pl

Testing the tool

To test your tool after configuring, exit pcmadmin and test the tool from SDL Contenta Explorer.

Procedure

  1. In SDL Contenta Explorer, select a CompoundAscii or CompoundAscii-based object on which the tool is configured. Start with a single object or small hierarchy of objects.
  2. Click on the Tools menu.
  3. Click testPubServerAi
    If the tool is not listed, the object you selected was not configured for the tool.
  4. Look in the publish directory:
    • Windows: SDL Contenta_home/TEMP/publish/user
    • Unix: /tmp/publish/user

      where SDL Contenta_home is the directory where Contenta is installed and user is the name of the user who executed the program.

    If you can not locate your document, turn ON debug to level 2 in testPubServerAi.pl (refer to Turning On Debug in the Publish/View Adapter File) then repeat this step (click testPubServerAi) and examine the log file (located on the server).