Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jenkins
slm-fileview
Commits
9a4c8644
Commit
9a4c8644
authored
Aug 24, 2021
by
Yiding He
Committed by
kl
Aug 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重命名 env()
parent
a3081ef4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ConfigUtils.java
.../java/org/artofsolving/jodconverter/util/ConfigUtils.java
+2
-2
No files found.
office-plugin/src/main/java/org/artofsolving/jodconverter/util/ConfigUtils.java
View file @
9a4c8644
...
...
@@ -31,7 +31,7 @@ public class ConfigUtils {
// 获取环境变量,如果找不到则返回默认值
@SuppressWarnings
(
"SameParameterValue"
)
private
static
String
env
(
String
key
,
String
def
)
{
private
static
String
getEnvOrDefault
(
String
key
,
String
def
)
{
String
value
=
System
.
getenv
(
key
);
return
value
==
null
?
def
:
value
;
}
...
...
@@ -48,7 +48,7 @@ public class ConfigUtils {
public
static
String
getOfficePluginPath
()
{
String
userDir
=
System
.
getProperty
(
"user.dir"
);
String
binFolder
=
env
(
"KKFILEVIEW_BIN_FOLDER"
,
userDir
);
String
binFolder
=
getEnvOrDefault
(
"KKFILEVIEW_BIN_FOLDER"
,
userDir
);
File
pluginPath
=
new
File
(
binFolder
);
...
...
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