Permalink
Browse files

add Linux and Mac Version

  • Loading branch information...
Stefan Lindel
Stefan Lindel committed Oct 21, 2014
1 parent 2fa67cd commit 5f8b34ca9bb2673796adb0460f71c3973a197134
Showing with 23 additions and 11 deletions.
  1. +13 −0 Adapter.xml
  2. +10 −11 Adapter/GraphViz/Java/org/sdmlib/doc/GraphViz.java
View
@@ -26,6 +26,19 @@ Class-Path: .
<fileset dir="src/main/java/org/sdmlib/doc/interfaze/"/>
<zipfileset casesensitive="false" dir="Adapter/GraphViz/Resources" />
</jar>
+ <jar destfile="build/GraphViz_mac.jar" manifest="build/MANIFEST.MF">
+ <fileset dir="build/temp/" />
+ <fileset dir="Adapter/GraphViz/Java" />
+ <fileset dir="src/main/java/org/sdmlib/doc/interfaze/"/>
+ </jar>
+ <jar destfile="build/GraphViz_linux.jar" manifest="build/MANIFEST.MF">
+ <fileset dir="build/temp/" />
+ <fileset dir="Adapter/GraphViz/Java" />
+ <fileset dir="src/main/java/org/sdmlib/doc/interfaze/"/>
+ </jar>
+
+
+
<delete dir="build/temp"></delete>
<!-- Source-graphViz -->
@@ -129,20 +129,19 @@ public boolean drawImg(String imgName, String context)
File root = new File(".");
String rootPath = root.getPath().replace("file:\\", "");
String makeimageFile = rootPath + "\\win32\\makeimage.bat";
-// String makeimageFile = rootPath + "\\Adapter\\GraphViz\\Resources\\win32\\makeimage.bat";
command = new String[]
{ makeimageFile, "doc\\" + imgName, rootPath };
}
- else if ((System.getProperty("os.name").toLowerCase()).contains("mac"))
- {
- File root = new File(".");
- String rootPath = root.getPath().replace("file:", "");
- String makeimageFile = rootPath
- + "/osx_lion/makeimage.command";
-
- command = new String[]
- { makeimageFile, imgName, rootPath };
- }
+// else if ((System.getProperty("os.name").toLowerCase()).contains("mac"))
+// {
+// File root = new File(".");
+// String rootPath = root.getPath().replace("file:", "");
+// String makeimageFile = rootPath
+// + "/osx_lion/makeimage.command";
+//
+// command = new String[]
+// { makeimageFile, imgName, rootPath };
+// }
else
{ // let's assume it's linux'ish (works also for mac)
command = new String[]

0 comments on commit 5f8b34c

Please sign in to comment.