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

Add Windows support compatibility #3

Open
GoogleCodeExporter opened this issue Mar 30, 2015 · 0 comments
Open

Add Windows support compatibility #3

GoogleCodeExporter opened this issue Mar 30, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hello,

First, I'd like to tell I like this filter that make asciidoc documentation a 
professionnal look.

BTW, I've found some issues on windows platforms (XP / Vista) and I'd like to 
share my experience, and the solution I found it (should be compatible also to 
all unix platform).

First:
- install your script with asciidoc 8.6.8 as described, and check it with 
command "asciidoc.py --filter list"

C:\asciidoc-8.6.8>asciidoc.py --filter list
C:\asciidoc-8.6.8\filters\code
C:\asciidoc-8.6.8\filters\graphviz
C:\asciidoc-8.6.8\filters\latex
C:\asciidoc-8.6.8\filters\music
C:\asciidoc-8.6.8\filters\source
C:\Documents and Settings\crossbow\.asciidoc\filters\plantuml

Notice the directory with blank character (this is the first part on 
compatibility issue)

Second: 
- Edit a new text file with only your sequence diagram (see wiki example)

Last: 
- run asciidoc command to generate html output

No results but error messages :

1. due to asciidoc filter installation on "C:\Documents and 
Settings\USERNAME\.asciidoc\filters\plantuml"

==> fix line 121 of acplantuml.py and protect path with double-quote

Replace 
    cmd = 'java -jar %s/plantuml.jar -T%s -quiet "%s" > "%s"' % (
By
    cmd = 'java -jar "%s/plantuml.jar" -T%s -quiet "%s" > "%s"' % (

2. due to a java.io.FileNotFoundException, (limited ouput)
Execute: java -jar "C:\Documents and 
Settings\crossbow\.asciidoc\filters\plantuml/plantuml.jar" -debug -Tpng -quiet 
"C:\tmp/sequence.txt" > "C:\tmp\sequence.png"
java.io.FileNotFoundException: C:\tmp\sequence.png (Le processus ne peut pas 
accÚder au fichier car ce fichier est utilisÚ par un autre processus)

=> fix line 121 of acplantuml.py 

Replace
    cmd = 'java -jar %s/plantuml.jar -T%s -quiet "%s" > "%s"' % (
        filter_path, self.options.format, infile, outfile)
By
    cmd = 'java -jar "%s/plantuml.jar" -T%s -quiet "%s" -o "%s"' % (
        filter_path, self.options.format, infile, outdir)

And all goes fine for me !

Regards
Laurent Laville

Original issue reported on code.google.com by laurent....@gmail.com on 1 Aug 2012 at 12:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant