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.
|
static String |
getBundleFileName()
Computes the bundle file name for the current project.
|
static String |
getBundleSymbolicName(String groupId,
String artifactId)
Get the symbolic name as groupId + "." + artifactId, with the following exceptions.
|
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.public static Properties getMavenProperties() throws IOException
IOExceptionpublic static File checkWisdomInstallation()
public static String getBundleFileName() throws IOException
IOException - if Maven properties cannot be readpublic static String getBundleSymbolicName(String groupId, String artifactId)
groupId - the groupIdartifactId - the artifactIdCopyright © 2013–2014 Wisdom Framework. All rights reserved.