Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
ProofScriptParser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sarah.grebing
ProofScriptParser
Commits
db43b73f
Commit
db43b73f
authored
Sep 27, 2018
by
Lulu Luong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added subfolder
parent
a4f363e1
Pipeline
#28430
passed with stages
in 2 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ui/src/main/java/edu/kit/iti/formal/psdbg/examples/Example.java
.../main/java/edu/kit/iti/formal/psdbg/examples/Example.java
+4
-2
No files found.
ui/src/main/java/edu/kit/iti/formal/psdbg/examples/Example.java
View file @
db43b73f
...
@@ -4,6 +4,7 @@ import edu.kit.iti.formal.psdbg.gui.controller.DebuggerMain;
...
@@ -4,6 +4,7 @@ import edu.kit.iti.formal.psdbg.gui.controller.DebuggerMain;
import
edu.kit.iti.formal.psdbg.gui.model.MainScriptIdentifier
;
import
edu.kit.iti.formal.psdbg.gui.model.MainScriptIdentifier
;
import
lombok.*
;
import
lombok.*
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FilenameUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.io.IOUtils
;
import
java.io.File
;
import
java.io.File
;
...
@@ -25,10 +26,11 @@ public abstract class Example {
...
@@ -25,10 +26,11 @@ public abstract class Example {
public
static
File
newTempFile
(
URL
url
,
String
filename
)
throws
IOException
{
public
static
File
newTempFile
(
URL
url
,
String
filename
)
throws
IOException
{
//TODO: add unterordner
File
psdbg
=
new
File
(
FileUtils
.
getTempDirectoryPath
(),
"psdbg"
);
File
psdbg
=
new
File
(
FileUtils
.
getTempDirectoryPath
(),
"psdbg"
);
File
examplefolder
=
new
File
(
psdbg
.
getPath
(),
FilenameUtils
.
removeExtension
(
filename
));
File
f
=
new
File
(
psdbg
,
filename
);
File
f
=
new
File
(
examplefolder
,
filename
);
FileUtils
.
copyURLToFile
(
url
,
f
);
FileUtils
.
copyURLToFile
(
url
,
f
);
return
f
;
return
f
;
}
}
...
...
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