Package org.eolang.maven
Class CopyMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eolang.maven.CopyMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="copy-sources", defaultPhase=PREPARE_PACKAGE, threadSafe=true) public final class CopyMojo extends org.apache.maven.plugin.AbstractMojo
Make a file with a listing of all EO objects in this module.- Since:
- 0.11
-
-
Field Summary
Fields Modifier and Type Field Description static String
DIR
Dir with sources.protected File
foreign
File with foreign "tojos".protected org.apache.maven.plugin.BuildPluginManager
manager
Maven plugin manager.protected org.apache.maven.project.MavenProject
project
Maven project.protected org.apache.maven.execution.MavenSession
session
Maven session.protected File
targetDir
Target directory.
-
Constructor Summary
Constructors Constructor Description CopyMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exec()
void
execute()
-
-
-
Field Detail
-
DIR
public static final String DIR
Dir with sources.- See Also:
- Constant Field Values
-
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
Maven project.
-
session
@Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession session
Maven session.
-
manager
@Component protected org.apache.maven.plugin.BuildPluginManager manager
Maven plugin manager.
-
foreign
@Parameter(required=true, defaultValue="${project.build.directory}/eo-foreign.csv") protected File foreign
File with foreign "tojos".
-
targetDir
@Parameter(required=true, defaultValue="${project.build.directory}/eo") protected File targetDir
Target directory.
-
-
Method Detail
-
exec
public void exec() throws IOException
- Throws:
IOException
-
execute
public final void execute() throws org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoFailureException
-
-