Class Standalone
java.lang.Object
de.oktoflow.platform.tools.pluginEnv.Standalone
Combines the plugin classpath files in
target/standalone into a single classpath file in
target/standalone/cp adding a basic oktoflow testing environment. We might also do that via
Maven... somehow.- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringTries to obtain the actual oktoflow version from the POM, i.e., the version of the parent pom.static voidCreates and writes the standalone classpath.private static voidprintEntry(PrintStream out, String entry) Prints a classpath entry.private static voidprintOktoEntry(PrintStream out, String name) Prints an oktoflow entry for the componentname.private static voidprintOktoEntry(PrintStream out, String name, String classifier) Prints an oktoflow entry for the componentnamewith the givenclassifier.private static voidprintOktoTestEntry(PrintStream out, String name) Prints an oktoflow entry for the test artifact of the componentname.
-
Field Details
-
m2
-
dir
-
oktoVer
-
firstEntry
private static boolean firstEntry -
mapping
-
pwdAdjust
-
basePwd
-
-
Constructor Details
-
Standalone
public Standalone()
-
-
Method Details
-
printEntry
Prints a classpath entry.- Parameters:
out- the output stream to write toentry- the classpath entry path
-
printOktoEntry
Prints an oktoflow entry for the componentname.- Parameters:
out- the output streamname- the components artifactId
-
printOktoTestEntry
Prints an oktoflow entry for the test artifact of the componentname.- Parameters:
out- the output streamname- the components artifactId
-
printOktoEntry
Prints an oktoflow entry for the componentnamewith the givenclassifier.- Parameters:
out- the output streamname- the components artifactIdclassifier- the classifier, may be empty or null for none
-
getOktoVer
Tries to obtain the actual oktoflow version from the POM, i.e., the version of the parent pom.- Returns:
- the version, may be empty
- Throws:
IOException- if reading the file fails
-
main
Creates and writes the standalone classpath.- Parameters:
args- ignored- Throws:
IOException- if I/O fails
-