Skip to content

Commit

Permalink
add Linux and Mac Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Lindel committed Oct 21, 2014
1 parent 2fa67cd commit 5f8b34c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
13 changes: 13 additions & 0 deletions Adapter.xml
Expand Up @@ -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 -->
Expand Down
21 changes: 10 additions & 11 deletions Adapter/GraphViz/Java/org/sdmlib/doc/GraphViz.java
Expand Up @@ -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[]
Expand Down

0 comments on commit 5f8b34c

Please sign in to comment.