Return-Path: X-Original-To: apmail-maven-commits-archive@www.apache.org Delivered-To: apmail-maven-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F9309674 for ; Tue, 8 May 2012 13:05:52 +0000 (UTC) Received: (qmail 41696 invoked by uid 500); 8 May 2012 13:05:52 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 41626 invoked by uid 500); 8 May 2012 13:05:52 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 41619 invoked by uid 99); 8 May 2012 13:05:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 13:05:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 13:05:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id DBEAB2388C79 for ; Tue, 8 May 2012 13:04:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r816611 [22/22] - in /websites/production/maventest/content/plugins/maven-compiler-plugin-latest: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/maven/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugin/class-... Date: Tue, 08 May 2012 13:04:31 -0000 To: commits@maven.apache.org From: hboutemy@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120508130438.DBEAB2388C79@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/CompilerMojo.html ============================================================================== --- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/CompilerMojo.html (added) +++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/CompilerMojo.html Tue May 8 13:04:26 2012 @@ -0,0 +1,195 @@ + + + + +CompilerMojo xref + + + +
+
+1   package org.apache.maven.plugin;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *   http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import org.apache.maven.artifact.Artifact;
+23  import org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner;
+24  import org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner;
+25  import org.codehaus.plexus.compiler.util.scan.StaleSourceScanner;
+26  
+27  import java.io.File;
+28  import java.util.Collections;
+29  import java.util.HashSet;
+30  import java.util.List;
+31  import java.util.Map;
+32  import java.util.Set;
+33  
+34  /**
+35   * Compiles application sources
+36   *
+37   * @author <a href="mailto:jason@maven.org">Jason van Zyl </a>
+38   * @version $Id$
+39   * @since 2.0
+40   * @goal compile
+41   * @phase compile
+42   * @requiresDependencyResolution compile
+43   */
+44  public class CompilerMojo
+45      extends AbstractCompilerMojo
+46  {
+47      /**
+48       * The source directories containing the sources to be compiled.
+49       *
+50       * @parameter default-value="${project.compileSourceRoots}"
+51       * @required
+52       * @readonly
+53       */
+54      private List compileSourceRoots;
+55  
+56      /**
+57       * Project classpath.
+58       *
+59       * @parameter default-value="${project.compileClasspathElements}"
+60       * @required
+61       * @readonly
+62       */
+63      private List classpathElements;
+64  
+65      /**
+66       * The directory for compiled classes.
+67       *
+68       * @parameter default-value="${project.build.outputDirectory}"
+69       * @required
+70       * @readonly
+71       */
+72      private File outputDirectory;
+73  
+74      /**
+75       * Project artifacts.
+76       *
+77       * @parameter default-value="${project.artifact}"
+78       * @required
+79       * @readonly
+80       * @todo this is an export variable, really
+81       */
+82      private Artifact projectArtifact;
+83  
+84      /**
+85       * A list of inclusion filters for the compiler.
+86       *
+87       * @parameter
+88       */
+89      private Set includes = new HashSet();
+90  
+91      /**
+92       * A list of exclusion filters for the compiler.
+93       *
+94       * @parameter
+95       */
+96      private Set excludes = new HashSet();
+97  
+98      protected List getCompileSourceRoots()
+99      {
+100         return compileSourceRoots;
+101     }
+102 
+103     protected List getClasspathElements()
+104     {
+105         return classpathElements;
+106     }
+107 
+108     protected File getOutputDirectory()
+109     {
+110         return outputDirectory;
+111     }
+112 
+113     public void execute()
+114         throws MojoExecutionException, CompilationFailureException
+115     {
+116         super.execute();
+117 
+118         projectArtifact.setFile( outputDirectory );
+119     }
+120 
+121     protected SourceInclusionScanner getSourceInclusionScanner( int staleMillis )
+122     {
+123         SourceInclusionScanner scanner = null;
+124 
+125         if ( includes.isEmpty() && excludes.isEmpty() )
+126         {
+127             scanner = new StaleSourceScanner( staleMillis );
+128         }
+129         else
+130         {
+131             if ( includes.isEmpty() )
+132             {
+133                 includes.add( "**/*.java" );
+134             }
+135             scanner = new StaleSourceScanner( staleMillis, includes, excludes );
+136         }
+137 
+138         return scanner;
+139     }
+140 
+141     protected SourceInclusionScanner getSourceInclusionScanner( String inputFileEnding )
+142     {
+143         SourceInclusionScanner scanner = null;
+144 
+145         if ( includes.isEmpty() && excludes.isEmpty() )
+146         {
+147             includes = Collections.singleton( "**/*." + inputFileEnding );
+148             scanner = new SimpleSourceInclusionScanner( includes, Collections.EMPTY_SET );
+149         }
+150         else
+151         {
+152             if ( includes.isEmpty() )
+153             {
+154                 includes.add( "**/*." + inputFileEnding );
+155             }
+156             scanner = new SimpleSourceInclusionScanner( includes, excludes );
+157         }
+158 
+159         return scanner;
+160     }
+161 
+162     protected String getSource()
+163     {
+164       return source;
+165     }
+166 
+167     protected String getTarget()
+168     {
+169       return target;
+170     }
+171 
+172     protected String getCompilerArgument()
+173     {
+174       return compilerArgument;
+175     }
+176 
+177     protected Map getCompilerArguments()
+178     {
+179       return compilerArguments;
+180     }
+181 
+182 }
+
+
+ Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/CompilerMojo.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/CompilerMojo.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/TestCompilerMojo.html ============================================================================== --- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/TestCompilerMojo.html (added) +++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/TestCompilerMojo.html Tue May 8 13:04:26 2012 @@ -0,0 +1,239 @@ + + + + +TestCompilerMojo xref + + + +
+
+1   package org.apache.maven.plugin;
+2   
+3   /*
+4    * Licensed to the Apache Software Foundation (ASF) under one
+5    * or more contributor license agreements.  See the NOTICE file
+6    * distributed with this work for additional information
+7    * regarding copyright ownership.  The ASF licenses this file
+8    * to you under the Apache License, Version 2.0 (the
+9    * "License"); you may not use this file except in compliance
+10   * with the License.  You may obtain a copy of the License at
+11   *
+12   *   http://www.apache.org/licenses/LICENSE-2.0
+13   *
+14   * Unless required by applicable law or agreed to in writing,
+15   * software distributed under the License is distributed on an
+16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+17   * KIND, either express or implied.  See the License for the
+18   * specific language governing permissions and limitations
+19   * under the License.
+20   */
+21  
+22  import org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner;
+23  import org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner;
+24  import org.codehaus.plexus.compiler.util.scan.StaleSourceScanner;
+25  
+26  import java.io.File;
+27  import java.util.Collections;
+28  import java.util.HashSet;
+29  import java.util.List;
+30  import java.util.Map;
+31  import java.util.Set;
+32  
+33  /**
+34   * Compiles application test sources.
+35   *
+36   * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
+37   * @version $Id$
+38   * @since 2.0
+39   * @goal testCompile
+40   * @phase test-compile
+41   * @requiresDependencyResolution test
+42   */
+43  public class TestCompilerMojo
+44      extends AbstractCompilerMojo
+45  {
+46      /**
+47       * Set this to 'true' to bypass unit tests entirely.
+48       * Its use is NOT RECOMMENDED, but quite convenient on occasion.
+49       *
+50       * @parameter expression="${maven.test.skip}"
+51       */
+52      private boolean skip;
+53  
+54      /**
+55       * The source directories containing the test-source to be compiled.
+56       *
+57       * @parameter default-value="${project.testCompileSourceRoots}"
+58       * @required
+59       * @readonly
+60       */
+61      private List compileSourceRoots;
+62  
+63      /**
+64       * Project test classpath.
+65       *
+66       * @parameter default-value="${project.testClasspathElements}"
+67       * @required
+68       * @readonly
+69       */
+70      private List classpathElements;
+71  
+72      /**
+73       * The directory where compiled test classes go.
+74       *
+75       * @parameter default-value="${project.build.testOutputDirectory}"
+76       * @required
+77       * @readonly
+78       */
+79      private File outputDirectory;
+80  
+81      /**
+82       * A list of inclusion filters for the compiler.
+83       *
+84       * @parameter
+85       */
+86      private Set testIncludes = new HashSet();
+87  
+88      /**
+89       * A list of exclusion filters for the compiler.
+90       *
+91       * @parameter
+92       */
+93      private Set testExcludes = new HashSet();
+94  
+95      /**
+96       * The -source argument for the test Java compiler.
+97       *
+98       * @parameter expression="${maven.compiler.testSource}"
+99       */
+100     private String testSource;
+101 
+102     /**
+103      * The -target argument for the test Java compiler.
+104      *
+105      * @parameter expression="${maven.compiler.testTarget}"
+106      */
+107     private String testTarget;
+108 
+109 
+110     /**
+111      * <p>
+112      * Sets the arguments to be passed to test compiler (prepending a dash) if fork is set to true.
+113      * </p>
+114      * <p>
+115      * This is because the list of valid arguments passed to a Java compiler
+116      * varies based on the compiler version.
+117      * </p>
+118      *
+119      * @parameter
+120      * @since 2.0.1
+121      */
+122     private Map testCompilerArguments;
+123 
+124     /**
+125      * <p>
+126      * Sets the unformatted argument string to be passed to test compiler if fork is set to true.
+127      * </p>
+128      * <p>
+129      * This is because the list of valid arguments passed to a Java compiler
+130      * varies based on the compiler version.
+131      * </p>
+132      *
+133      * @parameter
+134      */
+135     private String testCompilerArgument;
+136 
+137     public void execute()
+138         throws MojoExecutionException, CompilationFailureException
+139     {
+140         if ( skip )
+141         {
+142             getLog().info( "Not compiling test sources" );
+143         }
+144         else
+145         {
+146             super.execute();
+147         }
+148     }
+149 
+150     protected List getCompileSourceRoots()
+151     {
+152         return compileSourceRoots;
+153     }
+154 
+155     protected List getClasspathElements()
+156     {
+157         return classpathElements;
+158     }
+159 
+160     protected File getOutputDirectory()
+161     {
+162         return outputDirectory;
+163     }
+164 
+165     protected SourceInclusionScanner getSourceInclusionScanner( int staleMillis )
+166     {
+167         SourceInclusionScanner scanner = null;
+168 
+169         if ( testIncludes.isEmpty() && testExcludes.isEmpty() )
+170         {
+171             scanner = new StaleSourceScanner( staleMillis );
+172         }
+173         else
+174         {
+175             if ( testIncludes.isEmpty() )
+176             {
+177                 testIncludes.add( "**/*.java" );
+178             }
+179             scanner = new StaleSourceScanner( staleMillis, testIncludes, testExcludes );
+180         }
+181 
+182         return scanner;
+183     }
+184 
+185     protected SourceInclusionScanner getSourceInclusionScanner( String inputFileEnding )
+186     {
+187         SourceInclusionScanner scanner = null;
+188 
+189         if ( testIncludes.isEmpty() && testExcludes.isEmpty() )
+190         {
+191             testIncludes = Collections.singleton( "**/*." + inputFileEnding );
+192             scanner = new SimpleSourceInclusionScanner( testIncludes, Collections.EMPTY_SET );
+193         }
+194         else
+195         {
+196             if ( testIncludes.isEmpty() )
+197             {
+198                 testIncludes.add( "**/*." + inputFileEnding );
+199             }
+200             scanner = new SimpleSourceInclusionScanner( testIncludes, testExcludes );
+201         }
+202 
+203         return scanner;
+204     }
+205 
+206     protected String getSource()
+207     {
+208       return testSource == null ? source : testSource;
+209     }
+210 
+211     protected String getTarget()
+212     {
+213       return testTarget == null ? target : testTarget;
+214     }
+215 
+216     protected String getCompilerArgument()
+217     {
+218       return testCompilerArgument == null ? compilerArgument : testCompilerArgument;
+219     }
+220 
+221     protected Map getCompilerArguments()
+222     {
+223       return testCompilerArguments == null ? compilerArguments : testCompilerArguments;
+224     }
+225 
+226 }
+
+
+ Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/TestCompilerMojo.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/TestCompilerMojo.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-frame.html ============================================================================== --- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-frame.html (added) +++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-frame.html Tue May 8 13:04:26 2012 @@ -0,0 +1,33 @@ + + + + + + Maven Compiler Plugin 2.1 Reference Package org.apache.maven.plugin + + + + +

+ org.apache.maven.plugin +

+ +

Classes

+ + + + + \ No newline at end of file Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-frame.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-frame.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-summary.html ============================================================================== --- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-summary.html (added) +++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-summary.html Tue May 8 13:04:26 2012 @@ -0,0 +1,82 @@ + + + + + + Maven Compiler Plugin 2.1 Reference Package org.apache.maven.plugin + + + +
+ +
+
+ +
+ +

Package org.apache.maven.plugin

+ + + + + + + + + + + + + + + + + + + + + +
Class Summary
+ AbstractCompilerMojo +
+ CompilationFailureException +
+ CompilerMojo +
+ TestCompilerMojo +
+ +
+ +
+
+ +
+
+ Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved. + + \ No newline at end of file Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-summary.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/org/apache/maven/plugin/package-summary.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-frame.html ============================================================================== --- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-frame.html (added) +++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-frame.html Tue May 8 13:04:26 2012 @@ -0,0 +1,24 @@ + + + + + + Maven Compiler Plugin 2.1 Reference + + + + +

+ All Classes +

+ +

Packages

+ + + + + Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-frame.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-frame.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-summary.html ============================================================================== --- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-summary.html (added) +++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-summary.html Tue May 8 13:04:26 2012 @@ -0,0 +1,64 @@ + + + + + + Maven Compiler Plugin 2.1 Reference + + + +
+
    +
  • Overview
  • +
  • Package
  • +
+
+
+ +
+ +

Maven Compiler Plugin 2.1 Reference

+ + + + + + + + + + + + +
Packages
+ org.apache.maven.plugin +
+ +
+
    +
  • Overview
  • +
  • Package
  • +
+
+
+ +
+ +
+ Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved. + + \ No newline at end of file Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-summary.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/overview-summary.html ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/stylesheet.css ============================================================================== --- websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/stylesheet.css (added) +++ websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/stylesheet.css Tue May 8 13:04:26 2012 @@ -0,0 +1,116 @@ +/* Javadoc style sheet */ +/* Define colors, fonts and other style attributes here to override the defaults */ +body { + background-color: #fff; + font-family: Arial, Helvetica, sans-serif; +} + +a:link { + color: #00f; +} +a:visited { + color: #00a; +} + +a:active, a:hover { + color: #f30 !important; +} + +ul, li { + list-style-type:none; + margin:0; + padding:0; +} + +table td { + padding: 3px; + border: 1px solid #000; +} +table { + width:100%; + border: 1px solid #000; + border-collapse: collapse; +} + +div.overview { + background-color:#ddd; + padding: 4px 4px 4px 0; +} +div.overview li, div.framenoframe li { + display: inline; +} +div.framenoframe { + text-align: center; + font-size: x-small; +} +div.framenoframe li { + margin: 0 3px 0 3px; +} +div.overview li { + margin:3px 3px 0 3px; + padding: 4px; +} +li.selected { + background-color:#888; + color: #fff; + font-weight: bold; +} + +table.summary { + margin-bottom: 20px; +} +table.summary td, table.summary th { + font-weight: bold; + text-align: left; + padding: 3px; +} +table.summary th { + background-color:#036; + color: #fff; +} +table.summary td { + background-color:#eee; + border: 1px solid black; +} + +em { + color: #A00; +} +em.comment { + color: #390; +} +.string { + color: #009; +} +div#footer { + text-align:center; +} +#overview { + padding:2px; +} + +hr { + height: 1px; + color: #000; +} + +/* JXR style sheet */ +.jxr_comment +{ + color: #390; +} + +.jxr_javadoccomment +{ + color: #A00; +} + +.jxr_string +{ + color: #009; +} + +.jxr_keyword +{ + color: #000; +} \ No newline at end of file Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/stylesheet.css ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/maventest/content/plugins/maven-compiler-plugin-latest/xref/stylesheet.css ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision