Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Necessary to Escape Backslashes in Properties #102

Closed
shaneataylor opened this issue Jun 2, 2016 · 1 comment
Closed

Necessary to Escape Backslashes in Properties #102

shaneataylor opened this issue Jun 2, 2016 · 1 comment
Milestone

Comments

@shaneataylor
Copy link
Contributor

shaneataylor commented Jun 2, 2016

Raised in #81 by @markgif

I had to escape the backslashes by repeating them: \

No quotes around the path were needed, even though there are spaces in it.
Adding quotes around the path makes it fail.

(I'm using Windows 7, not sure about other OSes)

You have to escape the backslashes with \, even though the path to the ditamap does not have to use escaped backslashes (arcane!). So the following command seems to work with OT 1.7.5 without the local.properties file as described earlier:

ant -Dargs.input=C:\path\to\map\my.ditamap -Dtranstype=my-pdf -Dpdf.formatter=ah 
    -Dahf.dir=C:\\Program Files\\Antenna House\\AHFormatterV62 
    -Dahf.cmd=C:\\Program Files\\Antenna House\\AHFormatterV62
@jelovirt
Copy link
Member

jelovirt commented Jun 2, 2016

Nothing arcane about it, backslash is an escape character. The file format is described in http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html#load-java.io.Reader-

@infotexture infotexture added this to the 2.4.3 milestone Jan 10, 2017
infotexture added a commit that referenced this issue Jan 28, 2017
* develop:
  Clarify .properties precedence cascade (Fixes #46)
  Escape backslashes in .properties (Fixes #102)
  Add topic on `local.properties` file (Fixes #81)
  Remove obsolete info, update PDF2 I18N for #46
  Document additional configuration properties #46
  Add spec links on metadata cascading
  Revise `plugin.properties` description
infotexture added a commit that referenced this issue Jan 29, 2017
* hotfix/2.4.3: (28 commits)
  Implement review feedback on 2.4.3 Release Notes
  Add info on docs updates to 2.4.3 RN
  Add info on dita-ot/dita-ot#1525 to 2.4.3 RN
  Add info on dita-ot/dita-ot#2038 to 2.4.3 RN
  Add info on dita-ot/dita-ot#2522 to 2.4.3 RN
  Add info on dita-ot/dita-ot#2555 to 2.4.3 RN
  Add info on dita-ot/dita-ot#2563 to 2.4.3 RN
  Re-use `org.dita.pdf2.i18n.enabled` description
  Format & indent per project conventions
  Push extended description for PDF2 I18N
  Update index entries for configuration.properties
  Push extended description for `default.language`
  Clarify .properties precedence cascade (Fixes #46)
  Escape backslashes in .properties (Fixes #102)
  Add topic on `local.properties` file (Fixes #81)
  Remove obsolete info, update PDF2 I18N for #46
  Document additional configuration properties #46
  Add spec links on metadata cascading
  Revise `plugin.properties` description
  Add list of resolved issues to 2.4.3 Release Notes
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants