Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BraillePlot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Georg Graßnick
BraillePlot
Commits
07f54cbd
Commit
07f54cbd
authored
5 years ago
by
Leonard Kupper
Browse files
Options
Downloads
Patches
Plain Diff
Fix old comment and catch empty include filename.
parent
1a8680fc
No related branches found
No related tags found
1 merge request
!19
Feat/configparser update 29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/tudresden/inf/mci/brailleplot/configparser/JavaPropertiesConfigurationParser.java
+4
-1
4 additions, 1 deletion
...eplot/configparser/JavaPropertiesConfigurationParser.java
with
4 additions
and
1 deletion
src/main/java/de/tudresden/inf/mci/brailleplot/configparser/JavaPropertiesConfigurationParser.java
+
4
−
1
View file @
07f54cbd
...
@@ -13,7 +13,6 @@ import java.util.Stack;
...
@@ -13,7 +13,6 @@ import java.util.Stack;
*/
*/
public
final
class
JavaPropertiesConfigurationParser
extends
ConfigurationParser
{
public
final
class
JavaPropertiesConfigurationParser
extends
ConfigurationParser
{
//ArrayList<String> mInclusionStack;
Stack
<
File
>
mInclusionStack
=
new
Stack
<>();
Stack
<
File
>
mInclusionStack
=
new
Stack
<>();
/**
/**
...
@@ -86,6 +85,10 @@ public final class JavaPropertiesConfigurationParser extends ConfigurationParser
...
@@ -86,6 +85,10 @@ public final class JavaPropertiesConfigurationParser extends ConfigurationParser
abstractPath
=
new
File
(
findIncludePath
+
".properties"
);
abstractPath
=
new
File
(
findIncludePath
+
".properties"
);
}
}
includeFile
=
abstractPath
.
getCanonicalFile
();
includeFile
=
abstractPath
.
getCanonicalFile
();
if
(!
includeFile
.
isFile
())
{
throw
new
ConfigurationParsingException
(
"Given include path is not a file: "
+
includeFile
);
}
System
.
out
.
println
(
"Include file: "
+
includeFile
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
ConfigurationParsingException
(
"Can not find include file."
,
e
);
throw
new
ConfigurationParsingException
(
"Can not find include file."
,
e
);
}
}
...
...
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