ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Doornbosch (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACE-338) DeploymentPackageTask throws exception on Windows
Date Fri, 08 Mar 2013 07:26:13 GMT
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

Mime
View raw message