Uploaded image for project: 'Tattletale'
  1. Tattletale
  2. TTALE-203

IOException when creating WAR directory on Windows

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 1.2.0.Beta1
    • Fix Version/s: None
    • Component/s: Analyzer
    • Labels:
      None

      Description

      The code in Extractor.extract() that sets fileName will not work on Windows. Note the interesting path name in this exception:

      java.io.IOException: Could not create C:\Users\xxx\AppData\Local\Temp\c:\tattle\xxx\xxx.war
      at org.jboss.tattletale.analyzers.Extractor.extract(Extractor.java:73)
      at org.jboss.tattletale.analyzers.WarScanner.scan(WarScanner.java:91)
      at org.jboss.tattletale.Main.execute(Main.java:596)
      at org.jboss.tattletale.Main.main(Main.java:1085)

      If you are going to append the full canonical path of the WAR file to the canonical path of the temp directory, you will need to remove the drive letter from the WAR file path first!

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jesper.pedersen Jesper Pedersen
                Reporter:
                peterj Peter Johnson
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: