Hi there,
I am using PlantUML for a while now, and rendering PNGs works fine. And I am using ANT (well using BATCH would lead to the same error).
Using this code I can generate a PNG
@startuml
start
partition "test" {
}
end
@enduml
but trying to generate a PDF leads to the following error stack.
C:\Users\mschmitz\IdeaProjects\coca-dokumentation\temp\build.xml:11: java.lang.UnsupportedOperationException
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.Main.start(Main.java:198)
at org.apache.tools.ant.Main.main(Main.java:286)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:30)
Caused by: java.lang.UnsupportedOperationException
at net.sourceforge.plantuml.graphic.GraphicStrings.exportDiagram(GraphicStrings.java:161)
at net.sourceforge.plantuml.PSystemError.exportDiagram(PSystemError.java:96)
at net.sourceforge.plantuml.PSystemUtils.exportDiagramsDefault(PSystemUtils.java:126)
at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:70)
at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:130)
at net.sourceforge.plantuml.ant.PlantUmlTask.doFile(PlantUmlTask.java:202)
at net.sourceforge.plantuml.ant.PlantUmlTask.processingSingleFile(PlantUmlTask.java:188)
at net.sourceforge.plantuml.ant.PlantUmlTask.manageFileSet(PlantUmlTask.java:160)
at net.sourceforge.plantuml.ant.PlantUmlTask.execute(PlantUmlTask.java:107)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
... 16 more
Greetings,
DaRolla