-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from uniba-dsg/enable-openesb-on-travis
Enable openesb on travis
- Loading branch information
Showing
12 changed files
with
124 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package betsy.common.util; | ||
|
||
public class OperatingSystem { | ||
|
||
public static final String osName = System.getProperty("os.name", "unknown").toLowerCase(); | ||
public static final boolean WINDOWS = osName.startsWith("win"); | ||
public static final boolean NOT_WINDOWS = !WINDOWS; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package betsy; | ||
|
||
import betsy.common.tasks.FileTasks; | ||
import org.junit.After; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.DirectoryStream; | ||
import java.nio.file.Files; | ||
import java.nio.file.Path; | ||
import java.nio.file.Paths; | ||
|
||
public class AbstractSystemTest { | ||
|
||
@After | ||
public void cleanupTestFolders() throws IOException { | ||
try (DirectoryStream<Path> stream = Files.newDirectoryStream(Paths.get("."), "test-*")) { | ||
for (Path path : stream) { | ||
if (Files.isDirectory(path)) { | ||
try { | ||
FileTasks.deleteDirectory(path); | ||
} catch (Exception ignored) { | ||
// try to clean up even if it would fail | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
@After | ||
public void cleanupEngineFolders() throws IOException { | ||
try (DirectoryStream<Path> stream = Files.newDirectoryStream(Paths.get(".").resolve("server"))) { | ||
for (Path path : stream) { | ||
if (Files.isDirectory(path)) { | ||
try { | ||
FileTasks.deleteDirectory(path); | ||
} catch (Exception ignored) { | ||
// try to clean up even if it would fail | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters