You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ace.apache.org by peter <li...@heuvelop.nl> on 2013/03/07 22:29:45 UTC
bug in DeploymentPackageTask on Windows
Hi,
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)
Do you want me to open a Jira issue?
Regards
Peter
Re: bug in DeploymentPackageTask on Windows
Posted by Peter <li...@heuvelop.nl>.
Marcel Offermans schreef op 2013-03-07 22:39:
> Hello Peter,
>
> Yes, please create a Jira issue for this and attach the patch to it!
Done: https://issues.apache.org/jira/browse/ACE-338
> And thanks for contributing it.
I should thank you for sharing this project in the first place ;-).
Regards
Peter
>
> Greetings, Marcel
>
>
> On Mar 7, 2013, at 22:29 PM, peter <li...@heuvelop.nl> wrote:
>
>> Hi,
>>
>> 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)
>>
>> Do you want me to open a Jira issue?
>>
>> Regards
>> Peter
>>
>>
>> <DeploymentPackageTask.patch>
Re: bug in DeploymentPackageTask on Windows
Posted by Marcel Offermans <ma...@luminis.nl>.
Hello Peter,
Yes, please create a Jira issue for this and attach the patch to it! And thanks for contributing it.
Greetings, Marcel
On Mar 7, 2013, at 22:29 PM, peter <li...@heuvelop.nl> wrote:
> Hi,
>
> 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)
>
> Do you want me to open a Jira issue?
>
> Regards
> Peter
>
>
> <DeploymentPackageTask.patch>