View Javadoc

1   package org.codehaus.mojo.properties;
2   
3   import org.apache.maven.plugin.MojoExecutionException;
4   import org.apache.maven.plugin.MojoFailureException;
5   
6   import java.util.Properties;
7   
8   /**
9    * Writes project properties to a file
10   *
11   * @author <a href="mailto:zarars@gmail.com">Zarar Siddiqi</a>
12   * @version $Id$
13   * @goal write-project-properties
14   */
15  public class WriteProjectProperties extends AbstractWritePropertiesMojo {
16  
17      public void execute() throws MojoExecutionException, MojoFailureException {
18          validateOutputFile();
19          Properties properties = project.getProperties();
20          writeProperties(properties, outputFile);
21      }
22  }