Class Utils


  • abstract class Utils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void appendToFile​(com.dslplatform.compiler.client.Context context, java.io.File file, java.lang.String contents)  
      (package private) static void copyFolder​(java.io.File sources, java.io.File target, com.dslplatform.compiler.client.Context context)  
      (package private) static java.lang.String createDirIfNotExists​(java.lang.String dir)  
      (package private) static java.lang.String parseSettings​(java.lang.String[] value, org.apache.maven.plugin.logging.Log log)  
      (package private) static java.lang.String resourceAbsolutePath​(java.lang.String resource)  
      (package private) static void runCompiler​(MojoContext context, java.lang.String plugins, java.lang.String dsl, java.lang.String compiler)  
      private static com.dslplatform.compiler.client.parameters.Settings.Option settingsOptionFrom​(java.lang.String value)  
      (package private) static com.dslplatform.compiler.client.parameters.Targets.Option targetOptionFrom​(java.lang.String value)  
      (package private) static void writeToFile​(com.dslplatform.compiler.client.Context context, java.io.File file, java.lang.String contents)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        Utils()
    • Method Detail

      • resourceAbsolutePath

        static java.lang.String resourceAbsolutePath​(java.lang.String resource)
      • createDirIfNotExists

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

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

        static java.lang.String parseSettings​(java.lang.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​(java.lang.String value)
      • copyFolder

        static void copyFolder​(java.io.File sources,
                               java.io.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,
                                java.io.File file,
                                java.lang.String contents)
                         throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • appendToFile

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

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