jelovirt / pdf-generator

DITA-OT PDF plug-in generator
https://dita-generator.elovirta.com/
Apache License 2.0
12 stars 5 forks source link

Template property doesn't work with relative path #35

Closed jelovirt closed 2 years ago

jelovirt commented 3 years ago

When template property is a relative path, it's always resolved against DITA-OT installation directory. It should be resolved against current directory.

infotexture commented 2 years ago

@jelovirt Looks like I ran into this when setting a relative path for the --theme option:

$ dita --project=samples/project-files/pdf.xml \
             --theme=samples/themes/theme.yaml \
    [theme] java.io.FileNotFoundException: /path/to/dita-ot/samples/themes/theme.yaml (No such file or directory)

The --theme option is likely to be used in CI environments, so would be good to support relative paths there.