Class ReadPropertiesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.properties.ReadPropertiesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="read-project-properties",
defaultPhase=NONE,
threadSafe=true)
public class ReadPropertiesMojo
extends org.apache.maven.plugin.AbstractMojo
The read-project-properties goal reads property files and URLs and stores the properties as project properties. It
serves as an alternate to specifying properties in pom.xml. It is especially useful when making properties defined in
a runtime resource available at build time.
- Author:
- Zarar Siddiqi, Krystian Nowak
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
ReadPropertiesMojo
public ReadPropertiesMojo()
-
-
Method Details
-
setFiles
- Parameters:
files- The files to set for tests.
-
setUrls
Default scope for test access.- Parameters:
urls- The URLs to set for tests.
-
setKeyPrefix
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-