@Mojo(name="exec-ng",
threadSafe=true,
defaultPhase=COMPILE)
public class AngularMojo
extends AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
private String[] |
args
The arguments to pass to ng command.
|
private String |
command
The ng command to execute, such as 'build', 'serve', etc.
|
private File |
ngHome
The directory that contains ng executable.
|
private File |
workingDir
The working directory.
|
| Constructor and Description |
|---|
AngularMojo() |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.commons.exec.CommandLine |
addCommand(org.apache.commons.exec.CommandLine cmdLine) |
void |
execute() |
private void |
execute(org.apache.commons.exec.CommandLine cmdLine) |
private org.apache.commons.exec.CommandLine |
getNGCommand() |
getCommand, isWindows, logLevel, parseArgument, useLogHandler@Parameter(property="ng.command") private String command
@Parameter(property="ng.args") private String[] args
@Parameter(property="ng.workingDir",
defaultValue="${basedir}")
private File workingDir
@Parameter(property="ng.home") private File ngHome
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprivate void execute(org.apache.commons.exec.CommandLine cmdLine)
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprivate org.apache.commons.exec.CommandLine addCommand(org.apache.commons.exec.CommandLine cmdLine)
private org.apache.commons.exec.CommandLine getNGCommand()
Copyright © 2020. All rights reserved.