nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef4476b
)
contrib/jwrapper: create the tmp directory as needed
author
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 3 Aug 2015 16:24:52 +0000
(12:24 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 5 Aug 2015 01:37:53 +0000
(21:37 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
contrib/jwrapper/src/jwrapper.nit
patch
|
blob
|
history
diff --git
a/contrib/jwrapper/src/jwrapper.nit
b/contrib/jwrapper/src/jwrapper.nit
index
0a84fa9
..
826ce6c
100644
(file)
--- a/
contrib/jwrapper/src/jwrapper.nit
+++ b/
contrib/jwrapper/src/jwrapper.nit
@@
-90,9
+90,11
@@
for input in opts.rest do
else if ext == "javap" then
javap_files.add input
else if ext == "jar" then
- var out_dir = "tmp"
clock.lapse
+ var out_dir = "tmp"
+ if not out_dir.file_exists then out_dir.mkdir
+
if opt_verbose.value > 0 then print "# Extracting {input}"
# Extract all files