Class Standalone

java.lang.Object
de.oktoflow.platform.tools.pluginEnv.Standalone

public class Standalone extends Object
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 Details

    • m2

      private static String m2
    • dir

      private static File dir
    • oktoVer

      private static String oktoVer
    • firstEntry

      private static boolean firstEntry
    • mapping

      private static Map<String,String> mapping
    • pwdAdjust

      private static String pwdAdjust
    • basePwd

      private static String basePwd
  • Constructor Details

    • Standalone

      public Standalone()
  • Method Details

    • printEntry

      private static void printEntry(PrintStream out, String entry)
      Prints a classpath entry.
      Parameters:
      out - the output stream to write to
      entry - the classpath entry path
    • printOktoEntry

      private static void printOktoEntry(PrintStream out, String name)
      Prints an oktoflow entry for the component name.
      Parameters:
      out - the output stream
      name - the components artifactId
    • printOktoTestEntry

      private static void printOktoTestEntry(PrintStream out, String name)
      Prints an oktoflow entry for the test artifact of the component name.
      Parameters:
      out - the output stream
      name - the components artifactId
    • printOktoEntry

      private static void printOktoEntry(PrintStream out, String name, String classifier)
      Prints an oktoflow entry for the component name with the given classifier.
      Parameters:
      out - the output stream
      name - the components artifactId
      classifier - the classifier, may be empty or null for none
    • getOktoVer

      private static String getOktoVer() throws IOException
      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

      public static void main(String[] args) throws IOException
      Creates and writes the standalone classpath.
      Parameters:
      args - ignored
      Throws:
      IOException - if I/O fails