Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PepTraq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bruno Zanuttini
PepTraq
Commits
ca43afe0
Commit
ca43afe0
authored
3 years ago
by
Bruno Zanuttini
Browse files
Options
Downloads
Patches
Plain Diff
Fixed problem with reading resources under Windows (prevented from launching at all)
parent
d0d180b6
Branches
Branches containing commit
Tags
peptraq2.1
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
peptraq/src/main/java/fr/unicaen/aasuite/main/GUI.java
+1
-1
1 addition, 1 deletion
peptraq/src/main/java/fr/unicaen/aasuite/main/GUI.java
peptraq/src/main/java/fr/unicaen/aasuite/main/Resources.java
+2
-2
2 additions, 2 deletions
peptraq/src/main/java/fr/unicaen/aasuite/main/Resources.java
with
3 additions
and
3 deletions
peptraq/src/main/java/fr/unicaen/aasuite/main/GUI.java
+
1
−
1
View file @
ca43afe0
...
...
@@ -14,7 +14,7 @@ import fr.unicaen.aasuite.sessions.Session;
public
class
GUI
{
/** The version of this application. */
public
static
final
String
VERSION
=
"2.
0
"
;
public
static
final
String
VERSION
=
"2.
1
"
;
/** The option name for the data directory. */
public
static
final
String
DATA_DIR_OPTION
=
"--data-directory"
;
...
...
This diff is collapsed.
Click to expand it.
peptraq/src/main/java/fr/unicaen/aasuite/main/Resources.java
+
2
−
2
View file @
ca43afe0
...
...
@@ -40,7 +40,7 @@ public class Resources {
public
static
final
String
BUILDER_PROPERTY_FILE
=
"builders.properties"
;
public
static
BufferedReader
getReader
(
String
resourceName
)
throws
IOException
{
InputStream
stream
=
Resources
.
class
.
getResource
(
"/"
+
RESOURCE_DIR
+
File
.
separator
+
resourceName
)
InputStream
stream
=
Resources
.
class
.
getResource
(
"/"
+
RESOURCE_DIR
+
"/"
+
resourceName
)
.
openStream
();
return
new
BufferedReader
(
new
InputStreamReader
(
stream
));
}
...
...
@@ -67,7 +67,7 @@ public class Resources {
}
public
static
Properties
getProperties
(
String
name
)
throws
IOException
{
InputStream
stream
=
Resources
.
class
.
getResource
(
"/"
+
RESOURCE_DIR
+
File
.
separator
+
name
).
openStream
();
InputStream
stream
=
Resources
.
class
.
getResource
(
"/"
+
RESOURCE_DIR
+
"/"
+
name
).
openStream
();
Properties
res
=
new
Properties
();
res
.
load
(
stream
);
return
res
;
...
...
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