Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadCommandSystem
Commits
5203a6c6
Commit
5203a6c6
authored
Aug 24, 2020
by
helene ortiz
Browse files
Modifications following parameter added in getFileContent
parent
652868f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/ill/ics/bridge/ResourceManager.java
View file @
5203a6c6
...
...
@@ -86,8 +86,8 @@ public class ResourceManager {
}
public
String
getFileContent
(
String
fileName
)
throws
ResourceNotFoundException
{
return
CommandZoneAccessor
.
getInstance
(
serverId
).
getFileContent
(
fileName
);
public
String
getFileContent
(
String
fileName
,
boolean
addServerHome
)
throws
ResourceNotFoundException
{
return
CommandZoneAccessor
.
getInstance
(
serverId
).
getFileContent
(
fileName
,
addServerHome
);
}
...
...
src/main/java/fr/ill/ics/nscclient/command/CommandZoneAccessor.java
View file @
5203a6c6
...
...
@@ -3214,7 +3214,7 @@ public class CommandZoneAccessor {
}
public
synchronized
String
getFileContent
(
String
fileName
)
throws
ResourceNotFoundException
{
public
synchronized
String
getFileContent
(
String
fileName
,
boolean
addServerHome
)
throws
ResourceNotFoundException
{
// Create the message type.
CommandZoneRequests
.
Message
type
=
CommandZoneRequests
.
Message
.
newBuilder
()
...
...
@@ -3223,6 +3223,7 @@ public class CommandZoneAccessor {
// Create the request.
CommandZoneRequests
.
GetFileContentRequest
request
=
CommandZoneRequests
.
GetFileContentRequest
.
newBuilder
()
.
setFileName
(
fileName
)
.
setAddServerHome
(
addServerHome
)
.
build
();
commandBoxRequester
.
sendTwoParts
(
type
.
toByteArray
(),
request
.
toByteArray
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment