public class RunnerUtils extends Object
| Constructor and Description |
|---|
RunnerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static File |
checkWisdomInstallation()
Checks whether the Wisdom server was correctly unpacked.
|
static File |
detectApplicationBundleIfExist(File directory)
Checks if a file having somewhat the current tested application name is contained in the given directory.
|
static File |
getApplicationArtifactIfExists(File chameleonRoot)
Gets the (Maven) artifact's file if exists.
|
private static Properties |
getMavenProperties()
We should have generated a target/osgi/osgi.properties file will all the metadata we inherit from Maven.
|
public static File detectApplicationBundleIfExist(File directory) throws IOException
artifactId-version.jar. If the version ends with -SNAPSHOT,
it just checks for artifactId-stripped_version, where stripped version is the version without the
SNAPSHOT part.
The artifactId and version are read from the target/osgi/osgi.properties file,
that should have been written by the Wisdom build process.
directory - the directoryIOException - if something bad happens.public static File getApplicationArtifactIfExists(File chameleonRoot) throws IOException
chameleonRoot - the root of the chameleonnull otherwise.IOException - if the Maven properties cannot be read.private static Properties getMavenProperties() throws IOException
IOExceptionpublic static File checkWisdomInstallation()
Copyright © 2013–2014 Wisdom Framework. All rights reserved.