You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Vladimir Sitnikov <si...@gmail.com> on 2020/03/15 10:10:12 UTC

Re: [jmeter] branch master updated: Error when loading Templates on Windows

>-        Document document = bd.parse(file.getAbsolutePath());
>+        Document document = bd.parse(file.toURI().toString());

Felix, is there a reason why bd.parse(file) is not used?

Vladimir

Re: [jmeter] branch master updated: Error when loading Templates on Windows

Posted by Felix Schumacher <fe...@internetallee.de>.
Am 15.03.20 um 11:16 schrieb Felix Schumacher:
> Am 15.03.20 um 11:10 schrieb Vladimir Sitnikov:
>>> -        Document document = bd.parse(file.getAbsolutePath());
>>> +        Document document = bd.parse(file.toURI().toString());
>> Felix, is there a reason why bd.parse(file) is not used?
> Hm, good question.
>
> Maybe Philippe can answer that one, as the code came in with
> 60cef31c10f8c6545d9369d8f5b06cc828f52b5f.
>
> I assumed that the URI was wanted and corrected that one. Do you have a
> windows system, where you could test the file call?
>
> I will test it on my linux system.

It works on my machine :) So I have committed it.

Thanks for the notice.

Felix

>
> Felix
>
>> Vladimir
>>

Re: [jmeter] branch master updated: Error when loading Templates on Windows

Posted by Felix Schumacher <fe...@internetallee.de>.
Am 15.03.20 um 11:10 schrieb Vladimir Sitnikov:
>> -        Document document = bd.parse(file.getAbsolutePath());
>> +        Document document = bd.parse(file.toURI().toString());
> Felix, is there a reason why bd.parse(file) is not used?

Hm, good question.

Maybe Philippe can answer that one, as the code came in with
60cef31c10f8c6545d9369d8f5b06cc828f52b5f.

I assumed that the URI was wanted and corrected that one. Do you have a
windows system, where you could test the file call?

I will test it on my linux system.

Felix

>
> Vladimir
>