hello,
By using
options.setToDir ("/tmp");
or
options.setToDir ("tmp");
I get:
SEVERE: (IOError) target directory does not exist: /tmp
Exception in thread "main" org.asciidoctor.internal.AsciidoctorCoreException: org.jruby.exceptions.RaiseException: (IOError) target directory does not exist: /tmp
at org.asciidoctor.internal.JRubyAsciidoctor.convertFile(JRubyAsciidoctor.java:539)
at org.asciidoctor.internal.JRubyAsciidoctor.convertFile(JRubyAsciidoctor.java:511)
at org.asciidoctor.internal.JRubyAsciidoctor.renderFile(JRubyAsciidoctor.java:265)
at org.asciidoctor.internal.JRubyAsciidoctor.renderFile(JRubyAsciidoctor.java:350)
...
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.execution.application.AppMain.main(AppMain.java:140)
Caused by: org.jruby.exceptions.RaiseException: (IOError) target directory does not exist: /tmp
at RUBY.convert(/mnt/d2/repository/org/asciidoctor/asciidoctorj/1.6.0-SNAPSHOT/asciidoctorj-1.6.0-SNAPSHOT.jar!/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1489)
at RUBY.convert_file(/mnt/d2/repository/org/asciidoctor/asciidoctorj/1.6.0-SNAPSHOT/asciidoctorj-1.6.0-SNAPSHOT.jar!/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1562)
at RUBY.convertFile(<script>:68)
at org.jruby.gen.InterfaceImpl1111357250.convertFile(org/jruby/gen/InterfaceImpl1111357250.gen:13)
Obviously, /tmp exist and is writable...