You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by "Peter Doornbosch (JIRA)" <ji...@apache.org> on 2013/03/08 08:26:13 UTC

[jira] [Created] (ACE-338) DeploymentPackageTask throws exception on Windows

Peter Doornbosch created ACE-338:
------------------------------------

             Summary: DeploymentPackageTask throws exception on Windows
                 Key: ACE-338
                 URL: https://issues.apache.org/jira/browse/ACE-338
             Project: ACE
          Issue Type: Bug
          Components: Build
    Affects Versions: 0.8.1-incubator
         Environment: windows
            Reporter: Peter Doornbosch


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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira