jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Hibernate Plugin
  • MHIBERNATE-124

Plugin does not handle space in directory names correctly with hbm2doc and dot.executable

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major 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.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Johann Reyes
    Reporter:
    Ruud de Jong
Vote (0)
Watch (0)

Dates

  • Created:
    02/Feb/12 2:54 AM
    Updated:
    02/Feb/12 2:54 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.