Package com.dslplatform.mojo
Class Utils
java.lang.Object
com.dslplatform.mojo.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidappendToFile(com.dslplatform.compiler.client.Context context, File file, String contents) (package private) static voidcopyFolder(File sources, File target, com.dslplatform.compiler.client.Context context) (package private) static String(package private) static StringparseSettings(String[] value, org.apache.maven.plugin.logging.Log log) (package private) static StringresourceAbsolutePath(String resource) (package private) static voidrunCompiler(MojoContext context, String plugins, String dsl, String compiler) private static com.dslplatform.compiler.client.parameters.Settings.OptionsettingsOptionFrom(String value) (package private) static com.dslplatform.compiler.client.parameters.Targets.OptiontargetOptionFrom(String value) (package private) static voidwriteToFile(com.dslplatform.compiler.client.Context context, File file, String contents)
-
Constructor Details
-
Utils
Utils()
-
-
Method Details
-
resourceAbsolutePath
-
createDirIfNotExists
static String createDirIfNotExists(String dir) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
targetOptionFrom
-
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
-