Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4696488

javadoc doesn't handle UNC paths for destination directory

XMLWordPrintable

    • b03
    • x86
    • windows_2000, windows_xp
    • Verified



        Name: nt126004 Date: 06/03/2002


        FULL PRODUCT VERSION :
        java version "1.4.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
        Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


        FULL OPERATING SYSTEM VERSION :
        Microsoft Windows 2000 [Version 5.00.2195]

        A DESCRIPTION OF THE PROBLEM :
        javadoc incorrectly interprets UNC paths when used for the
        destination directory. If I run javadoc -d
        \\hl-dfs/net\projects\SchedInfra\outputdir -subpackages com
        the output files show up in:
        \\hl-dfs\net\hl-dfs\net\projects\SchedInfra\outputdir

        REGRESSION. Last worked in version 1.3.1

        This bug can be reproduced always.
        (Review ID: 147300)
        ======================================================================
        I get a somewhat different problem; the initial backslash is simply ignored by the javadoc tool. For example:

        ---%<---
        C:\Documents and Settings\dev>javadoc -J-showversion -d \\jglick-laptop\test\test146948\dist\javadoc \\jglick-laptop\test\test146948\src\test146948\Main.java
        java version "1.6.0_04"
        Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
        Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

        Creating destination directory: "\jglick-laptop\test\test146948\dist\javadoc\"
        Loading source file \\jglick-laptop\test\test146948\src\test146948\Main.java...
        Constructing Javadoc information...
        Standard Doclet version 1.6.0_04
        Building tree for all the packages and classes...
        Generating \jglick-laptop\test\test146948\dist\javadoc\test146948/\Main.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\test146948/\package-frame.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\test146948/\package-summary.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\test146948/\package-tree.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\constant-values.html...
        Building index for all the packages and classes...
        Generating \jglick-laptop\test\test146948\dist\javadoc\overview-tree.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\index-all.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\deprecated-list.html...
        Building index for all classes...
        Generating \jglick-laptop\test\test146948\dist\javadoc\allclasses-frame.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\allclasses-noframe.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\index.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\help-doc.html...
        Generating \jglick-laptop\test\test146948\dist\javadoc\stylesheet.css...

        C:\Documents and Settings\dev>dir c:\jglick-laptop\test\test146948\dist\javadoc
         Volume in drive C has no label.
         Volume Serial Number is 6095-90C6

         Directory of c:\jglick-laptop\test\test146948\dist\javadoc

        09/30/2008 02:16 PM <DIR> .
        09/30/2008 02:16 PM <DIR> ..
        09/30/2008 02:16 PM 723 allclasses-frame.html
        09/30/2008 02:16 PM 703 allclasses-noframe.html
        09/30/2008 02:16 PM 4,906 constant-values.html
        09/30/2008 02:16 PM 4,842 deprecated-list.html
        09/30/2008 02:16 PM 8,729 help-doc.html
        09/30/2008 02:16 PM 5,593 index-all.html
        09/30/2008 02:16 PM 1,319 index.html
        09/30/2008 02:16 PM 5,090 overview-tree.html
        09/30/2008 02:16 PM 12 package-list
        09/30/2008 02:16 PM <DIR> resources
        09/30/2008 02:16 PM 1,420 stylesheet.css
        09/30/2008 02:16 PM <DIR> test146948
                      10 File(s) 33,337 bytes
                       4 Dir(s) 11,936,428,032 bytes free

        C:\Documents and Settings\dev>
        ---%<---

        Discovered as a secondary issue in: http://www.netbeans.org/nonav/issues/show_bug.cgi?id=146948

              bpatel Bhavesh Patel (Inactive)
              nthompsosunw Nathanael Thompson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: