Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Utility for resolving environment variables

Speaking about resolver, why it cannot resolve ${project_name}? Configuration descriptor does belong to a project,
so this should know what project we are talking about. If this variable is not right one, which one would be to represent project
to which this build configuration belongs?

On Wed, Oct 15, 2014 at 2:23 PM, Andrew Gvozdev <angvoz.dev@xxxxxxxxx> wrote:
Hi Mohamed,
There is CdtVariableManager which will resolve environment variables, build variables, eclipse variables:

ICdtVariableManager varManager = CCorePlugin.getDefault().getCdtVariableManager();
String resolvedValue = varManager.resolveValue(value, "", null, cfgDescription);

Thanks,
Andrew


On Tue, Oct 14, 2014 at 2:00 PM, Azab, Mohamed <Mohamed_Azab@xxxxxxxxxx> wrote:

Hi,

 

I am trying to add support for using environment variables in some path fields, and I was wondering

if there is a utility somewhere in CDT or eclipse that substitutes environment variables in a string as StringVariableManager.performStringSubstitution() does

for eclipse variables?

 

Thanks,

Mohamed Azab

 


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top