Class Utils

java.lang.Object
com.dslplatform.mojo.Utils

abstract class Utils extends Object
  • Constructor Details

    • Utils

      Utils()
  • Method Details

    • resourceAbsolutePath

      static String resourceAbsolutePath(String resource)
    • createDirIfNotExists

      static String createDirIfNotExists(String dir) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • targetOptionFrom

      static com.dslplatform.compiler.client.parameters.Targets.Option targetOptionFrom(String value)
    • parseSettings

      static String parseSettings(String[] value, org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • settingsOptionFrom

      private static com.dslplatform.compiler.client.parameters.Settings.Option settingsOptionFrom(String value)
    • copyFolder

      static void copyFolder(File sources, File target, com.dslplatform.compiler.client.Context context) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • writeToFile

      static void writeToFile(com.dslplatform.compiler.client.Context context, File file, String contents) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • appendToFile

      static void appendToFile(com.dslplatform.compiler.client.Context context, File file, String contents) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • runCompiler

      static void runCompiler(MojoContext context, String plugins, String dsl, String compiler) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException