Ruud de Jong created MHIBERNATE-124:
---------------------------------------
Summary: Plugin does not handle space in directory names correctly
with hbm2doc and dot.executable
Key: MHIBERNATE-124
URL: https://jira.codehaus.org/browse/MHIBERNATE-124
Project: Maven 2.x Hibernate Plugin
Issue Type: Bug
Components: hbm2doc
Affects Versions: 2.2
Environment: Linux, goal: hbm2doc, also create diagrams with Maven
settings: <dot.executable>/usr/bin/dot</dot.executable>
Reporter: Ruud de Jong
Assignee: Johann Reyes
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email