sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 9062 - svn://svn.freehep.org/svn / freehep / trunk / maven-plugins / freehep-swig-plugin / src / main / java / org / freehep / maven / swig / SwigMojo.java
Unified Diff View - SwigMojo.java
Search for Help
/freehep/trunk/maven-plugins/freehep-swig-plugin/src/main/java/org/freehep/maven/swig/SwigMojo.java @ revision 9061
/freehep/trunk/maven-plugins/freehep-swig-plugin/src/main/java/org/freehep/maven/swig/SwigMojo.java @ revision 9062
@@ -43,7 +43,7 @@  * @phase generate-sources  * @requiresDependencyResolution compile  * @author <a href="Mark.Donszelmann@slac.stanford.edu">Mark Donszelmann</a> - * @version $Id: SwigMojo.java 9058 2006-09-30 16:12:04Z duns $ + * @version $Id: SwigMojo.java 9062 2006-10-02 21:32:54Z duns $  */ public class SwigMojo extends AbstractMojo { @@ -90,6 +90,20 @@  private String noWarn;  /** +  * Enable all warnings, same as -Wall +  * +  * @parameter expression="${swig.warnAll}" default-value="false" +  */ + private boolean warnAll; + + /** +  * Treat warnings as errors, same as -Werror +  * +  * @parameter expression="${swig.warnError}" default-value="false" +  */ + private boolean warnError; + + /**   * The target directory into which to generate the output.   *   * @parameter expression="${project.build.directory}/swig" @@ -398,6 +412,14 @@    }   } +  if (warnAll) { +   cmdLine.add("-Wall"); +  } + +  if (warnError) { +   cmdLine.add("-Werror"); +  } +   // output file   String baseName = FileUtils.basename(source);   cmdLine.add("-o");


feed icon

sventon 2.5.1