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

Problems getting the latest D4P W2D plugin to work #40

Open
pavandg2006 opened this issue Apr 18, 2019 · 3 comments
Open

Problems getting the latest D4P W2D plugin to work #40

pavandg2006 opened this issue Apr 18, 2019 · 3 comments

Comments

@pavandg2006
Copy link

Hi, I am facing the same issue with the latest code.

Here is the error:

C:\Users\pavand\word2dita\all_defaults\word>ant -f dita-ot-run-word2dita.xml
Buildfile: C:\Users\pavand\word2dita\all_defaults\word\dita-ot-run-word2dita.xml

transformMyDoc:
Duplicated project name in import. Project dita2html5 defined first in C:\dita-ot-3.3.1\plugins\org.dita.html5\build_dita2html5.xml and again in C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.html5\build_transtype-html5.xml

d4p.wordToDita.init:

wordToDita:
[echo] [DEBUG] wordToDita.dir=C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita

BUILD FAILED
C:\Users\pavand\word2dita\all_defaults\word\dita-ot-run-word2dita.xml:24: The following error occurred while executing this line:
C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita\build_transtype-word2dita.xml:28: The following error occurred while executing this line:
Error reading project file C:\Users\pavand\word2dita\all_defaults\word\build-word2dita.xml: C:\Users\pavand\word2dita\all_defaults\word\build-word2dita.xml

Total time: 0 seconds

Can you please have a look.

@pavandg2006
Copy link
Author

Actually, I changed the DITA OT path in the dita-ot-run-word2dita.xml to point to my DITA OT and re-run.

Got the following error.

C:\Users\pavand\word2dita\all_defaults\word>ant -f dita-ot-run-word2dita.xml
Buildfile: C:\Users\pavand\word2dita\all_defaults\word\dita-ot-run-word2dita.xml

transformMyDoc:
Duplicated project name in import. Project dita2html5 defined first in C:\dita-ot-3.3.1\plugins\org.dita.html5\build_dita2html5.xml and again in C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.html5\build_transtype-html5.xml

d4p.wordToDita.init:

wordToDita:
[echo] [DEBUG] wordToDita.dir=C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita

checkWordDoc:

checkParameters:

initProperties:
[echo] +++ word2dita-specific properties:
[echo] #Ant properties
[echo] #Thu Apr 18 13:24:04 IST 2019
[echo] w2d.base.dir=C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita
[echo] w2d.clean.output.dir=true
[echo] w2d.debug.xslt=true
[echo] w2d.defaultStyleToTagMap=C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita\xsl\word-builtin-styles-style2tagmap.xml
[echo] w2d.generate.navtitles=true
[echo] w2d.have.word.doc=true
[echo] w2d.language=en-US
[echo] w2d.out.dir=C:\Users\pavand\word2dita\all_defaults\dita
[echo] w2d.root.map.name=word2bookmap_test_01
[echo] w2d.root.output.filename=word2bookmap_test_01.ditamap
[echo] w2d.style-to-tag-map=C:\Users\pavand\word2dita\all_defaults\word\style2tagmap.xml
[echo] w2d.temp.dir=C:\Users\pavand\word2dita\all_defaults\word${dita.temp.dir}
[echo] w2d.topic.extension=.dita
[echo] w2d.word2dita.xslt=C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita\xsl\docx2dita.xsl
[echo] w2p.do.clean.output.dir=true

doWord2Dita:

unzipWordDoc:
[unzip] Expanding: C:\Users\pavand\word2dita\all_defaults\word\word2bookmap_test_01.docx into C:\Users\pavand\word2dita\all_defaults\word${dita.temp.dir}\word2bookmap_test_01
[echo] w2d.style-to-tag-map='C:\Users\pavand\word2dita\all_defaults\word\style2tagmap.xml'

cleanOutputDir:
[echo] [INFO] Cleaning output directory C:\Users\pavand\word2dita\all_defaults\dita...

transformWordToDita:
[echo] [INFO] Creating output directory C:\Users\pavand\word2dita\all_defaults\dita...
[echo] [INFO] Creating output file word2bookmap_test_01.ditamap...
[echo] [INFO] Generating DITA documents from Word document in output directory C:\Users\pavand\word2dita\all_defaults\dita...
[echo] [INFO] Using XSLT C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita\xsl\docx2dita.xsl...

BUILD FAILED
C:\Users\pavand\word2dita\all_defaults\word\dita-ot-run-word2dita.xml:24: The following error occurred while executing this line:
C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita\build_transtype-word2dita.xml:28: The following error occurred while executing this line:
C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita\build-word2dita.xml:157: The following error occurred while executing this line:
C:\dita-ot-3.3.1\plugins\net.sourceforge.dita4publishers.word2dita\build-word2dita.xml:201: Reference dita.catalog not found.

Total time: 0 seconds

@drmacro
Copy link
Member

drmacro commented Jul 25, 2019

Is this still an issue?

@pavandg2006
Copy link
Author

pavandg2006 commented Jul 29, 2019 via email

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

2 participants