Changeset 7625


Ignore:
Timestamp:
02/19/11 11:35:05 (9 years ago)
Author:
curtis
Message:

Fix minor issues with cppwrap project.

Location:
trunk/projects/cppwrap-maven-plugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/cppwrap-maven-plugin

    • Property svn:ignore set to
      .classpath
      .project
      .settings
      target
  • trunk/projects/cppwrap-maven-plugin/src/main/java/loci/maven/plugin/cppwrap/CppWrapMojo.java

    r7622 r7625  
    3333*/ 
    3434 
    35 package loci.jar2lib.maven; 
     35package loci.maven.plugin.cppwrap; 
    3636 
    3737import org.apache.maven.plugin.AbstractMojo; 
    3838import org.apache.maven.plugin.MojoExecutionException; 
    39  
    40 import java.io.File; 
    41 import java.io.IOException; 
    4239 
    4340/** 
     
    5047public class CppWrapMojo extends AbstractMojo { 
    5148 
    52   /** 
    53    * TODO 
    54    */ 
    55   public void execute() throws MojoExecutionException { 
    56     getLog().info("Hello, world."); 
    57     // TODO throw MojoExecutionException to cause BUILD ERROR message 
    58     // TODO throw MojoFailureException to cause BUILD FAILURE message 
    59   } 
     49        private static final String CPPWRAP_DIR = "src/main/cppwrap/"; 
     50 
     51        /** 
     52         * Path to conflicts list of Java constants to rename, 
     53         * to avoid name collisions. 
     54         * 
     55         * @parameter expression="${cppwrap.conflictsFile}" 
     56         *   default-value="src/main/cppwrap/conflicts.txt" 
     57         */ 
     58        private String conflictsFile = CPPWRAP_DIR + "conflicts.txt"; 
     59 
     60        /** 
     61         * Path to header file to prepend to each C++ source file. 
     62         * 
     63         * @parameter expression="${cppwrap.conflictsFile}" 
     64         *   default-value="src/main/cppwrap/conflicts.txt" 
     65         */ 
     66        private String headerFile = CPPWRAP_DIR + "header.txt"; 
     67 
     68        /** 
     69         * TODO 
     70         */ 
     71        public void execute() throws MojoExecutionException { 
     72                getLog().info("Hello, world."); 
     73                // TODO throw MojoExecutionException to cause BUILD ERROR message 
     74                // TODO throw MojoFailureException to cause BUILD FAILURE message 
     75        } 
    6076 
    6177} 
Note: See TracChangeset for help on using the changeset viewer.