Uploaded image for project: 'ACE'
  1. ACE
  2. ACE-338

DeploymentPackageTask throws exception on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.1-incubator
    • 1.0.0
    • Build
    • None
    • windows

    Description

      Running the DeploymentPackageTask on Windows leads to the this weird error: "Error building deployment package: C" ....?

      This is caused by a file URL that is constructed in a platform dependent way that does not work in windows. The "C" in the message comes from the root cause: UnknownHostException .

      The platform independent way is to use File.toURI().toURL(). I attached a patch (tested on windows and osx).

      This patch also includes a warning when no files were selected, which, in cases no files are found, is a lot more usefull than logging the files that are found (especially for newbies)

      Attachments

        1. DeploymentPackageTask.patch
          0.9 kB
          Peter Doornbosch

        Activity

          People

            Unassigned Unassigned
            peterd Peter Doornbosch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: