Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23833

asdoc dies with exception if a directory is created in <sdk>/asdoc/templates/images

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • Adobe Flex SDK 4.0 (Release)
    • None
    • ASDoc Tool
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a directory in <sdk>/asdoc/templates/images
      2. Run asdoc

      Actual Results:

      java.io.FileNotFoundException: <sdk>/asdoc/templates/images/<dir> (Access is denied)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:106)
      at flex2.compiler.asdoc.AsDocAPI.copyFile(AsDocAPI.java:708)
      at flex2.compiler.asdoc.AsDocAPI.copyFiles(AsDocAPI.java:698)
      at flex2.tools.ASDoc.asdoc(ASDoc.java:102)
      at flex2.tools.ASDoc.main(ASDoc.java:35)

      Expected Results:

      The directory is ignored, or its contents copied.

      Workaround (if any):

      Rename the directory to start with a . or mark as read-only prior to running asdoc.

      Fix (basic):

      Change line 750 in modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java from

      if (f.getName().startsWith(".") || f.isHidden() || !f.canRead())

      to

      if (f.getName().startsWith(".") || f.isHidden() || !f.canRead() || f.isDirectory())

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: