Cargo
  1. Cargo
  2. CARGO-470

FileNotFoundException in FileUtils.copyFile when specifying relative paths

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.9
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Windows XP, Linux 2.6.19 JDK1.4-JDK1.6 (from and inclusive)
    • Complexity:
      Intermediate
    • Tested on JDKs:
      The above specified
    • Number of attachments :
      1

      Description

      FileUtils.copyFile(String, String) throws a FNFE when specifying a relative source file.
      This strikes in the m2 build of samples/java while running jbossNx tests, causing the testDeployWarDefinedWithRelativePath to fail.

      1. CARGO-470.patch
        0.7 kB
        David J. M. Karlsen

        Activity

        Hide
        David J. M. Karlsen added a comment -

        use
        new File(filename).getAbsolutePath() for source and target file in FileUtils.copyFile(String,String)

        Show
        David J. M. Karlsen added a comment - use new File(filename).getAbsolutePath() for source and target file in FileUtils.copyFile(String,String)
        Hide
        Vincent Massol added a comment -

        Applied (with some modifications), thanks!

        Show
        Vincent Massol added a comment - Applied (with some modifications), thanks!

          People

          • Assignee:
            David J. M. Karlsen
            Reporter:
            David J. M. Karlsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: