Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Spot
spins-ltsmin-deb
Commits
268f5b2d
Commit
268f5b2d
authored
Mar 08, 2013
by
Alfons Laarman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SpinS path convertion
parent
582d5597
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/spins/Compile.java
src/spins/Compile.java
+4
-4
No files found.
src/spins/Compile.java
View file @
268f5b2d
...
...
@@ -51,8 +51,8 @@ public class Compile {
final
boolean
verbose
)
{
try
{
Preprocessor
.
setFilename
(
promFile
.
getName
());
String
path
=
promFile
.
getAbsolute
Path
();
Preprocessor
.
setDirname
(
path
.
substring
(
0
,
path
.
lastIndexOf
(
"/"
))
);
String
path
=
promFile
.
getAbsolute
File
().
getParent
();
Preprocessor
.
setDirname
(
path
);
System
.
out
.
print
(
"Start parsing "
+
promFile
.
getName
()
+
"..."
);
final
Promela
prom
=
new
Promela
(
new
FileInputStream
(
promFile
));
...
...
@@ -205,8 +205,8 @@ public class Compile {
if
(
preprocessor
.
isSet
())
{
Preprocessor
.
setFilename
(
file
.
getName
());
String
path
=
file
.
getAbsolute
Path
();
Preprocessor
.
setDirname
(
path
.
substring
(
0
,
path
.
lastIndexOf
(
"/"
))
);
String
path
=
file
.
getAbsolute
File
().
getParent
();
Preprocessor
.
setDirname
(
path
);
PromelaTokenManager
tm
;
try
{
tm
=
new
PromelaTokenManager
(
null
,
new
SimpleCharStream
(
new
FileInputStream
(
file
)));
...
...
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