[hibernate-commits] Hibernate SVN: r11618 - branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Mon Jun 4 08:54:49 EDT 2007
Author: max.andersen at jboss.com
Date: 2007-06-04 08:54:49 -0400 (Mon, 04 Jun 2007)
New Revision: 11618
Modified:
branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/DocExporterTest.java
Log:
fix dot executable
Modified: branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/DocExporterTest.java
===================================================================
--- branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/DocExporterTest.java 2007-06-04 12:54:11 UTC (rev 11617)
+++ branches/Branch_3_2/HibernateExt/tools/src/test/org/hibernate/tool/hbm2x/DocExporterTest.java 2007-06-04 12:54:49 UTC (rev 11618)
@@ -35,7 +35,11 @@
DocExporter exporter = new DocExporter(getCfg(), getOutputDir() );
Properties properties = new Properties();
properties.put( "jdk5", "true"); // test generics
- properties.put("dot.executable", System.getProperties().getProperty("dot.executable","dot.exe"));
+ if(File.pathSeparator.equals(';')) { // to work around windows/jvm not seeming to respect executing just "dot"
+ properties.put("dot.executable", System.getProperties().getProperty("dot.executable","dot.exe"));
+ } else {
+ properties.put("dot.executable", System.getProperties().getProperty("dot.executable","dot"));
+ }
exporter.setProperties( properties );
exporter.start();
}
More information about the hibernate-commits
mailing list