This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270251 - Launchers should support environment variables in the binary declaration.
Summary: Launchers should support environment variables in the binary declaration.
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: Dev
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-30 12:17 UTC by Alexander Simon
Modified: 2017-04-26 17:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2017-03-30 12:17:20 UTC
Run command can contains environment variables and built-in variables.
But if binary contains environment variables, IDE does not expand it.

Example:
Lets LLVM_SRC environment variables is defined default environment.
The run command:
${LLVM_SRC}/build/bin/clang++ --version
does not work.

Other use cases:
1. Expansion of additional environment variables.
Additional environment variable:
LLVM=${LLVM_SRC}/build/bin
Run command:
${LLVM}/clang++ --version

2. Run command in additional environment variables.
Additional environment variable:
LLVM=`echo ${LLVM_SRC}/build/bin`
Run command:
${LLVM}/clang++ --version

3. Run command to count binary file
Run command:
`echo ${LLVM_SRC}`/build/bin/clang++ --version

4. Run command to count binary file by additional environment variables.
Additional environment variable:
LLVM=${LLVM_SRC}/build/bin
Run command:
`echo ${LLVM}`/clang++ --version
Comment 1 Alexander Simon 2017-03-30 12:37:20 UTC
fixed in enum, branch release82, changeset 188a9c97fd8b
Comment 2 Quality Engineering 2017-04-02 02:36:13 UTC
Integrated into 'main-silver', will be available in build *201704020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ba6b2f6a3fb0
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #270251 Launchers should support environment variables in the binary declaration.
(transplanted from 188a9c97fd8b07f4a0f35b5306425bab7ffbb292)
Comment 3 ilia 2017-04-13 10:54:54 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=270251 Changesets:
    http://hg.netbeans.org/releases/rev/188a9c97fd8b # fixed Bug #270251 Launchers should support environment variables in the binary declaration.
Comment 4 Alexander Pepin 2017-04-26 17:36:48 UTC
Verified in netbeans-8.2-20170424.