Package com.dslplatform.mojo
Class Utils
- java.lang.Object
-
- com.dslplatform.mojo.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 voidappendToFile(com.dslplatform.compiler.client.Context context, java.io.File file, java.lang.String contents)(package private) static voidcopyFolder(java.io.File sources, java.io.File target, com.dslplatform.compiler.client.Context context)(package private) static java.lang.StringcreateDirIfNotExists(java.lang.String dir)(package private) static java.lang.StringparseSettings(java.lang.String[] value, org.apache.maven.plugin.logging.Log log)(package private) static java.lang.StringresourceAbsolutePath(java.lang.String resource)(package private) static voidrunCompiler(MojoContext context, java.lang.String plugins, java.lang.String dsl, java.lang.String compiler)private static com.dslplatform.compiler.client.parameters.Settings.OptionsettingsOptionFrom(java.lang.String value)(package private) static com.dslplatform.compiler.client.parameters.Targets.OptiontargetOptionFrom(java.lang.String value)(package private) static voidwriteToFile(com.dslplatform.compiler.client.Context context, java.io.File file, java.lang.String contents)
-
-
-
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
-
-