Menu

#76 Unable to parse Package Body

closed-fixed
None
8
2011-11-28
2011-10-04
No

Hi

I am unable to create documentation for a package body. I have tried to parse it from the file as well as the DB but it never creates a <package_name>.html as it creates for package spec.
It is working fine for the package spec but in my project, all comments are present in the package body code.

Please see below command line and the attached sql files.

./pldoc.sh -doctitle PKG_TEST -d /home/amlsad01/pldoc-0.9.5/test/ -verbose /home/amlsad01/pldoc-0.9.5/pkg_test.sql
./pldoc.sh -doctitle PKG_TEST -d /home/amlsad01/pldoc-0.9.5/test_db/ -verbose -url <db_url> -user <usr> -password <passwd> -sql PKG_TEST -types "'PACKAGE BODY'"

When I try it by removing types "Package Body", it generates doc from the package spec.

Please help urgently.

Thanks in advance
Gurpreet

Discussion

  • Anonymous

    Anonymous - 2011-10-04

    Package Body

     
  • Anonymous

    Anonymous - 2011-10-04
    • priority: 5 --> 8
    • assigned_to: nobody --> altumano
     
  • Stuart Turton

    Stuart Turton - 2011-11-15

    You need the \ characters to escape the quotation marks: e.g.

    -types "\"PROCEDURE,FUNCTION,TRIGGER,PACKAGE,TYPE,PACKAGE BODY,TYPE BODY\""

     
  • Anonymous

    Anonymous - 2011-11-23

    Hi Stuart,
    Thanks for the replying but using escape characters for PACKAGE BODY still did not resolve problem.
    I tried using "\"PACKAGE BODY\"" as well as "'PACKAGE BODY'" (single quotes inside double quotes).
    pldoc ran fine and it displayed the usage of PACKAGE BODY in all_objects query but no html file was created for my package. Rather an html file was created for the schema name.

    Could you please help me with this issue?

    Thanks,
    Gurpreet

     
  • Stuart Turton

    Stuart Turton - 2011-11-25

    The information is parsed into application.xml as PACKAGE_BODY and OBJECT_BODY elements, but the XSLT scripts do not yet prices these elements.

    Committing changes for 0.9.7

     
  • Anonymous

    Anonymous - 2011-11-28
    • status: open --> closed-fixed
     
  • Anonymous

    Anonymous - 2011-11-28

    Hi Stuart,

    This issue is now resolved with version 0.9.7
    Thanks much for your kind help.

    Grrpreet

     

Log in to post a comment.