Skip to content
Snippets Groups Projects
Commit 52360cf0 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

plantuml is weird

parent 625b9006
No related branches found
No related tags found
No related merge requests found
Pipeline #6417 passed
FROM texlive/texlive 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 COPY tikz-uml.sty /usr/local/texlive/2020/texmf-dist/tex/latex/tikz-uml/tikz-uml.sty
RUN mktexlsr RUN mktexlsr
COPY gen_seq_diag.py / COPY gen_seq_diag.py /
......
...@@ -5,7 +5,6 @@ import ( ...@@ -5,7 +5,6 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"os" "os"
"os/exec"
"regexp" "regexp"
"strings" "strings"
) )
...@@ -34,8 +33,6 @@ var Classdiag = Subcommand{ ...@@ -34,8 +33,6 @@ var Classdiag = Subcommand{
classes = resolveDocsFromInheritance(classes) classes = resolveDocsFromInheritance(classes)
makePlantUML(classes) makePlantUML(classes)
fakePipeline()
}, },
Help: "create and parse javadoc from code", Help: "create and parse javadoc from code",
} }
...@@ -203,22 +200,3 @@ func genPlantUMLStr(classes map[string]*Class) { ...@@ -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)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment