[Qt-creator] Using environment variables with custom External Tools

Orgad Shaneh orgads at gmail.com
Tue Oct 1 15:02:16 CEST 2013


On Mon, Sep 30, 2013 at 1:57 PM, Orgad Shaneh <orgads at gmail.com> wrote:

> On Mon, Sep 30, 2013 at 1:07 PM, Tomasz Olszak <olszak.tomasz at gmail.com>wrote:
>
>> 2013/9/30 Ziller Eike <Eike.Ziller at digia.com>
>>
>>>
>>> On 28.09.2013, at 19:34, achartier at fastmail.fm wrote:
>>>
>>> > Hi,
>>> >
>>> > I have a bundle of custom External Tools configured in Qt Creator that
>>> I
>>> > want to share with the rest of my team. I'd like to be able to use some
>>> > environment variables I have defined in the arguments that get passed
>>> to
>>> > these scripts. Unfortunately, when I try using an environment variable
>>> > in the Arguments textbox when defining the external tool in Qt Creator,
>>> > it doesn't seem to be picking up and interpreting the environment
>>> > variable.
>>> >
>>> > Can arbitrary environment variables be used in this case?
>>>
>>> No.
>>> Br, Eike
>>>
>>> If they are custom commands then just wrap them in some shell scripts
>> which will resolve env variables.
>>
>> --
>> regards / pozdrawiam, Tomasz Olszak
>>
>>
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>>
> Patch proposal: https://codereview.qt-project.org/66896
>
> - Orgad
>

Hi,

This patch is not needed. %VAR% works well on Windows (and $VAR should work
on Linux).

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20131001/b7cc4928/attachment.html>


More information about the Qt-creator mailing list