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
  • Constructor Details

    • ReadPropertiesMojo

      public ReadPropertiesMojo()
  • Method Details

    • setFiles

      public void setFiles(File[] files)
      Parameters:
      files - The files to set for tests.
    • setUrls

      public void setUrls(String[] urls)
      Default scope for test access.
      Parameters:
      urls - The URLs to set for tests.
    • setKeyPrefix

      public void setKeyPrefix(String keyPrefix)
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException