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

Ziller Eike Eike.Ziller at digia.com
Tue Oct 1 17:01:11 CEST 2013


On 01.10.2013, at 15:02, Orgad Shaneh <orgads at gmail.com> wrote:

> 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).

Hm, fancy. I thought I had explicitly tried this again, but you are right, $VAR also works for me on Mac.

Sorry for the confusion.

++ Eike

-- 
Eike Ziller, Senior Software Engineer - Digia, Qt
 
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B




More information about the Qt-creator mailing list