-
Notifications
You must be signed in to change notification settings - Fork 566
Added environment variable resolution to the include directive in a config file #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@@ -138,7 +138,11 @@ | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_Unicode|Win32'"> | ||
<Link> | ||
<AdditionalDependencies>Qt5Cored.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
<AdditionalLibraryDirectories>C:\Qt\5.6.0\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not add the changes to the Visual Studio project files to the pull request.
@@ -140,6 +140,7 @@ namespace log4cplus { | ||
|
||
// Methods | ||
void init(log4cplus::tistream& input); | ||
bool substitueEnvVariables(tstring &fileName, tstring &modFileName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remote all tabs from the source.
@@ -786,7 +768,6 @@ Global | ||
{7EFABA06-71CD-498F-BF10-C41A7D2DCF3B} = {92DEA81D-81ED-4283-BBC7-41975647F69E} | ||
{AE4CF05D-9770-4BF2-BB73-1DA37E2A1508} = {92DEA81D-81ED-4283-BBC7-41975647F69E} | ||
{C0C6F651-99D8-404E-B2EC-507B261E820C} = {DAFB5F7D-6AF3-4D4F-B6D3-C1049A1259DA} | ||
{18B64AA1-A2F7-46BE-8D48-7882AA471FA9} = {DAFB5F7D-6AF3-4D4F-B6D3-C1049A1259DA} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not add the changes to the Visual Studio project files to the pull request.
{ | ||
tstring included (buffer, 8) ; | ||
trim_ws (included); | ||
else if (buffer.compare(0, 7, LOG4CPLUS_TEXT("include")) == 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove tabs.
|
||
init (file); | ||
} | ||
} | ||
} | ||
|
||
bool | ||
Properties::substitueEnvVariables(tstring &fileName, tstring &modFileName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure that we need a new function for this. There is already a function substVars()
in configurator.cxx
. It seems it should be used here as well. If so, you can probably move it from anonymous namespace into internal
namespace and make it visible to the property.cxx
and use it there.
Sorry about the changes in the visual studio projects. I’m new to Git, and it’s a little different from other CMS packages. I’ll look into your suggestion about substVars() log4cplus/src/configurator.cxx Line 102 in 078ee67
For now, just reject the pull request. Regards, From: Václav Haisman [mailto:notifications@github.com] @wilx requested changes on this pull request. In msvc14/Qt5DebugAppender.vcxprojhttps://github.com//pull/200#pullrequestreview-3201271:
Do not add the changes to the Visual Studio project files to the pull request. In include/log4cplus/helpers/property.hhttps://github.com//pull/200#pullrequestreview-3201271:
Please remote all tabs from the source. In msvc14/log4cplus.slnhttps://github.com//pull/200#pullrequestreview-3201271:
Do not add the changes to the Visual Studio project files to the pull request. In src/property.cxxhttps://github.com//pull/200#pullrequestreview-3201271:
Remove tabs. In src/property.cxxhttps://github.com//pull/200#pullrequestreview-3201271:
} +bool +Properties::substitueEnvVariables(tstring &fileName, tstring &modFileName) I am not sure that we need a new function for this. There is already a function substVars() log4cplus/src/configurator.cxx Line 102 in 078ee67
— |
Added environment variable resolution to the include directive in a config file