Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
bbaa4efc
Commit
bbaa4efc
authored
6 years ago
by
Auke Klazema
Browse files
Options
Downloads
Plain Diff
SW-595
: Merge task branch back to release branch
parents
68582813
2815908e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
LCS/Common/include/Common/LofarLocators.h
+7
-4
7 additions, 4 deletions
LCS/Common/include/Common/LofarLocators.h
LCS/Common/src/FileLocator.cc
+1
-0
1 addition, 0 deletions
LCS/Common/src/FileLocator.cc
MAC/GCF/TM/src/GCF_Scheduler.cc
+2
-1
2 additions, 1 deletion
MAC/GCF/TM/src/GCF_Scheduler.cc
with
10 additions
and
5 deletions
LCS/Common/include/Common/LofarLocators.h
+
7
−
4
View file @
bbaa4efc
...
@@ -45,11 +45,14 @@ public:
...
@@ -45,11 +45,14 @@ public:
#define CONFIG_SUB_DIR "etc"
#define CONFIG_SUB_DIR "etc"
// Create a ConfigLocator with a default search path.
// Create a ConfigLocator with a default search path.
ConfigLocator
()
:
FileLocator
()
ConfigLocator
()
:
FileLocator
()
{
{
setSubdir
(
CONFIG_SUB_DIR
);
}
setSubdir
(
CONFIG_SUB_DIR
);
addPathAtFront
(
"$HOME/.lofar"
);
}
// Create a ConfigLocator with a predefined search path.
// Create a ConfigLocator with a predefined search path.
explicit
ConfigLocator
(
const
string
&
aPath
)
:
FileLocator
(
aPath
)
explicit
ConfigLocator
(
const
string
&
aPath
)
:
FileLocator
(
aPath
)
{
{
setSubdir
(
CONFIG_SUB_DIR
);
}
setSubdir
(
CONFIG_SUB_DIR
);
}
private
:
private
:
ConfigLocator
(
const
ConfigLocator
&
that
);
ConfigLocator
(
const
ConfigLocator
&
that
);
...
...
This diff is collapsed.
Click to expand it.
LCS/Common/src/FileLocator.cc
+
1
−
0
View file @
bbaa4efc
...
@@ -242,6 +242,7 @@ string FileLocator::locate (const string& aFile)
...
@@ -242,6 +242,7 @@ string FileLocator::locate (const string& aFile)
else
{
// test subdir
else
{
// test subdir
fullname
+=
itsSubdir
+
"/"
+
aFile
;
fullname
+=
itsSubdir
+
"/"
+
aFile
;
}
}
result
=
stat
(
fullname
.
c_str
(),
&
fileStat
);
result
=
stat
(
fullname
.
c_str
(),
&
fileStat
);
if
(
result
==
0
)
{
// found?
if
(
result
==
0
)
{
// found?
return
(
fullname
);
return
(
fullname
);
...
...
This diff is collapsed.
Click to expand it.
MAC/GCF/TM/src/GCF_Scheduler.cc
+
2
−
1
View file @
bbaa4efc
...
@@ -114,7 +114,8 @@ void GCFScheduler::init(int argc, char** argv, const string& logfile)
...
@@ -114,7 +114,8 @@ void GCFScheduler::init(int argc, char** argv, const string& logfile)
ConfigLocator
aCL
;
ConfigLocator
aCL
;
string
procName
(
basename
(
argv
[
0
]));
string
procName
(
basename
(
argv
[
0
]));
string
logPropFile
(
procName
+
".log_prop"
);
string
logPropFile
(
procName
+
".log_prop"
);
// First try logpropfile <task>.log_prop
// First try logpropfile <task>.log_prop
if
(
aCL
.
locate
(
logPropFile
)
==
""
)
{
if
(
aCL
.
locate
(
logPropFile
)
==
""
)
{
// locator could not find it try defaultname
// locator could not find it try defaultname
logPropFile
=
"mac.log_prop"
;
logPropFile
=
"mac.log_prop"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment