Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.2
-
Fix Version/s: None
-
Component/s: hbm2doc
-
Labels:None
-
Environment:Linux, goal: hbm2doc, also create diagrams with Maven settings: <dot.executable>/usr/bin/dot</dot.executable>
Description
When my Maven project is in a directory with spaces in the name, the external dot.executable isn't executed properly when using hbm2doc.
Example:
- Maven project dir: /opt/jenkins-work/jobs/Project Nightly/workspace/trunk/database
- pom.xml contains: <dot.executable>/usr/bin/dot</dot.executable>
- inside directory: /opt/jenkins-work/jobs/Project Nightly/workspace/trunk/database, execute command: mvn hibernate3:hbm2doc
Result:
Error: dot: can't open /opt/jenkins-work/jobs/Project
Error: dot: can't open Nightly/workspace/trunk/database/target/site/hibernate/entities/entitygraph.dot
Error: dot: can't open Nightly/workspace/trunk/database/target/site/hibernate/entities/entitygraph.png
00:33:05,021 ERROR org.hibernate.tool.hbm2x.DocExporter - Error 3 while executing: /usr/bin/dot -Tpng /opt/jenkins-work/jobs/Project Nightly/workspace/trunk/database/target/site/hibernate/entities/entitygraph.dot -o /opt/jenkins-work/jobs/Project Nightly/workspace/trunk/database/target/site/hibernate/entities/entitygraph.png
When using the commandline, these spaces inside the directory names need to be escaped using "\ ", but I would expect the plugin to be able to handle spaces properly when using the external dot executable.