diff --git a/Dockerfile b/Dockerfile index 7ebb3942371bb362a12f4c04b18cebbcd166eec9..58a520f126c69a1671c164c0055f1e518ccad8cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM texlive/texlive -RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get -y upgrade && apt-get -y install inkscape plantuml openjdk-11-jdk-headless hunspell hunspell-hu hunspell-en-gb hunspell-en-us python3-pip && pip3 install javalang +RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get -y upgrade && apt-get -y install plantuml openjdk-11-jdk-headless hunspell hunspell-hu hunspell-en-gb hunspell-en-us python3-pip && pip3 install javalang COPY tikz-uml.sty /usr/local/texlive/2020/texmf-dist/tex/latex/tikz-uml/tikz-uml.sty RUN mktexlsr COPY gen_seq_diag.py / diff --git a/plab/classdiag.go b/plab/classdiag.go index 67de95c93a6067e1fdccbd822715bf01107803c0..b3c7b7f64e6f75675c3ff3d2c9ea38e0961bb3d0 100644 --- a/plab/classdiag.go +++ b/plab/classdiag.go @@ -5,7 +5,6 @@ import ( "fmt" "io/ioutil" "os" - "os/exec" "regexp" "strings" ) @@ -34,8 +33,6 @@ var Classdiag = Subcommand{ classes = resolveDocsFromInheritance(classes) makePlantUML(classes) - - fakePipeline() }, Help: "create and parse javadoc from code", } @@ -203,22 +200,3 @@ func genPlantUMLStr(classes map[string]*Class) { } } - -func fakePipeline() { - cmd := exec.Command("plantuml", "-tsvg", classFile) - b, e := cmd.CombinedOutput() - if e != nil { - fmt.Println(string(b)) - panic(e) - } - - outfile := strings.ReplaceAll(classFile, ".txt", ".eps") - cmd = exec.Command("inkscape", "-o", outfile, strings.ReplaceAll(classFile, ".txt", ".svg")) - b, e = cmd.CombinedOutput() - if e != nil { - fmt.Println(string(b)) - panic(e) - } - - fmt.Println(outfile) -}