git-svn-id: https://projects.brucker.ch/su4sml/svn/infsec-import/trunk/src/su4sml@6313 3260e6d1-4efc-4170-b0a7-36055960796d
This commit is contained in:
parent
f4e8f1e9f9
commit
1f14f8e345
|
@ -505,12 +505,14 @@ exception FileNotFound of string
|
|||
|
||||
fun importArgoUML file =
|
||||
let
|
||||
fun basename f = ((hd o rev) o (String.fields (fn x => x = #"/"))) f
|
||||
|
||||
val tmpFile = OS.FileSys.tmpName ()
|
||||
val base = if String.isSuffix ".zargo" file
|
||||
then String.substring(file,0, (String.size file) -6)
|
||||
else file
|
||||
val _ = print ("*** Syscall: unzip -ca "^base^".zargo "^base^".xmi > "^tmpFile^"\n")
|
||||
val _ = OS.Process.system ("unzip -ca "^base^".zargo "^base^".xmi > "^tmpFile)
|
||||
val _ = print ("*** Syscall: unzip -ca "^base^".zargo "^(basename base)^".xmi > "^tmpFile^"\n")
|
||||
val _ = OS.Process.system ("unzip -ca "^base^".zargo "^(basename base)^".xmi > "^tmpFile)
|
||||
val model = readFile tmpFile
|
||||
val _ = OS.FileSys.remove tmpFile
|
||||
|
||||
|
|
Loading…
Reference in New Issue