maven-compiler-plugin-2.5.1/0000775000175000017500000000000012243421456015266 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/0000775000175000017500000000000012243421456016055 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/0000775000175000017500000000000012243421456016471 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/test1/0000775000175000017500000000000012243421456017531 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/test1/src/0000775000175000017500000000000012243421456020320 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/test1/src/main/0000775000175000017500000000000012243421456021244 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/test1/src/main/java/0000775000175000017500000000000012243421456022165 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/test1/src/main/java/MyClass.java0000664000175000017500000000003211123544663024400 0ustar ebourgebourgpublic class MyClass { } maven-compiler-plugin-2.5.1/src/it/test1/pom.xml0000664000175000017500000000351711047652534021060 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler test1 1.0-SNAPSHOT Test for fork configuration Test for forking compiler configuration UTF-8 org.apache.maven.plugins maven-compiler-plugin @pom.version@ true source,lines,vars maven-compiler-plugin-2.5.1/src/it/default/0000775000175000017500000000000012243421456020115 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/default/src/0000775000175000017500000000000012243421456020704 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/default/src/test/0000775000175000017500000000000012243421456021663 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/default/src/test/java/0000775000175000017500000000000012243421456022604 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/default/src/test/java/MyTest.java0000664000175000017500000000012011047340020024651 0ustar ebourgebourgimport junit.framework.TestCase; public class MyTest extends TestCase { } maven-compiler-plugin-2.5.1/src/it/default/src/main/0000775000175000017500000000000012243421456021630 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/default/src/main/java/0000775000175000017500000000000012243421456022551 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/default/src/main/java/MyClass.java0000664000175000017500000000003211047340020024746 0ustar ebourgebourgpublic class MyClass { } maven-compiler-plugin-2.5.1/src/it/default/verify.bsh0000664000175000017500000000110411047340020022077 0ustar ebourgebourgimport java.io.*; import java.util.*; import java.util.regex.*; try { File mainClass = new File( basedir, "target/classes/MyClass.class" ); if ( !mainClass.isFile() ) { System.out.println( "Main class not existent: " + mainClass ); return false; } File testClass = new File( basedir, "target/test-classes/MyTest.class" ); if ( !testClass.isFile() ) { System.out.println( "Test class not existent: " + testClass ); return false; } } catch( Throwable t ) { t.printStackTrace(); return false; } return true; maven-compiler-plugin-2.5.1/src/it/default/pom.xml0000664000175000017500000000342411047652534021441 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler default 1.0-SNAPSHOT Test for default configuration UTF-8 junit junit 3.8.2 org.apache.maven.plugins maven-compiler-plugin @pom.version@ maven-compiler-plugin-2.5.1/src/it/non-english-warnings/0000775000175000017500000000000012243421456022540 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/non-english-warnings/src/0000775000175000017500000000000012243421456023327 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/non-english-warnings/src/test/0000775000175000017500000000000012243421456024306 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/non-english-warnings/src/test/java/0000775000175000017500000000000012243421456025227 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/non-english-warnings/src/test/java/MyTest.java0000664000175000017500000000033311436531005027311 0ustar ebourgebourgpublic class MyTest { public static void main( String[] args ) { // the date constructor is deprecated and will cause a warning System.out.println( new java.util.Date( 2010, 8, 29 ) ); } } maven-compiler-plugin-2.5.1/src/it/non-english-warnings/src/main/0000775000175000017500000000000012243421456024253 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/non-english-warnings/src/main/java/0000775000175000017500000000000012243421456025174 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/non-english-warnings/src/main/java/MyClass.java0000664000175000017500000000033411436531005027405 0ustar ebourgebourgpublic class MyClass { public static void main( String[] args ) { // the date constructor is deprecated and will cause a warning System.out.println( new java.util.Date( 2010, 8, 29 ) ); } } maven-compiler-plugin-2.5.1/src/it/non-english-warnings/invoker.properties0000664000175000017500000000022111436531005026321 0ustar ebourgebourg# NOTE: javac has been localized for Japanese, i.e. javac won't output English messages in this locale... invoker.mavenOpts = -Duser.language=ja maven-compiler-plugin-2.5.1/src/it/non-english-warnings/verify.bsh0000664000175000017500000000066011436531005024537 0ustar ebourgebourgimport java.io.*; import java.util.*; import java.util.regex.*; File mainClass = new File( basedir, "target/classes/MyClass.class" ); if ( !mainClass.isFile() ) { throw new FileNotFoundException( "Main class not existent: " + mainClass ); } File testClass = new File( basedir, "target/test-classes/MyTest.class" ); if ( !testClass.isFile() ) { throw new FileNotFoundException( "Test class not existent: " + testClass ); } maven-compiler-plugin-2.5.1/src/it/non-english-warnings/pom.xml0000664000175000017500000000414711436531005024056 0ustar ebourgebourg 4.0.0 org.apache.maven.its.compiler non-english-warnings 1.0-SNAPSHOT MCOMPILER-109 Test that warnings in locales other than English are not erroneously classified as errors and fail the build. The particular locales of interest here are Japanese (ja) and Simplified Chinese (zh_CN) for which javac actually is localized. UTF-8 org.apache.maven.plugins maven-compiler-plugin @pom.version@ false 1.4 1.4 true true maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/0000775000175000017500000000000012243421456020325 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/0000775000175000017500000000000012243421456022761 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/0000775000175000017500000000000012243421456023550 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/0000775000175000017500000000000012243421456024527 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/0000775000175000017500000000000012243421456025450 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/0000775000175000017500000000000012243421456026237 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/0000775000175000017500000000000012243421456027460 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/0000775000175000017500000000000012243421456030566 5ustar ebourgebourg././@LongLink0000644000000000000000000000015112243421456011642 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031456 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031456 5ustar ebourgebourg././@LongLink0000644000000000000000000000016512243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031456 5ustar ebourgebourg././@LongLink0000644000000000000000000000020112243421456011636 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plug0000664000175000017500000000123011751323306031452 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } } maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/0000775000175000017500000000000012243421456024474 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/0000775000175000017500000000000012243421456025415 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/0000775000175000017500000000000012243421456026204 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/0000775000175000017500000000000012243421456027425 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/0000775000175000017500000000000012243421456030533 5ustar ebourgebourg././@LongLink0000644000000000000000000000015112243421456011642 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031423 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031423 5ustar ebourgebourg././@LongLink0000644000000000000000000000016512243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031423 5ustar ebourgebourg././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031422 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App2 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031422 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App5 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031422 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App7 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031422 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App6 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017512243421456011650 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000112111751323306031416 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031422 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App4 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031422 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App3 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-3/pom.xml0000664000175000017500000000165511751323306024303 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT org.apache.maven.plugins.compiler.it mcompiler-170-3 1.0-SNAPSHOT mcompiler-170-1 http://maven.apache.org UTF-8 junit junit 3.8.1 test maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/0000775000175000017500000000000012243421456022760 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/0000775000175000017500000000000012243421456023547 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/0000775000175000017500000000000012243421456024526 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/0000775000175000017500000000000012243421456025447 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/0000775000175000017500000000000012243421456026236 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/0000775000175000017500000000000012243421456027457 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/0000775000175000017500000000000012243421456030565 5ustar ebourgebourg././@LongLink0000644000000000000000000000015112243421456011642 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031455 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031455 5ustar ebourgebourg././@LongLink0000644000000000000000000000016512243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031455 5ustar ebourgebourg././@LongLink0000644000000000000000000000020112243421456011636 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plug0000664000175000017500000000123011751323306031451 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } } maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/0000775000175000017500000000000012243421456024473 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/0000775000175000017500000000000012243421456025414 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/0000775000175000017500000000000012243421456026203 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/0000775000175000017500000000000012243421456027424 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/0000775000175000017500000000000012243421456030532 5ustar ebourgebourg././@LongLink0000644000000000000000000000015112243421456011642 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031422 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031422 5ustar ebourgebourg././@LongLink0000644000000000000000000000016512243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031422 5ustar ebourgebourg././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031421 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App2 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031421 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App5 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031421 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App7 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031421 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App6 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017512243421456011650 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000112111751323306031415 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031421 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App4 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031421 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App3 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-2/pom.xml0000664000175000017500000000165511751323306024302 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT org.apache.maven.plugins.compiler.it mcompiler-170-2 1.0-SNAPSHOT mcompiler-170-1 http://maven.apache.org UTF-8 junit junit 3.8.1 test maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/invoker.properties0000664000175000017500000000007611751323306024121 0ustar ebourgebourginvoker.goals = clean compile -T4 invoker.maven.version = 3.0+maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/0000775000175000017500000000000012243421456022757 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/0000775000175000017500000000000012243421456023546 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/0000775000175000017500000000000012243421456024525 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/0000775000175000017500000000000012243421456025446 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/0000775000175000017500000000000012243421456026235 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/0000775000175000017500000000000012243421456027456 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/0000775000175000017500000000000012243421456030564 5ustar ebourgebourg././@LongLink0000644000000000000000000000015112243421456011642 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031454 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031454 5ustar ebourgebourg././@LongLink0000644000000000000000000000016512243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031454 5ustar ebourgebourg././@LongLink0000644000000000000000000000020112243421456011636 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plug0000664000175000017500000000123011751323306031450 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } } maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/0000775000175000017500000000000012243421456024472 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/0000775000175000017500000000000012243421456025413 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/0000775000175000017500000000000012243421456026202 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/0000775000175000017500000000000012243421456027423 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/0000775000175000017500000000000012243421456030531 5ustar ebourgebourg././@LongLink0000644000000000000000000000015112243421456011642 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031421 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031421 5ustar ebourgebourg././@LongLink0000644000000000000000000000016512243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031421 5ustar ebourgebourg././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031420 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App2 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031420 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App5 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031420 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App7 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031420 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App6 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017512243421456011650 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000112111751323306031414 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031420 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App4 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031420 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App3 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-1/pom.xml0000664000175000017500000000165511751323306024301 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT org.apache.maven.plugins.compiler.it mcompiler-170-1 1.0-SNAPSHOT mcompiler-170-1 http://maven.apache.org UTF-8 junit junit 3.8.1 test maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/pom.xml0000664000175000017500000000171111751323306021640 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT pom org.apache.maven.plugins maven-compiler-plugin @project.version@ 1.5 1.5 mcompiler-170-1 mcompiler-170-2 mcompiler-170-3 mcompiler-170-4 maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/0000775000175000017500000000000012243421456022762 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/0000775000175000017500000000000012243421456023551 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/0000775000175000017500000000000012243421456024530 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/0000775000175000017500000000000012243421456025451 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/0000775000175000017500000000000012243421456026240 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/0000775000175000017500000000000012243421456027461 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/0000775000175000017500000000000012243421456030567 5ustar ebourgebourg././@LongLink0000644000000000000000000000015112243421456011642 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031457 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031457 5ustar ebourgebourg././@LongLink0000644000000000000000000000016512243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plug0000775000175000017500000000000012243421456031457 5ustar ebourgebourg././@LongLink0000644000000000000000000000020112243421456011636 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plug0000664000175000017500000000123011751323306031453 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } } maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/0000775000175000017500000000000012243421456024475 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/0000775000175000017500000000000012243421456025416 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/0000775000175000017500000000000012243421456026205 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/0000775000175000017500000000000012243421456027426 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/0000775000175000017500000000000012243421456030534 5ustar ebourgebourg././@LongLink0000644000000000000000000000015112243421456011642 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031424 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031424 5ustar ebourgebourg././@LongLink0000644000000000000000000000016512243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000775000175000017500000000000012243421456031424 5ustar ebourgebourg././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031423 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App2 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031423 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App5 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031423 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App7 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031423 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App6 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017512243421456011650 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000112111751323306031417 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031423 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App4 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000112511751323306031423 0ustar ebourgebourgpackage org.apache.maven.plugins.compiler.it; /** * Hello world! * */ public class App3 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } public static void mainFoo( String[] args ) { System.out.println( "Hello World!" ); } public void bar( String[] args ) { System.out.println( "Hello World!" ); } public void foo( String[] args ) { System.out.println( "Hello World!" ); } public void barfoo( String[] args ) { System.out.println( "Hello World!" ); } } maven-compiler-plugin-2.5.1/src/it/MCOMPILER-170/mcompiler-170-4/pom.xml0000664000175000017500000000165511751323306024304 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT org.apache.maven.plugins.compiler.it mcompiler-170-4 1.0-SNAPSHOT mcompiler-170-1 http://maven.apache.org UTF-8 junit junit 3.8.1 test maven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/0000775000175000017500000000000012243421456026350 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/0000775000175000017500000000000012243421456027137 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/test/0000775000175000017500000000000012243421456030116 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/test/java/0000775000175000017500000000000012243421456031037 5ustar ebourgebourg././@LongLink0000644000000000000000000000014712243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/test/java/JavaTest.javamaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/test/java/JavaTest.ja0000775000175000017500000000025611761477265033117 0ustar ebourgebourgimport org.junit.Test; import org.junit.Assert; public class JavaTest { @Test public void testMethod() { JavaMain.main(new String[] {}); Assert.assertTrue(true); } }maven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/test/groovy/0000775000175000017500000000000012243421456031443 5ustar ebourgebourg././@LongLink0000644000000000000000000000015512243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/test/groovy/GroovyTest.groovymaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/test/groovy/GroovyTes0000775000175000017500000000022311761477265033344 0ustar ebourgebourgimport org.junit.Test import org.junit.Assert class GroovyTest { @Test void testMethod() { GroovyMain.main null Assert.assertTrue true } }maven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/0000775000175000017500000000000012243421456030063 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/java/0000775000175000017500000000000012243421456031004 5ustar ebourgebourg././@LongLink0000644000000000000000000000015012243421456011641 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/java/JavaHello.javamaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/java/JavaHello.j0000775000175000017500000000017411761477265033046 0ustar ebourgebourgpublic class JavaHello implements Helloable { public void sayHello() { System.out.println("Hello World from Java!"); } }././@LongLink0000644000000000000000000000014712243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/java/JavaMain.javamaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/java/JavaMain.ja0000775000175000017500000000020511761477265033023 0ustar ebourgebourgpublic class JavaMain { public static void main(String... args) { new GroovyHello().sayHello(); new JavaHello().sayHello(); } }maven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/0000775000175000017500000000000012243421456031410 5ustar ebourgebourg././@LongLink0000644000000000000000000000015412243421456011645 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/Helloable.groovymaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/Helloable0000775000175000017500000000005011761477265033235 0ustar ebourgebourginterface Helloable { void sayHello() }././@LongLink0000644000000000000000000000015612243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyHello.groovymaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyHel0000775000175000017500000000014611761477265033272 0ustar ebourgebourgclass GroovyHello implements Helloable { void sayHello() { println("Hello World from Groovy!") } }././@LongLink0000644000000000000000000000015512243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyMain.groovymaven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyMai0000775000175000017500000000013211761477265033263 0ustar ebourgebourgclass GroovyMain { static void main(String... args) { new GroovyHello().sayHello() } }maven-compiler-plugin-2.5.1/src/it/groovy-project-with-new-plexus-compiler/pom.xml0000775000175000017500000000604111761623377027703 0ustar ebourgebourg 4.0.0 org.apache.maven.its.it0055 groovy-eclipse-it 0.1-SNAPSHOT Hello org.apache.maven.plugins maven-compiler-plugin @project.version@ groovy-eclipse-compiler org.codehaus.groovy groovy-eclipse-compiler @groovyEclipseCompilerVersion@ org.codehaus.mojo build-helper-maven-plugin 1.5 add-source generate-sources add-source src/main/groovy add-test-source generate-test-sources add-test-source src/test/groovy org.codehaus.groovy groovy-all @groovyVersion@ junit junit 4.8.2 test maven-compiler-plugin-2.5.1/src/it/mcompiler-120/0000775000175000017500000000000012243421456020760 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-120/src/0000775000175000017500000000000012243421456021547 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-120/src/main/0000775000175000017500000000000012243421456022473 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-120/src/main/java/0000775000175000017500000000000012243421456023414 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-120/src/main/java/org/0000775000175000017500000000000012243421456024203 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-120/src/main/java/org/maven/0000775000175000017500000000000012243421456025311 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-120/src/main/java/org/maven/test/0000775000175000017500000000000012243421456026270 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-120/src/main/java/org/maven/test/Main.java0000664000175000017500000000037211573452036030024 0ustar ebourgebourgpackage org.maven.test; import java.util.ArrayList; import java.util.List; public class Main { /** * @param args */ public static void main(String[] args) { List blah = new ArrayList(); blah.add("hello"); } } maven-compiler-plugin-2.5.1/src/it/mcompiler-120/invoker.properties0000664000175000017500000000003711573452036024556 0ustar ebourgebourginvoker.buildResult = failure maven-compiler-plugin-2.5.1/src/it/mcompiler-120/pom.xml0000664000175000017500000000237511573452036022307 0ustar ebourgebourg 4.0.0 org.maven.test warningsbuild 0.1 Werror warnings build jar junit junit 4.4 test log4j log4j 1.2.14 jar compile maven-compiler-plugin @project.version@ 1.6 1.6 -Xlint:all, -path true maven-compiler-plugin-2.5.1/src/it/mcompiler-106/0000775000175000017500000000000012243421456020764 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-106/src/0000775000175000017500000000000012243421456021553 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-106/src/main/0000775000175000017500000000000012243421456022477 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-106/src/main/java/0000775000175000017500000000000012243421456023420 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-106/src/main/java/MyClass.java0000664000175000017500000000003611626530072025634 0ustar ebourgebourgpublic class MyClass { } maven-compiler-plugin-2.5.1/src/it/mcompiler-106/invoker.properties0000664000175000017500000000003511626530072024554 0ustar ebourgebourginvoker.goals = clean compilemaven-compiler-plugin-2.5.1/src/it/mcompiler-106/pom.xml0000664000175000017500000000155011626530072022301 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-106 1.0-SNAPSHOT org.apache.maven.plugins maven-compiler-plugin @project.version@ true 1.5 1.5 maven-compiler-plugin-2.5.1/src/it/jdk16-annotation/0000775000175000017500000000000012243421456021560 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/0000775000175000017500000000000012243421456022347 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/test/0000775000175000017500000000000012243421456023326 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/test/java/0000775000175000017500000000000012243421456024247 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/test/java/com/0000775000175000017500000000000012243421456025025 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/test/java/com/mycompany/0000775000175000017500000000000012243421456027041 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/0000775000175000017500000000000012243421456032053 5ustar ebourgebourg././@LongLink0000644000000000000000000000015512243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.javamaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppT0000664000175000017500000000131511345474314032645 0ustar ebourgebourgpackage com.mycompany.jdk16annotation; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ @ServiceProvider(service=App.class, path="xxx", position=1) public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public AppTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void testApp() { assertTrue( true ); } } maven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/0000775000175000017500000000000012243421456023273 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/0000775000175000017500000000000012243421456024214 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/com/0000775000175000017500000000000012243421456024772 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/com/mycompany/0000775000175000017500000000000012243421456027006 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/0000775000175000017500000000000012243421456032020 5ustar ebourgebourg././@LongLink0000644000000000000000000000017612243421456011651 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProviderProcessor.javamaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/Serv0000664000175000017500000000444511345474314032674 0ustar ebourgebourgpackage com.mycompany.jdk16annotation; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.RoundEnvironment; import javax.annotation.processing.SupportedSourceVersion; import javax.lang.model.SourceVersion; import javax.lang.model.element.Element; import javax.lang.model.element.TypeElement; import javax.tools.Diagnostic.Kind; import javax.tools.FileObject; import javax.tools.StandardLocation; @SupportedSourceVersion(SourceVersion.RELEASE_6) public class ServiceProviderProcessor extends AbstractProcessor { public @Override Set getSupportedAnnotationTypes() { return new HashSet(Arrays.asList( ServiceProvider.class.getCanonicalName() )); } /** public for ServiceLoader */ public ServiceProviderProcessor() {} @Override public boolean process(Set annotations, RoundEnvironment roundEnv) { if (roundEnv.errorRaised()) { return false; } if (roundEnv.processingOver()) { writeServices(); return true; } else { return true; } } private void writeServices() { try { FileObject out = processingEnv.getFiler().createResource(StandardLocation.CLASS_OUTPUT, "", "META-INF/one",new Element[0]); OutputStream os = out.openOutputStream(); OutputStream os2 = processingEnv.getFiler().createSourceFile("org.Milos", new Element[0]).openOutputStream(); OutputStreamWriter osr = new OutputStreamWriter(os2); try { PrintWriter w = new PrintWriter(new OutputStreamWriter(os, "UTF-8")); w.write("test"); w.flush(); String clazz = "package org;\n class Milos {}"; osr.write(clazz.toCharArray()); osr.flush(); } finally { osr.close(); os.close(); } } catch (IOException x) { processingEnv.getMessager().printMessage(Kind.ERROR, "Failed to write to one: " + x.toString()); } } } ././@LongLink0000644000000000000000000000015112243421456011642 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.javamaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.0000664000175000017500000000030011345474314032535 0ustar ebourgebourgpackage com.mycompany.jdk16annotation; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000016512243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProvider.javamaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/Serv0000664000175000017500000000062311345474314032666 0ustar ebourgebourgpackage com.mycompany.jdk16annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE) public @interface ServiceProvider { Class service(); int position() default Integer.MAX_VALUE; String path() default ""; } maven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/resources/0000775000175000017500000000000012243421456025305 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/resources/META-INF/0000775000175000017500000000000012243421456026445 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/resources/META-INF/services/0000775000175000017500000000000012243421456030270 5ustar ebourgebourg././@LongLink0000644000000000000000000000017712243421456011652 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/resources/META-INF/services/javax.annotation.processing.Processormaven-compiler-plugin-2.5.1/src/it/jdk16-annotation/src/main/resources/META-INF/services/javax.annot0000664000175000017500000000006711345474314032450 0ustar ebourgebourgcom.mycompany.jdk16annotation.ServiceProviderProcessor maven-compiler-plugin-2.5.1/src/it/jdk16-annotation/invoker.properties0000664000175000017500000000024211440450554025350 0ustar ebourgebourg# build project if Jdk is 1.6+, only then annotations get processed. invoker.java.version = 1.6+ # test requires MNG-3203 to work invoker.maven.version = 2.2.0+ maven-compiler-plugin-2.5.1/src/it/jdk16-annotation/verify.bsh0000664000175000017500000000112511746576456023603 0ustar ebourgebourgimport java.io.*; import java.util.*; import java.util.regex.*; try { File res = new File( basedir, "target/test-classes/META-INF/one" ); if ( !res.isFile() ) { System.out.println( "generated resource not existent: " + res ); return false; } File java = new File( basedir, "target/generated-test-sources/test-annotations/org/Milos.java" ); if ( !java.isFile() ) { System.out.println( "generated java file not existent: " + java ); return false; } } catch( Throwable t ) { t.printStackTrace(); return false; } return true; maven-compiler-plugin-2.5.1/src/it/jdk16-annotation/pom.xml0000664000175000017500000000237211440450554023100 0ustar ebourgebourg 4.0.0 com.mycompany jdk16-annotation jar 1.0 jdk16-annotation http://maven.apache.org org.apache.maven.plugins maven-compiler-plugin @project.version@ default-compile none 1.6 1.6 junit junit 3.8.1 test maven-compiler-plugin-2.5.1/src/it/extras/0000775000175000017500000000000012243421456017777 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/0000775000175000017500000000000012243421456021722 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/0000775000175000017500000000000012243421456022511 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/0000775000175000017500000000000012243421456023470 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/java/0000775000175000017500000000000012243421456024411 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/java/org/0000775000175000017500000000000012243421456025200 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/java/org/apache/0000775000175000017500000000000012243421456026421 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/java/org/apache/maven/0000775000175000017500000000000012243421456027527 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/java/org/apache/maven/it0055/0000775000175000017500000000000012243421456030455 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/extras/0000775000175000017500000000000012243421456024776 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/extras/org/0000775000175000017500000000000012243421456025565 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/extras/org/apache/0000775000175000017500000000000012243421456027006 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/extras/org/apache/maven/0000775000175000017500000000000012243421456030114 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/test/extras/org/apache/maven/it0055/0000775000175000017500000000000012243421456031042 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/0000775000175000017500000000000012243421456023435 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/java/0000775000175000017500000000000012243421456024356 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/java/org/0000775000175000017500000000000012243421456025145 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/java/org/apache/0000775000175000017500000000000012243421456026366 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/java/org/apache/maven/0000775000175000017500000000000012243421456027474 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/java/org/apache/maven/it0055/0000775000175000017500000000000012243421456030422 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/extras/0000775000175000017500000000000012243421456024743 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/extras/org/0000775000175000017500000000000012243421456025532 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/extras/org/apache/0000775000175000017500000000000012243421456026753 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/extras/org/apache/maven/0000775000175000017500000000000012243421456030061 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/with-copy/src/main/extras/org/apache/maven/it0055/0000775000175000017500000000000012243421456031007 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/0000775000175000017500000000000012243421456022452 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/0000775000175000017500000000000012243421456023241 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/0000775000175000017500000000000012243421456024220 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/java/0000775000175000017500000000000012243421456025141 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/java/org/0000775000175000017500000000000012243421456025730 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/java/org/apache/0000775000175000017500000000000012243421456027151 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/java/org/apache/maven/0000775000175000017500000000000012243421456030257 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/java/org/apache/maven/it0055/0000775000175000017500000000000012243421456031205 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/extras/0000775000175000017500000000000012243421456025526 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/extras/org/0000775000175000017500000000000012243421456026315 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/extras/org/apache/0000775000175000017500000000000012243421456027536 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/extras/org/apache/maven/0000775000175000017500000000000012243421456030644 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/test/extras/org/apache/maven/it0055/0000775000175000017500000000000012243421456031572 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/0000775000175000017500000000000012243421456024165 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/java/0000775000175000017500000000000012243421456025106 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/java/org/0000775000175000017500000000000012243421456025675 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/java/org/apache/0000775000175000017500000000000012243421456027116 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/java/org/apache/maven/0000775000175000017500000000000012243421456030224 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/java/org/apache/maven/it0055/0000775000175000017500000000000012243421456031152 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/extras/0000775000175000017500000000000012243421456025473 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/extras/org/0000775000175000017500000000000012243421456026262 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/extras/org/apache/0000775000175000017500000000000012243421456027503 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/extras/org/apache/maven/0000775000175000017500000000000012243421456030611 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/extras/without-copy/src/main/extras/org/apache/maven/it0055/0000775000175000017500000000000012243421456031537 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-135/0000775000175000017500000000000012243421456020766 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-135/src/0000775000175000017500000000000012243421456021555 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-135/src/main/0000775000175000017500000000000012243421456022501 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-135/src/main/java/0000775000175000017500000000000012243421456023422 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/mcompiler-135/src/main/java/MyClass.java0000664000175000017500000000003611626745066025651 0ustar ebourgebourgpublic class MyClass { } maven-compiler-plugin-2.5.1/src/it/mcompiler-135/invoker.properties0000664000175000017500000000007211626745066024572 0ustar ebourgebourginvoker.goals = clean compile invoker.java.version = 1.6+maven-compiler-plugin-2.5.1/src/it/mcompiler-135/pom.xml0000664000175000017500000000162711626745066022323 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-135 1.0-SNAPSHOT org.apache.maven.plugins maven-compiler-plugin @project.version@ true 1.6 1.6 true src/main/webapp maven-compiler-plugin-2.5.1/src/it/settings.xml0000664000175000017500000000317411752144430021056 0ustar ebourgebourg it-repo true local.central @localRepositoryUrl@ true true local.central @localRepositoryUrl@ true true maven-compiler-plugin-2.5.1/src/it/includes-excludes/0000775000175000017500000000000012243421456022111 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/0000775000175000017500000000000012243421456022700 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/0000775000175000017500000000000012243421456023657 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/java/0000775000175000017500000000000012243421456024600 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/java/org/0000775000175000017500000000000012243421456025367 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/java/org/apache/0000775000175000017500000000000012243421456026610 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/java/org/apache/maven/0000775000175000017500000000000012243421456027716 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/0000775000175000017500000000000012243421456030644 5ustar ebourgebourg././@LongLink0000644000000000000000000000015612243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.javamaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwo0000664000175000017500000000045311066262242032527 0ustar ebourgebourgpackage org.apache.maven.it0001; import junit.framework.TestCase; public class PersonTwoTest extends TestCase { public void testPerson() { Person person = new Person(); person.setName( "foo" ); assertEquals( "foo", person.getName() ); } } ././@LongLink0000644000000000000000000000015312243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.javamaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTes0000664000175000017500000000045011066262242032506 0ustar ebourgebourgpackage org.apache.maven.it0055; import junit.framework.TestCase; public class PersonTest extends TestCase { public void testPerson() { Person person = new Person(); person.setName( "foo" ); assertEquals( "foo", person.getName() ); } } maven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/0000775000175000017500000000000012243421456023624 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/java/0000775000175000017500000000000012243421456024545 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/java/org/0000775000175000017500000000000012243421456025334 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/java/org/apache/0000775000175000017500000000000012243421456026555 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/java/org/apache/maven/0000775000175000017500000000000012243421456027663 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/0000775000175000017500000000000012243421456030611 5ustar ebourgebourg././@LongLink0000644000000000000000000000015212243421456011643 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.javamaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo0000664000175000017500000000035211066262242032472 0ustar ebourgebourgpackage org.apache.maven.it0055; public class PersonTwo { private String name; public void setName( String name ) { this.name = name; } public String getName() { return name; } } ././@LongLink0000644000000000000000000000014712243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.javamaven-compiler-plugin-2.5.1/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.ja0000664000175000017500000000034711066262242032375 0ustar ebourgebourgpackage org.apache.maven.it0055; public class Person { private String name; public void setName( String name ) { this.name = name; } public String getName() { return name; } } maven-compiler-plugin-2.5.1/src/it/includes-excludes/verify.bsh0000664000175000017500000000250111066262242024107 0ustar ebourgebourgimport java.io.*; import java.util.*; import java.util.regex.*; try { File targetDir = new File( basedir, "target" ); File mainClass = new File( targetDir, "classes/org/apache/maven/it0055/Person.class" ); System.out.println( "Checking for existence of: " + mainClass ); if ( !mainClass.isFile() ) { System.err.println( "FAILED!" ); return false; } File excludedMainClass = new File( targetDir, "classes/org/apache/maven/it0055/PersonTwo.class" ); System.out.println( "Checking for absence of: " + excludedMainClass ); if ( excludedMainClass.exists() ) { System.err.println( "FAILED!" ); return false; } File testClass = new File( targetDir, "test-classes/org/apache/maven/it0055/PersonTest.class" ); System.out.println( "Checking for existence of: " + testClass ); if ( !testClass.isFile() ) { System.err.println( "FAILED!" ); return false; } File excludedTestClass = new File( targetDir, "test-classes/org/apache/maven/it0055/PersonTwoTest.class" ); System.out.println( "Checking for absence of: " + excludedTestClass ); if ( excludedTestClass.exists() ) { System.err.println( "FAILED!" ); return false; } } catch( Throwable t ) { t.printStackTrace(); return false; } return true; maven-compiler-plugin-2.5.1/src/it/includes-excludes/pom.xml0000664000175000017500000000360211066262242023425 0ustar ebourgebourg 4.0.0 org.apache.maven.its.it0055 maven-it-it0055 1.0 jar Maven Integration Test :: it0055 Test that source includes/excludes with in the compiler plugin config. This will test excludes and testExcludes... junit junit 3.8.2 jar test org.apache.maven.plugins maven-compiler-plugin @project.version@ **/PersonTwo.java **/PersonTwoTest.java maven-compiler-plugin-2.5.1/src/site/0000775000175000017500000000000012243421456017021 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/site/site.xml0000664000175000017500000000351311236300300020472 0ustar ebourgebourg maven-compiler-plugin-2.5.1/src/site/fml/0000775000175000017500000000000012243421456017577 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/site/fml/faq.fml0000664000175000017500000000355211317134314021046 0ustar ebourgebourg How do I add my generated sources to the compile path of Maven, when using Modello?

Modello generate the sources in the generate-sources phase and automatically adds the source directory for compilation in Maven. So you don't have to copy the generated sources.

You have to declare the Modello Maven Plugin in the build of your project for source generation (in that way the sources are generated each time).

For more information about Modello, please visit the Modello website .

maven-compiler-plugin-2.5.1/src/site/apt/0000775000175000017500000000000012243421456017605 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/site/apt/usage.apt.vm0000664000175000017500000000442511753015777022057 0ustar ebourgebourg ------ Usage ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Usage * Compiling Your Java Sources The goals for the Compiler Plugin are bound to their respective phases in the build lifecycle. So to compile your sources, you need only to tell maven until which lifecycle to execute. The following will compile your sources: +----- mvn compile +----- To compile your test sources, you'll do: +----- mvn test-compile +----- The above command will execute both <<>> and <<>> since the <<>> phase happens a few phases before the <<>> phase. * Configuring Your Compiler Plugin Since the Compiler Plugin executes automatically during their phases, you don't have to put <<>> unlike many other plugins. However, you should specify the version of the Compiler Plugin. +----- ... org.apache.maven.plugins maven-compiler-plugin ${project.version} ... +----- <>: Maven 3.0 will issue warnings if you do not specify the version of a plugin. maven-compiler-plugin-2.5.1/src/site/apt/examples/0000775000175000017500000000000012243421456021423 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/site/apt/examples/compile-using-different-jdk.apt.vm0000664000175000017500000000523211753015777030053 0ustar ebourgebourg ------ Compiling Sources Using A Different JDK ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Compiling Sources Using A Different JDK The <<>> parameter can be used to specify the version of the compiler that the plugin will use. However, you also need to set <<>> to <<>> for this to work. For example: +------- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} true true 1.3 [...] [...] +------- To avoid hard-coding a filesystem path for the executable, you can use a property. For example: +------- ${JAVA_1_4_HOME}/bin/javac +------- Each developer then defines this property in {{{http://maven.apache.org/ref/current/maven-settings/settings.html}settings.xml}}, or sets an environment variable, so that the build remains portable. +------- [...] [...] compiler C:\Program Files\Java\j2sdk1.4.2_09 [...] compiler +------- If you build with a different JDK, you may want to {{{http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html} customize}} the jar file manifest. maven-compiler-plugin-2.5.1/src/site/apt/examples/compile-with-memory-enhancements.apt.vm0000664000175000017500000000327411753015777031147 0ustar ebourgebourg ------ Compile Using Memory Allocation Enhancements ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Compile Using Memory Allocation Enhancements The Compiler Plugin accepts configurations for <<>> and <<>>. You can follow the example below to set the initial memory size to 128MB and the maximum memory usage to 512MB: +----- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} true 128m 512m [...] [...] +-----maven-compiler-plugin-2.5.1/src/site/apt/examples/set-compiler-source-and-target.apt.vm0000664000175000017500000000472011753015777030514 0ustar ebourgebourg ------ Setting the -source and -target of the Java Compiler ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Setting the <<<-source>>> and <<<-target>>> of the Java Compiler Sometimes when you may need to compile a certain project to a different version than what you are currently using. The <<>> can accept such command using <<<-source>>> and <<<-target>>>. The Compiler Plugin can also be configured to provide these options during compilation. For example, if you want to enable assertions (<<<-source 1.4>>>) and also want the compiled classes to be compatible with JVM 1.4 (<<<-target 1.4>>>), you can then put: +----- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} 1.4 1.4 [...] [...] +----- <> Merely setting the <<>> option does not guarantee that your code actually runs on a JRE with the specified version. The pitfall is unintended usage of APIs that only exist in later JREs which would make your code fail at runtime with a linkage error. To avoid this issue, you can either configure the compiler's boot classpath to match the target JRE or use the {{{http://mojo.codehaus.org/animal-sniffer-maven-plugin/}Animal Sniffer Maven Plugin}} to verify your code doesn't use unintended APIs. maven-compiler-plugin-2.5.1/src/site/apt/examples/pass-compiler-arguments.apt.vm0000664000175000017500000000445311753015777027353 0ustar ebourgebourg ------ Pass Compiler Arguments ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Pass Compiler Arguments Sometimes, you need to pass other compiler arguments that are not handled by the Compiler Plugin itself but is supported by the <<>> selected. For such arguments, the Compiler Plugin's <<>> will be used. The following example passes compiler arguments to the <<>> compiler: +----- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} -verbose -bootclasspath ${java.home}\lib\rt.jar [...] [...] +----- Or you can also use the Map version: +----- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} ${java.home}\lib\rt.jar [...] [...] +----- maven-compiler-plugin-2.5.1/src/site/apt/non-javac-compilers.apt.vm0000664000175000017500000000532511753015777024622 0ustar ebourgebourg ------ Using Non-Javac Compilers ------ Edwin Punzalan ------ 2006-07-19 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Using Non-Javac Compilers Contrary to this plugin's name, the Compiler Plugin does not compile the sources of your project by itself. To compile, the Compiler Plugin uses another class to compile them. The parameter <<>> determines which class will be used. Currently, the Compiler Plugin is bundled with the <<>> compiler artifact with artifactId <<>>, which can be seen as one of the dependencies declared inside the Compiler Plugin's POM. Plexus Compiler component has some other compiler Ids available under the groupId <<>>: * <<>> with artifactId <<>>. * <<>> with artifactId <<>>. * <<>> with artifactId <<>>. * <<>> with artifactId <<>>. * Using The Other Plexus Compilers To use any of the non-javac compilers, you need to make the artifact available in the classpath when the Compiler Plugin runs. This is possible by adding the dependency when declaring the plugin in your project's <<>>. The example below shows how to use the <<>> compiler: +----- [...] [...] [...] maven-compiler-plugin ${project.version} csharp org.codehaus.plexus plexus-compiler-csharp 1.6 [...] +----- maven-compiler-plugin-2.5.1/src/site/apt/index.apt0000664000175000017500000001042411753015777021435 0ustar ebourgebourg ------ Introduction ------ Edwin Punzalan ------ 2006-07-06 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Maven Compiler Plugin The Compiler Plugin is used to compile the sources of your project. The default compiler is <<>> and is used to compile Java sources. Also note that at present the default <<>> setting is <<<1.5>>> and the default <<>> setting is <<<1.5>>>, independently of the JDK you run Maven with. If you want to change these defaults, you should set <<>> and <<>> as described in {{{./examples/set-compiler-source-and-target.html}Setting the -source and -target of the Java Compiler}}. Other compilers than <<>> can be used and work has already started on AspectJ, .NET, and C#. This Compiler Plugin corresponds to Maven 1.x's Java Plugin. <> * Goals Overview The Compiler Plugin has two goals. Both are already bound to their proper phases within the Maven Lifecycle and are therefore, automatically executed during their respective phases. * {{{./compile-mojo.html}compiler:compile}} is bound to the compile phase and is used to compile the main source files. * {{{./testCompile-mojo.html}compiler:testCompile}} is bound to the test-compile phase and is used to compile the test source files. * Usage General instructions on how to use the Compiler Plugin can be found on the {{{./usage.html}usage page}}. Some more specific use cases are described in the examples given below. Last but not least, users occasionally contribute additional examples, tips or errata to the {{{http://docs.codehaus.org/display/MAVENUSER/Compiler+Plugin}plugin's wiki page}}. In case you still have questions regarding the plugin's usage, please have a look at the {{{./faq.html}FAQ}} and feel free to contact the {{{./mail-lists.html}user mailing list}}. The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the {{{./mail-lists.html}mail archive}}. If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our {{{./issue-tracking.html}issue tracker}}. When creating a new issue, please provide a comprehensive description of your concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. Of course, patches are welcome, too. Contributors can check out the project from our {{{./source-repository.html}source repository}} and will find supplementary information in the {{{http://maven.apache.org/guides/development/guide-helping.html}guide to helping with Maven}}. * Examples To provide you with better understanding on some usages of the Compiler Plugin, you can take a look into the following examples: * {{{./examples/compile-using-different-jdk.html}Compile Using A Different JDK}} * {{{./examples/set-compiler-source-and-target.html}Compile Using -source and -target javac Options}} * {{{./examples/compile-with-memory-enhancements.html}Compile Using Memory Allocation Enhancement}} * {{{./examples/pass-compiler-arguments.html}Pass Compiler Arguments}} [] maven-compiler-plugin-2.5.1/src/test/0000775000175000017500000000000012243421456017034 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/java/0000775000175000017500000000000012243421456017755 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/java/org/0000775000175000017500000000000012243421456020544 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/java/org/apache/0000775000175000017500000000000012243421456021765 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/java/org/apache/maven/0000775000175000017500000000000012243421456023073 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/java/org/apache/maven/plugin/0000775000175000017500000000000012243421456024371 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/java/org/apache/maven/plugin/CompilerMojoTestCase.java0000664000175000017500000002716411753015100031267 0ustar ebourgebourgpackage org.apache.maven.plugin; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import org.apache.maven.artifact.Artifact; import org.apache.maven.plugin.stubs.CompilerManagerStub; import org.apache.maven.plugin.stubs.DebugEnabledLog; import org.apache.maven.plugin.testing.AbstractMojoTestCase; import org.apache.maven.plugin.testing.stubs.ArtifactStub; public class CompilerMojoTestCase extends AbstractMojoTestCase { /** * tests the ability of the plugin to compile a basic file * * @throws Exception */ public void testCompilerBasic() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-basic-test/plugin-config.xml" ); compileMojo.execute(); File testClass = new File( compileMojo.getOutputDirectory(), "TestCompile0.class" ); assertTrue( testClass.exists() ); TestCompilerMojo testCompileMojo = getTestCompilerMojo( compileMojo, "target/test-classes/unit/compiler-basic-test/plugin-config.xml" ); testCompileMojo.execute(); Artifact projectArtifact = (Artifact) getVariableValueFromObject( compileMojo, "projectArtifact" ); assertNotNull( "MCOMPILER-94: artifact file should only be null if there is nothing to compile", projectArtifact.getFile() ); testClass = new File( testCompileMojo.getOutputDirectory(), "TestCompile0Test.class" ); assertTrue( testClass.exists() ); } /** * tests the ability of the plugin to respond to empty source * * @throws Exception */ public void testCompilerEmptySource() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-empty-source-test/plugin-config.xml" ); compileMojo.execute(); assertFalse( compileMojo.getOutputDirectory().exists() ); Artifact projectArtifact = (Artifact) getVariableValueFromObject( compileMojo, "projectArtifact" ); assertNull( "MCOMPILER-94: artifact file should be null if there is nothing to compile", projectArtifact.getFile() ); TestCompilerMojo testCompileMojo = getTestCompilerMojo( compileMojo, "target/test-classes/unit/compiler-empty-source-test/plugin-config.xml" ); testCompileMojo.execute(); assertFalse( testCompileMojo.getOutputDirectory().exists() ); } /** * tests the ability of the plugin to respond to includes and excludes correctly * * @throws Exception */ public void testCompilerIncludesExcludes() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-includes-excludes-test/plugin-config.xml" ); Set includes = new HashSet(); includes.add( "**/TestCompile4*.java" ); setVariableValueToObject( compileMojo, "includes", includes ); Set excludes = new HashSet(); excludes.add( "**/TestCompile2*.java" ); excludes.add( "**/TestCompile3*.java" ); setVariableValueToObject( compileMojo, "excludes", excludes ); compileMojo.execute(); File testClass = new File( compileMojo.getOutputDirectory(), "TestCompile2.class" ); assertFalse( testClass.exists() ); testClass = new File( compileMojo.getOutputDirectory(), "TestCompile3.class" ); assertFalse( testClass.exists() ); testClass = new File( compileMojo.getOutputDirectory(), "TestCompile4.class" ); assertTrue( testClass.exists() ); TestCompilerMojo testCompileMojo = getTestCompilerMojo( compileMojo, "target/test-classes/unit/compiler-includes-excludes-test/plugin-config.xml" ); setVariableValueToObject( testCompileMojo, "testIncludes", includes ); setVariableValueToObject( testCompileMojo, "testExcludes", excludes ); testCompileMojo.execute(); testClass = new File( testCompileMojo.getOutputDirectory(), "TestCompile2TestCase.class" ); assertFalse( testClass.exists() ); testClass = new File( testCompileMojo.getOutputDirectory(), "TestCompile3TestCase.class" ); assertFalse( testClass.exists() ); testClass = new File( testCompileMojo.getOutputDirectory(), "TestCompile4TestCase.class" ); assertTrue( testClass.exists() ); } /** * tests the ability of the plugin to fork and successfully compile * * @throws Exception */ public void testCompilerFork() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-fork-test/plugin-config.xml" ); compileMojo.execute(); File testClass = new File( compileMojo.getOutputDirectory(), "TestCompile1.class" ); assertTrue( testClass.exists() ); TestCompilerMojo testCompileMojo = getTestCompilerMojo( compileMojo, "target/test-classes/unit/compiler-fork-test/plugin-config.xml" ); testCompileMojo.execute(); testClass = new File( testCompileMojo.getOutputDirectory(), "TestCompile1TestCase.class" ); assertTrue( testClass.exists() ); } public void testOneOutputFileForAllInput() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-one-output-file-test/plugin-config.xml" ); setVariableValueToObject( compileMojo, "compilerManager", new CompilerManagerStub() ); compileMojo.execute(); File testClass = new File( compileMojo.getOutputDirectory(), "compiled.class" ); assertTrue( testClass.exists() ); TestCompilerMojo testCompileMojo = getTestCompilerMojo( compileMojo, "target/test-classes/unit/compiler-one-output-file-test/plugin-config.xml" ); setVariableValueToObject( testCompileMojo, "compilerManager", new CompilerManagerStub() ); testCompileMojo.execute(); testClass = new File( testCompileMojo.getOutputDirectory(), "compiled.class" ); assertTrue( testClass.exists() ); } public void testCompilerArgs() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-args-test/plugin-config.xml" ); setVariableValueToObject( compileMojo, "compilerManager", new CompilerManagerStub() ); compileMojo.execute(); File testClass = new File( compileMojo.getOutputDirectory(), "compiled.class" ); assertTrue( testClass.exists() ); } public void testOneOutputFileForAllInput2() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-one-output-file-test2/plugin-config.xml" ); setVariableValueToObject( compileMojo, "compilerManager", new CompilerManagerStub() ); Set includes = new HashSet(); includes.add( "**/TestCompile4*.java" ); setVariableValueToObject( compileMojo, "includes", includes ); Set excludes = new HashSet(); excludes.add( "**/TestCompile2*.java" ); excludes.add( "**/TestCompile3*.java" ); setVariableValueToObject( compileMojo, "excludes", excludes ); compileMojo.execute(); File testClass = new File( compileMojo.getOutputDirectory(), "compiled.class" ); assertTrue( testClass.exists() ); TestCompilerMojo testCompileMojo = getTestCompilerMojo( compileMojo, "target/test-classes/unit/compiler-one-output-file-test2/plugin-config.xml" ); setVariableValueToObject( testCompileMojo, "compilerManager", new CompilerManagerStub() ); setVariableValueToObject( testCompileMojo, "testIncludes", includes ); setVariableValueToObject( testCompileMojo, "testExcludes", excludes ); testCompileMojo.execute(); testClass = new File( testCompileMojo.getOutputDirectory(), "compiled.class" ); assertTrue( testClass.exists() ); } public void testCompileFailure() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-fail-test/plugin-config.xml" ); setVariableValueToObject( compileMojo, "compilerManager", new CompilerManagerStub( true ) ); try { compileMojo.execute(); fail( "Should throw an exception" ); } catch ( CompilationFailureException e ) { //expected } } public void testCompileFailOnError() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-failonerror-test/plugin-config.xml" ); setVariableValueToObject( compileMojo, "compilerManager", new CompilerManagerStub( true ) ); try { compileMojo.execute(); assertTrue( true ); } catch ( CompilationFailureException e ) { fail( "The compilation error should have been consumed because failOnError = false" ); } } private CompilerMojo getCompilerMojo( String pomXml ) throws Exception { File testPom = new File( getBasedir(), pomXml ); CompilerMojo mojo = (CompilerMojo) lookupMojo( "compile", testPom ); setVariableValueToObject( mojo, "log", new DebugEnabledLog() ); setVariableValueToObject( mojo, "projectArtifact", new ArtifactStub() ); setVariableValueToObject( mojo, "classpathElements", Collections.EMPTY_LIST ); assertNotNull( mojo ); return mojo; } private TestCompilerMojo getTestCompilerMojo( CompilerMojo compilerMojo, String pomXml ) throws Exception { File testPom = new File( getBasedir(), pomXml ); TestCompilerMojo mojo = (TestCompilerMojo) lookupMojo( "testCompile", testPom ); setVariableValueToObject( mojo, "log", new DebugEnabledLog() ); File buildDir = (File) getVariableValueFromObject( compilerMojo, "buildDirectory" ); File testClassesDir = new File( buildDir, "test-classes" ); setVariableValueToObject( mojo, "outputDirectory", testClassesDir ); List testClasspathList = new ArrayList(); testClasspathList.add( System.getProperty( "localRepository" ) + "/junit/junit/3.8.1/junit-3.8.1.jar" ); testClasspathList.add( compilerMojo.getOutputDirectory().getPath() ); setVariableValueToObject( mojo, "classpathElements", testClasspathList ); String testSourceRoot = testPom.getParent() + "/src/test/java"; setVariableValueToObject( mojo, "compileSourceRoots", Collections.singletonList( testSourceRoot ) ); return mojo; } } maven-compiler-plugin-2.5.1/src/test/java/org/apache/maven/plugin/stubs/0000775000175000017500000000000012243421456025531 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/java/org/apache/maven/plugin/stubs/DebugEnabledLog.java0000664000175000017500000000215111123544663031340 0ustar ebourgebourgpackage org.apache.maven.plugin.stubs; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.apache.maven.plugin.logging.SystemStreamLog; /** * @author Edwin Punzalan */ public class DebugEnabledLog extends SystemStreamLog { public DebugEnabledLog() { super(); } public boolean isDebugEnabled() { return true; } } maven-compiler-plugin-2.5.1/src/test/java/org/apache/maven/plugin/stubs/CompilerManagerStub.java0000664000175000017500000000267411123544663032312 0ustar ebourgebourgpackage org.apache.maven.plugin.stubs; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.codehaus.plexus.compiler.manager.CompilerManager; import org.codehaus.plexus.compiler.manager.NoSuchCompilerException; /** * @author Edwin Punzalan */ public class CompilerManagerStub implements CompilerManager { private boolean shouldFail; public CompilerManagerStub() { this( false ); } public CompilerManagerStub( boolean shouldFail ) { this.shouldFail = shouldFail; } public org.codehaus.plexus.compiler.Compiler getCompiler( String compilerId ) throws NoSuchCompilerException { return new CompilerStub( shouldFail ); } } maven-compiler-plugin-2.5.1/src/test/java/org/apache/maven/plugin/stubs/CompilerStub.java0000664000175000017500000000617711753015100031005 0ustar ebourgebourgpackage org.apache.maven.plugin.stubs; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.codehaus.plexus.compiler.CompilerConfiguration; import org.codehaus.plexus.compiler.CompilerError; import org.codehaus.plexus.compiler.CompilerException; import org.codehaus.plexus.compiler.CompilerOutputStyle; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.List; /** * @author Edwin Punzalan */ public class CompilerStub implements org.codehaus.plexus.compiler.Compiler { private boolean shouldFail; public CompilerStub() { this( false ); } public CompilerStub( boolean shouldFail ) { this.shouldFail = shouldFail; } public CompilerOutputStyle getCompilerOutputStyle() { return CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES; } public String getInputFileEnding( CompilerConfiguration compilerConfiguration ) throws CompilerException { return "java"; } public String getOutputFileEnding( CompilerConfiguration compilerConfiguration ) throws CompilerException { return "class"; } public String getOutputFile( CompilerConfiguration compilerConfiguration ) throws CompilerException { return "output-file"; } public boolean canUpdateTarget( CompilerConfiguration compilerConfiguration ) throws CompilerException { return false; } public List compile( CompilerConfiguration compilerConfiguration ) throws CompilerException { File outputDir = new File( compilerConfiguration.getOutputLocation() ); try { outputDir.mkdirs(); File outputFile = new File( outputDir, "compiled.class" ); if ( !outputFile.exists() && !outputFile.createNewFile() ) { throw new CompilerException( "could not create output file: " + outputFile.getAbsolutePath() ); } } catch ( IOException e ) { throw new CompilerException( "An exception occurred while creating output file", e ); } return Collections.singletonList( new CompilerError( "message 1", shouldFail ) ); } public String[] createCommandLine( CompilerConfiguration compilerConfiguration ) throws CompilerException { return new String[0]; } } maven-compiler-plugin-2.5.1/src/test/resources/0000775000175000017500000000000012243421456021046 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/0000775000175000017500000000000012243421456022025 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/0000775000175000017500000000000012243421456025553 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/src/0000775000175000017500000000000012243421456026342 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/src/test/0000775000175000017500000000000012243421456027321 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/src/test/java/0000775000175000017500000000000012243421456030242 5ustar ebourgebourg././@LongLink0000644000000000000000000000015712243421456011650 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/src/test/java/TestCompile1TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/src/test/java/TestCompile1Tes0000664000175000017500000000174011123544663033156 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile1TestCase extends TestCase { public void testCompile1() { TestCompile1 test = new TestCompile1(); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/src/main/0000775000175000017500000000000012243421456027266 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/src/main/java/0000775000175000017500000000000012243421456030207 5ustar ebourgebourg././@LongLink0000644000000000000000000000014712243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/src/main/java/TestCompile1.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/src/main/java/TestCompile1.ja0000664000175000017500000000163111123544663033037 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile1 { public TestCompile1() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fork-test/plugin-config.xml0000664000175000017500000000345410552574413031047 0ustar ebourgebourg maven-compiler-plugin true ${basedir} 64m 128m true true ${basedir}/target/test-classes/unit/compiler-fork-test/src/main/java javac true javac ${basedir}/target/test/unit/compiler-fork-test/target/classes ${basedir}/target/test/unit/compiler-fork-test/target maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/0000775000175000017500000000000012243421456027730 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/0000775000175000017500000000000012243421456030517 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/test/0000775000175000017500000000000012243421456031476 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/0000775000175000017500000000000012243421456032417 5ustar ebourgebourg././@LongLink0000644000000000000000000000017312243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestCompile3TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/Tes0000664000175000017500000000174011123544663033101 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile3TestCase extends TestCase { public void testCompile3() { TestCompile3 test = new TestCompile3(); } }././@LongLink0000644000000000000000000000017312243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestCompile2TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/Tes0000664000175000017500000000174011123544663033101 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile2TestCase extends TestCase { public void testCompile2() { TestCompile2 test = new TestCompile2(); } }././@LongLink0000644000000000000000000000017312243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestCompile4TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/Tes0000664000175000017500000000174011123544663033101 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile4TestCase extends TestCase { public void testCompile4() { TestCompile4 test = new TestCompile4(); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/main/0000775000175000017500000000000012243421456031443 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/0000775000175000017500000000000012243421456032364 5ustar ebourgebourg././@LongLink0000644000000000000000000000016312243421456011645 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestCompile3.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/Tes0000664000175000017500000000163111123544663033045 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile3 { public TestCompile3() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016312243421456011645 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestCompile4.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/Tes0000664000175000017500000000163111123544663033045 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile4 { public TestCompile4() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016312243421456011645 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestCompile2.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/Tes0000664000175000017500000000163111123544663033045 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile2 { public TestCompile2() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test2/plugin-config.xml0000664000175000017500000000300610702764542033216 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-one-output-file-test2/src/main/java javac true ${basedir}/target/test/unit/compiler-one-output-file-test2/target/classes ${basedir}/target/test/unit/compiler-one-output-file-test2/target maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/0000775000175000017500000000000012243421456027134 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/src/0000775000175000017500000000000012243421456027723 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/src/test/0000775000175000017500000000000012243421456030702 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/src/test/java/0000775000175000017500000000000012243421456031623 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/src/test/java/TestComp0000664000175000017500000000174011123544663033310 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile0Test extends TestCase { public void testCompile0Test() { TestCompile0 test = new TestCompile0(); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/src/main/0000775000175000017500000000000012243421456030647 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/src/main/java/0000775000175000017500000000000012243421456031570 5ustar ebourgebourg././@LongLink0000644000000000000000000000015612243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/src/main/java/TestCompile0.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/src/main/java/TestComp0000664000175000017500000000163111123544663033254 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile0 { public TestCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-failonerror-test/plugin-config.xml0000664000175000017500000000300010702764542032414 0ustar ebourgebourg maven-compiler-plugin false ${basedir}/target/test-classes/unit/compiler-fail-test/src/main/java javac true ${basedir}/target/test/unit/compiler-fail-test/target/classes ${basedir}/target/test/unit/compiler-fail-test/target maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-empty-source-test/0000775000175000017500000000000012243421456027246 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-empty-source-test/plugin-config.xml0000664000175000017500000000277210552574413032544 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-empty-source-test/src/main/java javac true ${basedir}/target/test/unit/compiler-empty-source-test/target/classes ${basedir}/target/test/unit/compiler-empty-source-test/target maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/0000775000175000017500000000000012243421456025673 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/src/0000775000175000017500000000000012243421456026462 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/src/test/0000775000175000017500000000000012243421456027441 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/src/test/java/0000775000175000017500000000000012243421456030362 5ustar ebourgebourg././@LongLink0000644000000000000000000000015412243421456011645 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Te0000664000175000017500000000174011123544663033112 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile0Test extends TestCase { public void testCompile0Test() { TestCompile0 test = new TestCompile0(); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/src/main/0000775000175000017500000000000012243421456027406 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/src/main/java/0000775000175000017500000000000012243421456030327 5ustar ebourgebourg././@LongLink0000644000000000000000000000015012243421456011641 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.j0000664000175000017500000000163111123544663033015 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile0 { public TestCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-basic-test/plugin-config.xml0000664000175000017500000000273010552574413031163 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-basic-test/src/main/java javac true ${basedir}/target/test/unit/compiler-basic-test/target/classes ${basedir}/target/test/unit/compiler-basic-test/target maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/0000775000175000017500000000000012243421456027646 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/0000775000175000017500000000000012243421456030435 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/test/0000775000175000017500000000000012243421456031414 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/test/java/0000775000175000017500000000000012243421456032335 5ustar ebourgebourg././@LongLink0000644000000000000000000000017212243421456011645 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCompile3TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/test/java/Test0000664000175000017500000000174011123544663033203 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile3TestCase extends TestCase { public void testCompile3() { TestCompile3 test = new TestCompile3(); } }././@LongLink0000644000000000000000000000017212243421456011645 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCompile2TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/test/java/Test0000664000175000017500000000174011123544663033203 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile2TestCase extends TestCase { public void testCompile2() { TestCompile2 test = new TestCompile2(); } }././@LongLink0000644000000000000000000000017212243421456011645 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCompile4TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/test/java/Test0000664000175000017500000000174011123544663033203 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile4TestCase extends TestCase { public void testCompile4() { TestCompile4 test = new TestCompile4(); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/main/0000775000175000017500000000000012243421456031361 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/main/java/0000775000175000017500000000000012243421456032302 5ustar ebourgebourg././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCompile3.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/main/java/Test0000664000175000017500000000163111123544663033147 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile3 { public TestCompile3() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCompile4.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/main/java/Test0000664000175000017500000000163111123544663033147 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile4 { public TestCompile4() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016212243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCompile2.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/src/main/java/Test0000664000175000017500000000163111123544663033147 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile2 { public TestCompile2() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-one-output-file-test/plugin-config.xml0000664000175000017500000000300310702764542033131 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-one-output-file-test/src/main/java javac true ${basedir}/target/test/unit/compiler-one-output-file-test/target/classes ${basedir}/target/test/unit/compiler-one-output-file-test/target maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/0000775000175000017500000000000012243421456030232 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/0000775000175000017500000000000012243421456031021 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/test/0000775000175000017500000000000012243421456032000 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/0000775000175000017500000000000012243421456032721 5ustar ebourgebourg././@LongLink0000644000000000000000000000017412243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/TestCompile3TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/Te0000664000175000017500000000174011123544663033220 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile3TestCase extends TestCase { public void testCompile3() { TestCompile3 test = new TestCompile3(); } }././@LongLink0000644000000000000000000000017412243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/TestCompile2TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/Te0000664000175000017500000000174011123544663033220 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile2TestCase extends TestCase { public void testCompile2() { TestCompile2 test = new TestCompile2(); } }././@LongLink0000644000000000000000000000017412243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/TestCompile4TestCase.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/Te0000664000175000017500000000174011123544663033220 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile4TestCase extends TestCase { public void testCompile4() { TestCompile4 test = new TestCompile4(); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/main/0000775000175000017500000000000012243421456031745 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/0000775000175000017500000000000012243421456032666 5ustar ebourgebourg././@LongLink0000644000000000000000000000016412243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/TestCompile3.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/Te0000664000175000017500000000163111123544663033164 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile3 { public TestCompile3() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016412243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/TestCompile4.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/Te0000664000175000017500000000163111123544663033164 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile4 { public TestCompile4() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016412243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/TestCompile2.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/Te0000664000175000017500000000163111123544663033164 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile2 { public TestCompile2() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000014612243421456011646 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/plugin-config.xmlmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-includes-excludes-test/plugin-config.xm0000664000175000017500000000433210552574413033346 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-includes-excludes-test/src/main/java javac true ${basedir}/target/test/unit/compiler-includes-excludes-test/target/classes ${basedir}/target/test/unit/compiler-includes-excludes-test/target maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/0000775000175000017500000000000012243421456025525 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/src/0000775000175000017500000000000012243421456026314 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/src/test/0000775000175000017500000000000012243421456027273 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/src/test/java/0000775000175000017500000000000012243421456030214 5ustar ebourgebourg././@LongLink0000644000000000000000000000015312243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/src/test/java/TestCompile0Tes0000664000175000017500000000174011123544663033127 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile0Test extends TestCase { public void testCompile0Test() { TestCompile0 test = new TestCompile0(); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/src/main/0000775000175000017500000000000012243421456027240 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/src/main/java/0000775000175000017500000000000012243421456030161 5ustar ebourgebourg././@LongLink0000644000000000000000000000014712243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/src/main/java/TestCompile0.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/src/main/java/TestCompile0.ja0000664000175000017500000000163111123544663033010 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile0 { public TestCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-fail-test/plugin-config.xml0000664000175000017500000000272510702764542031022 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-fail-test/src/main/java javac true ${basedir}/target/test/unit/compiler-fail-test/target/classes ${basedir}/target/test/unit/compiler-fail-test/target maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/0000775000175000017500000000000012243421456025546 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/src/0000775000175000017500000000000012243421456026335 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/src/test/0000775000175000017500000000000012243421456027314 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/src/test/java/0000775000175000017500000000000012243421456030235 5ustar ebourgebourg././@LongLink0000644000000000000000000000015312243421456011644 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/src/test/java/TestCompile0Tes0000664000175000017500000000174011123544663033150 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile0Test extends TestCase { public void testCompile0Test() { TestCompile0 test = new TestCompile0(); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/src/main/0000775000175000017500000000000012243421456027261 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/src/main/java/0000775000175000017500000000000012243421456030202 5ustar ebourgebourg././@LongLink0000644000000000000000000000014712243421456011647 Lustar rootrootmaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/src/main/java/TestCompile0.javamaven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/src/main/java/TestCompile0.ja0000664000175000017500000000163111123544663033031 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile0 { public TestCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-2.5.1/src/test/resources/unit/compiler-args-test/plugin-config.xml0000664000175000017500000000333010702764542031034 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-args-test/src/main/java javac true ${basedir}/target/test/unit/compiler-args-test/target/classes ${basedir}/target/test/unit/compiler-args-test/target value1 value2 param value maven-compiler-plugin-2.5.1/src/main/0000775000175000017500000000000012243421456017001 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/main/java/0000775000175000017500000000000012243421456017722 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/main/java/org/0000775000175000017500000000000012243421456020511 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/main/java/org/apache/0000775000175000017500000000000012243421456021732 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/main/java/org/apache/maven/0000775000175000017500000000000012243421456023040 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/main/java/org/apache/maven/plugin/0000775000175000017500000000000012243421456024336 5ustar ebourgebourgmaven-compiler-plugin-2.5.1/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java0000664000175000017500000007511411753014535031275 0ustar ebourgebourgpackage org.apache.maven.plugin; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.apache.maven.execution.MavenSession; import org.apache.maven.toolchain.Toolchain; import org.apache.maven.toolchain.ToolchainManager; import org.codehaus.plexus.compiler.Compiler; import org.codehaus.plexus.compiler.CompilerConfiguration; import org.codehaus.plexus.compiler.CompilerError; import org.codehaus.plexus.compiler.CompilerException; import org.codehaus.plexus.compiler.CompilerOutputStyle; import org.codehaus.plexus.compiler.manager.CompilerManager; import org.codehaus.plexus.compiler.manager.NoSuchCompilerException; import org.codehaus.plexus.compiler.util.scan.InclusionScanException; import org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner; import org.codehaus.plexus.compiler.util.scan.mapping.SingleTargetSourceMapping; import org.codehaus.plexus.compiler.util.scan.mapping.SourceMapping; import org.codehaus.plexus.compiler.util.scan.mapping.SuffixMapping; import org.codehaus.plexus.util.ReaderFactory; import org.codehaus.plexus.util.StringUtils; import java.io.File; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; /** * TODO: At least one step could be optimized, currently the plugin will do two * scans of all the source code if the compiler has to have the entire set of * sources. This is currently the case for at least the C# compiler and most * likely all the other .NET compilers too. * * @author others * @author Trygve Laugstøl * @version $Id: AbstractCompilerMojo.java 1336851 2012-05-10 19:39:09Z hboutemy $ * @since 2.0 */ public abstract class AbstractCompilerMojo extends AbstractMojo { // ---------------------------------------------------------------------- // Configurables // ---------------------------------------------------------------------- /** * Indicates whether the build will continue even if there are compilation errors. * * @parameter expression="${maven.compiler.failOnError}" default-value="true" * @since 2.0.2 */ private boolean failOnError = true; /** * Set to true to include debugging information in the compiled class files. * * @parameter expression="${maven.compiler.debug}" default-value="true" */ private boolean debug = true; /** * Set to true to show messages about what the compiler is doing. * * @parameter expression="${maven.compiler.verbose}" default-value="false" */ private boolean verbose; /** * Sets whether to show source locations where deprecated APIs are used. * * @parameter expression="${maven.compiler.showDeprecation}" default-value="false" */ private boolean showDeprecation; /** * Set to true to optimize the compiled code using the compiler's optimization methods. * * @parameter expression="${maven.compiler.optimize}" default-value="false" */ private boolean optimize; /** * Set to true to show compilation warnings. * * @parameter expression="${maven.compiler.showWarnings}" default-value="false" */ private boolean showWarnings; /** * The -source argument for the Java compiler. * * @parameter expression="${maven.compiler.source}" default-value="1.5" */ protected String source; /** * The -target argument for the Java compiler. * * @parameter expression="${maven.compiler.target}" default-value="1.5" */ protected String target; /** * The -encoding argument for the Java compiler. * * @parameter expression="${encoding}" default-value="${project.build.sourceEncoding}" * @since 2.1 */ private String encoding; /** * Sets the granularity in milliseconds of the last modification * date for testing whether a source needs recompilation. * * @parameter expression="${lastModGranularityMs}" default-value="0" */ private int staleMillis; /** * The compiler id of the compiler to use. See this * guide for more information. * * @parameter expression="${maven.compiler.compilerId}" default-value="javac" */ private String compilerId; /** * Version of the compiler to use, ex. "1.3", "1.5", if {@link #fork} is set to true. * * @parameter expression="${maven.compiler.compilerVersion}" */ private String compilerVersion; /** * Allows running the compiler in a separate process. * If false it uses the built in compiler, while if true it will use an executable. * * @parameter expression="${maven.compiler.fork}" default-value="false" */ private boolean fork; /** * Initial size, in megabytes, of the memory allocation pool, ex. "64", "64m" * if {@link #fork} is set to true. * * @parameter expression="${maven.compiler.meminitial}" * @since 2.0.1 */ private String meminitial; /** * Sets the maximum size, in megabytes, of the memory allocation pool, ex. "128", "128m" * if {@link #fork} is set to true. * * @parameter expression="${maven.compiler.maxmem}" * @since 2.0.1 */ private String maxmem; /** * Sets the executable of the compiler to use when {@link #fork} is true. * * @parameter expression="${maven.compiler.executable}" */ private String executable; /** *

* Sets whether annotation processing is performed or not. Only applies to JDK 1.6+ * If not set, both compilation and annotation processing are performed at the same time. *

*

Allowed values are:

*
    *
  • none - no annotation processing is performed.
  • *
  • only - only annotation processing is done, no compilation.
  • *
* * @parameter * @since 2.2 */ private String proc; /** *

* Names of annotation processors to run. Only applies to JDK 1.6+ * If not set, the default annotation processors discovery process applies. *

* * @parameter * @since 2.2 */ private String[] annotationProcessors; /** *

* Sets the arguments to be passed to the compiler (prepending a dash) if {@link #fork} is set to true. *

*

* This is because the list of valid arguments passed to a Java compiler * varies based on the compiler version. *

*

* To pass -Xmaxerrs 1000 -Xlint -Xlint:-path -Averbose=true you should include the following: *

*
     * <compilerArguments>
     *   <Xmaxerrs>1000</Xmaxerrs>
     *   <Xlint/>
     *   <Xlint:-path/>
     *   <Averbose>true</Averbose>
     * </compilerArguments>
     * 
* * @parameter * @since 2.0.1 */ protected Map compilerArguments; /** *

* Sets the unformatted single argument string to be passed to the compiler if {@link #fork} is set to true. * To pass multiple arguments such as -Xmaxerrs 1000 (which are actually two arguments) you have to use {@link #compilerArguments}. *

*

* This is because the list of valid arguments passed to a Java compiler * varies based on the compiler version. *

* * @parameter */ protected String compilerArgument; /** * Sets the name of the output file when compiling a set of * sources to a single file. * * @parameter expression="${project.build.finalName}" */ private String outputFileName; /** * Keyword list to be appended to the -g command-line switch. Legal values are none or a * comma-separated list of the following keywords: lines, vars, and source. * If debug level is not specified, by default, nothing will be appended to -g. * If debug is not turned on, this attribute will be ignored. * * @parameter expression="${maven.compiler.debuglevel}" * @since 2.1 */ private String debuglevel; /** * @component */ private ToolchainManager toolchainManager; // ---------------------------------------------------------------------- // Read-only parameters // ---------------------------------------------------------------------- /** * The directory to run the compiler from if fork is true. * * @parameter default-value="${basedir}" * @required * @readonly */ private File basedir; /** * The target directory of the compiler if fork is true. * * @parameter default-value="${project.build.directory}" * @required * @readonly */ private File buildDirectory; /** * Plexus compiler manager. * * @component */ private CompilerManager compilerManager; /** * The current build session instance. This is used for toolchain manager API calls. * * @parameter default-value="${session}" * @required * @readonly */ private MavenSession session; /** * Strategy to re use javacc class created: *
    *
  • reuseCreated (default): will reuse already created but in case of multi-threaded builds, * each thread will have its own instance
  • *
  • reuseSame: the same Javacc class will be used for each compilation even for multi-threaded build
  • *
  • alwaysNew: a new Javacc class will be created for each compilation
  • *
* Note this parameter value depends on the os/jdk you are using, but the default value should work on most of env. * * @parameter default-value="${reuseCreated}" expression="${maven.compiler.compilerReuseStrategy}" * @since 2.5 */ private String compilerReuseStrategy = "reuseCreated"; /** * @parameter default-value="${false}" expression="${maven.compiler.skipMultiThreadWarning}" * @since 2.5 */ private boolean skipMultiThreadWarning; protected abstract SourceInclusionScanner getSourceInclusionScanner( int staleMillis ); protected abstract SourceInclusionScanner getSourceInclusionScanner( String inputFileEnding ); protected abstract List getClasspathElements(); protected abstract List getCompileSourceRoots(); protected abstract File getOutputDirectory(); protected abstract String getSource(); protected abstract String getTarget(); protected abstract String getCompilerArgument(); protected abstract Map getCompilerArguments(); protected abstract File getGeneratedSourcesDirectory(); public void execute() throws MojoExecutionException, CompilationFailureException { // ---------------------------------------------------------------------- // Look up the compiler. This is done before other code than can // cause the mojo to return before the lookup is done possibly resulting // in misconfigured POMs still building. // ---------------------------------------------------------------------- Compiler compiler; getLog().debug( "Using compiler '" + compilerId + "'." ); try { compiler = compilerManager.getCompiler( compilerId ); } catch ( NoSuchCompilerException e ) { throw new MojoExecutionException( "No such compiler '" + e.getCompilerId() + "'." ); } //-----------toolchains start here ---------------------------------- //use the compilerId as identifier for toolchains as well. Toolchain tc = getToolchain(); if ( tc != null ) { getLog().info( "Toolchain in compiler-plugin: " + tc ); if ( executable != null ) { getLog().warn( "Toolchains are ignored, 'executable' parameter is set to " + executable ); } else { fork = true; //TODO somehow shaky dependency between compilerId and tool executable. executable = tc.findTool( compilerId ); } } // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- List compileSourceRoots = removeEmptyCompileSourceRoots( getCompileSourceRoots() ); if ( compileSourceRoots.isEmpty() ) { getLog().info( "No sources to compile" ); return; } if ( getLog().isDebugEnabled() ) { getLog().debug( "Source directories: " + compileSourceRoots.toString().replace( ',', '\n' ) ); getLog().debug( "Classpath: " + getClasspathElements().toString().replace( ',', '\n' ) ); getLog().debug( "Output directory: " + getOutputDirectory() ); } // ---------------------------------------------------------------------- // Create the compiler configuration // ---------------------------------------------------------------------- CompilerConfiguration compilerConfiguration = new CompilerConfiguration(); compilerConfiguration.setOutputLocation( getOutputDirectory().getAbsolutePath() ); compilerConfiguration.setClasspathEntries( getClasspathElements() ); compilerConfiguration.setSourceLocations( compileSourceRoots ); compilerConfiguration.setOptimize( optimize ); compilerConfiguration.setDebug( debug ); if ( debug && StringUtils.isNotEmpty( debuglevel ) ) { String[] split = StringUtils.split( debuglevel, "," ); for ( int i = 0; i < split.length; i++ ) { if ( !( split[i].equalsIgnoreCase( "none" ) || split[i].equalsIgnoreCase( "lines" ) || split[i].equalsIgnoreCase( "vars" ) || split[i].equalsIgnoreCase( "source" ) ) ) { throw new IllegalArgumentException( "The specified debug level: '" + split[i] + "' is unsupported. " + "Legal values are 'none', 'lines', 'vars', and 'source'." ); } } compilerConfiguration.setDebugLevel( debuglevel ); } compilerConfiguration.setVerbose( verbose ); compilerConfiguration.setShowWarnings( showWarnings ); compilerConfiguration.setShowDeprecation( showDeprecation ); compilerConfiguration.setSourceVersion( getSource() ); compilerConfiguration.setTargetVersion( getTarget() ); compilerConfiguration.setProc( proc ); compilerConfiguration.setGeneratedSourcesDirectory( getGeneratedSourcesDirectory() ); compilerConfiguration.setAnnotationProcessors( annotationProcessors ); compilerConfiguration.setSourceEncoding( encoding ); Map effectiveCompilerArguments = getCompilerArguments(); String effectiveCompilerArgument = getCompilerArgument(); if ( ( effectiveCompilerArguments != null ) || ( effectiveCompilerArgument != null ) ) { LinkedHashMap cplrArgsCopy = new LinkedHashMap(); if ( effectiveCompilerArguments != null ) { for ( Map.Entry me : effectiveCompilerArguments.entrySet() ) { String key = me.getKey(); String value = me.getValue(); if ( !key.startsWith( "-" ) ) { key = "-" + key; } if ( key.startsWith( "-A" ) && StringUtils.isNotEmpty( value ) ) { cplrArgsCopy.put( key + "=" + value, null ); } else { cplrArgsCopy.put( key, value ); } } } if ( !StringUtils.isEmpty( effectiveCompilerArgument ) ) { cplrArgsCopy.put( effectiveCompilerArgument, null ); } compilerConfiguration.setCustomCompilerArguments( cplrArgsCopy ); } compilerConfiguration.setFork( fork ); if ( fork ) { if ( !StringUtils.isEmpty( meminitial ) ) { String value = getMemoryValue( meminitial ); if ( value != null ) { compilerConfiguration.setMeminitial( value ); } else { getLog().info( "Invalid value for meminitial '" + meminitial + "'. Ignoring this option." ); } } if ( !StringUtils.isEmpty( maxmem ) ) { String value = getMemoryValue( maxmem ); if ( value != null ) { compilerConfiguration.setMaxmem( value ); } else { getLog().info( "Invalid value for maxmem '" + maxmem + "'. Ignoring this option." ); } } } compilerConfiguration.setExecutable( executable ); compilerConfiguration.setWorkingDirectory( basedir ); compilerConfiguration.setCompilerVersion( compilerVersion ); compilerConfiguration.setBuildDirectory( buildDirectory ); compilerConfiguration.setOutputFileName( outputFileName ); if ( CompilerConfiguration.CompilerReuseStrategy.AlwaysNew.getStrategy().equals( this.compilerReuseStrategy ) ) { compilerConfiguration.setCompilerReuseStrategy( CompilerConfiguration.CompilerReuseStrategy.AlwaysNew ); } else if ( CompilerConfiguration.CompilerReuseStrategy.ReuseSame.getStrategy().equals( this.compilerReuseStrategy ) ) { if ( getRequestThreadCount() > 1 ) { if ( !skipMultiThreadWarning ) { StringBuilder sb = new StringBuilder( "You are in a multi-thread build and compilerReuseStrategy is set to reuseSame. This can cause issues in some environments (os/jdk)! Consider using reuseCreated strategy." ); sb.append( System.getProperty( "line.separator" ) ); sb.append( "If your env is fine with reuseSame, you can skip this warning with the configuration field skipMultiThreadWarning or -Dmaven.compiler.skipMultiThreadWarning=true" ); getLog().warn( sb.toString() ); } } compilerConfiguration.setCompilerReuseStrategy( CompilerConfiguration.CompilerReuseStrategy.ReuseSame ); } else { compilerConfiguration.setCompilerReuseStrategy( CompilerConfiguration.CompilerReuseStrategy.ReuseCreated ); } getLog().debug( "CompilerReuseStrategy: " + compilerConfiguration.getCompilerReuseStrategy().getStrategy() ); // TODO: have an option to always compile (without need to clean) Set staleSources; boolean canUpdateTarget; try { staleSources = computeStaleSources( compilerConfiguration, compiler, getSourceInclusionScanner( staleMillis ) ); canUpdateTarget = compiler.canUpdateTarget( compilerConfiguration ); if ( compiler.getCompilerOutputStyle().equals( CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES ) && !canUpdateTarget ) { getLog().info( "RESCANNING!" ); // TODO: This second scan for source files is sub-optimal String inputFileEnding = compiler.getInputFileEnding( compilerConfiguration ); Set sources = computeStaleSources( compilerConfiguration, compiler, getSourceInclusionScanner( inputFileEnding ) ); compilerConfiguration.setSourceFiles( sources ); } else { compilerConfiguration.setSourceFiles( staleSources ); } } catch ( CompilerException e ) { throw new MojoExecutionException( "Error while computing stale sources.", e ); } if ( staleSources.isEmpty() ) { getLog().info( "Nothing to compile - all classes are up to date" ); return; } // ---------------------------------------------------------------------- // Dump configuration // ---------------------------------------------------------------------- if ( getLog().isDebugEnabled() ) { getLog().debug( "Classpath:" ); for ( String s : getClasspathElements() ) { getLog().debug( " " + s ); } getLog().debug( "Source roots:" ); for ( String root : getCompileSourceRoots() ) { getLog().debug( " " + root ); } try { if ( fork ) { if ( compilerConfiguration.getExecutable() != null ) { getLog().debug( "Excutable: " ); getLog().debug( " " + compilerConfiguration.getExecutable() ); } } String[] cl = compiler.createCommandLine( compilerConfiguration ); if ( cl != null && cl.length > 0 ) { StringBuilder sb = new StringBuilder(); sb.append( cl[0] ); for ( int i = 1; i < cl.length; i++ ) { sb.append( " " ); sb.append( cl[i] ); } getLog().debug( "Command line options:" ); getLog().debug( sb ); } } catch ( CompilerException ce ) { getLog().debug( ce ); } } // ---------------------------------------------------------------------- // Compile! // ---------------------------------------------------------------------- if ( StringUtils.isEmpty( compilerConfiguration.getSourceEncoding() ) ) { getLog().warn( "File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING + ", i.e. build is platform dependent!" ); } List messages; try { messages = compiler.compile( compilerConfiguration ); } catch ( Exception e ) { // TODO: don't catch Exception throw new MojoExecutionException( "Fatal error compiling", e ); } List warnings = new ArrayList(); List errors = new ArrayList(); if ( messages != null ) { for ( CompilerError message : messages ) { if ( message.isError() ) { errors.add( message ); } else { warnings.add( message ); } } } if ( failOnError && !errors.isEmpty() ) { if ( !warnings.isEmpty() ) { getLog().info( "-------------------------------------------------------------" ); getLog().warn( "COMPILATION WARNING : " ); getLog().info( "-------------------------------------------------------------" ); for ( CompilerError warning : warnings ) { getLog().warn( warning.toString() ); } getLog().info( warnings.size() + ( ( warnings.size() > 1 ) ? " warnings " : " warning" ) ); getLog().info( "-------------------------------------------------------------" ); } getLog().info( "-------------------------------------------------------------" ); getLog().error( "COMPILATION ERROR : " ); getLog().info( "-------------------------------------------------------------" ); for ( CompilerError error : errors ) { getLog().error( error.toString() ); } getLog().info( errors.size() + ( ( errors.size() > 1 ) ? " errors " : " error" ) ); getLog().info( "-------------------------------------------------------------" ); throw new CompilationFailureException( errors ); } else { for ( CompilerError message : messages ) { getLog().warn( message.toString() ); } } } /** * try to get thread count if a Maven 3 build, using reflection as the plugin must not be maven3 api dependant * * @return number of thread for this build or 1 if not multi-thread build */ protected int getRequestThreadCount() { try { Method getRequestMethod = this.session.getClass().getMethod( "getRequest" ); Object mavenExecutionRequest = getRequestMethod.invoke( this.session ); Method getThreadCountMethod = mavenExecutionRequest.getClass().getMethod( "getThreadCount" ); String threadCount = (String) getThreadCountMethod.invoke( mavenExecutionRequest ); return Integer.valueOf( threadCount ); } catch ( Exception e ) { getLog().debug( "unable to get threadCount for the current build: " + e.getMessage() ); } return 1; } private String getMemoryValue( String setting ) { String value = null; // Allow '128' or '128m' if ( isDigits( setting ) ) { value = setting + "m"; } else { if ( ( isDigits( setting.substring( 0, setting.length() - 1 ) ) ) && ( setting.toLowerCase().endsWith( "m" ) ) ) { value = setting; } } return value; } //TODO remove the part with ToolchainManager lookup once we depend on //3.0.9 (have it as prerequisite). Define as regular component field then. private Toolchain getToolchain() { Toolchain tc = null; if ( toolchainManager != null ) { tc = toolchainManager.getToolchainFromBuildContext( "jdk", session ); } return tc; } private boolean isDigits( String string ) { for ( int i = 0; i < string.length(); i++ ) { if ( !Character.isDigit( string.charAt( i ) ) ) { return false; } } return true; } private Set computeStaleSources( CompilerConfiguration compilerConfiguration, Compiler compiler, SourceInclusionScanner scanner ) throws MojoExecutionException, CompilerException { CompilerOutputStyle outputStyle = compiler.getCompilerOutputStyle(); SourceMapping mapping; File outputDirectory; if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_PER_INPUT_FILE ) { mapping = new SuffixMapping( compiler.getInputFileEnding( compilerConfiguration ), compiler.getOutputFileEnding( compilerConfiguration ) ); outputDirectory = getOutputDirectory(); } else if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES ) { mapping = new SingleTargetSourceMapping( compiler.getInputFileEnding( compilerConfiguration ), compiler.getOutputFile( compilerConfiguration ) ); outputDirectory = buildDirectory; } else { throw new MojoExecutionException( "Unknown compiler output style: '" + outputStyle + "'." ); } scanner.addSourceMapping( mapping ); Set staleSources = new HashSet(); for ( String sourceRoot : getCompileSourceRoots() ) { File rootFile = new File( sourceRoot ); if ( !rootFile.isDirectory() ) { continue; } try { staleSources.addAll( scanner.getIncludedSources( rootFile, outputDirectory ) ); } catch ( InclusionScanException e ) { throw new MojoExecutionException( "Error scanning source root: \'" + sourceRoot + "\' for stale files to recompile.", e ); } } return staleSources; } /** * @todo also in ant plugin. This should be resolved at some point so that it does not need to * be calculated continuously - or should the plugins accept empty source roots as is? */ private static List removeEmptyCompileSourceRoots( List compileSourceRootsList ) { List newCompileSourceRootsList = new ArrayList(); if ( compileSourceRootsList != null ) { // copy as I may be modifying it for ( String srcDir : compileSourceRootsList ) { if ( !newCompileSourceRootsList.contains( srcDir ) && new File( srcDir ).exists() ) { newCompileSourceRootsList.add( srcDir ); } } } return newCompileSourceRootsList; } } maven-compiler-plugin-2.5.1/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java0000664000175000017500000001474411741372160030451 0ustar ebourgebourgpackage org.apache.maven.plugin; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner; import org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner; import org.codehaus.plexus.compiler.util.scan.StaleSourceScanner; import java.io.File; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; /** * Compiles application test sources. * * @author Jason van Zyl * @version $Id: TestCompilerMojo.java 1325012 2012-04-11 21:15:28Z olamy $ * @since 2.0 * @goal testCompile * @phase test-compile * @threadSafe * @requiresDependencyResolution test */ public class TestCompilerMojo extends AbstractCompilerMojo { /** * Set this to 'true' to bypass compilation of test sources. * Its use is NOT RECOMMENDED, but quite convenient on occasion. * * @parameter expression="${maven.test.skip}" */ private boolean skip; /** * The source directories containing the test-source to be compiled. * * @parameter default-value="${project.testCompileSourceRoots}" * @required * @readonly */ private List compileSourceRoots; /** * Project test classpath. * * @parameter default-value="${project.testClasspathElements}" * @required * @readonly */ private List classpathElements; /** * The directory where compiled test classes go. * * @parameter default-value="${project.build.testOutputDirectory}" * @required * @readonly */ private File outputDirectory; /** * A list of inclusion filters for the compiler. * * @parameter */ private Set testIncludes = new HashSet(); /** * A list of exclusion filters for the compiler. * * @parameter */ private Set testExcludes = new HashSet(); /** * The -source argument for the test Java compiler. * * @parameter expression="${maven.compiler.testSource}" * @since 2.1 */ private String testSource; /** * The -target argument for the test Java compiler. * * @parameter expression="${maven.compiler.testTarget}" * @since 2.1 */ private String testTarget; /** *

* Sets the arguments to be passed to test compiler (prepending a dash) if fork is set to true. *

*

* This is because the list of valid arguments passed to a Java compiler * varies based on the compiler version. *

* * @parameter * @since 2.1 */ private Map testCompilerArguments; /** *

* Sets the unformatted argument string to be passed to test compiler if fork is set to true. *

*

* This is because the list of valid arguments passed to a Java compiler * varies based on the compiler version. *

* * @parameter * @since 2.1 */ private String testCompilerArgument; /** *

* Specify where to place generated source files created by annotation processing. * Only applies to JDK 1.6+ *

* @parameter default-value="${project.build.directory}/generated-test-sources/test-annotations" * @since 2.2 */ private File generatedTestSourcesDirectory; public void execute() throws MojoExecutionException, CompilationFailureException { if ( skip ) { getLog().info( "Not compiling test sources" ); } else { super.execute(); } } protected List getCompileSourceRoots() { return compileSourceRoots; } protected List getClasspathElements() { return classpathElements; } protected File getOutputDirectory() { return outputDirectory; } protected SourceInclusionScanner getSourceInclusionScanner( int staleMillis ) { SourceInclusionScanner scanner = null; if ( testIncludes.isEmpty() && testExcludes.isEmpty() ) { scanner = new StaleSourceScanner( staleMillis ); } else { if ( testIncludes.isEmpty() ) { testIncludes.add( "**/*.java" ); } scanner = new StaleSourceScanner( staleMillis, testIncludes, testExcludes ); } return scanner; } protected SourceInclusionScanner getSourceInclusionScanner( String inputFileEnding ) { SourceInclusionScanner scanner = null; if ( testIncludes.isEmpty() && testExcludes.isEmpty() ) { testIncludes = Collections.singleton( "**/*." + inputFileEnding ); scanner = new SimpleSourceInclusionScanner( testIncludes, Collections.EMPTY_SET ); } else { if ( testIncludes.isEmpty() ) { testIncludes.add( "**/*." + inputFileEnding ); } scanner = new SimpleSourceInclusionScanner( testIncludes, testExcludes ); } return scanner; } protected String getSource() { return testSource == null ? source : testSource; } protected String getTarget() { return testTarget == null ? target : testTarget; } protected String getCompilerArgument() { return testCompilerArgument == null ? compilerArgument : testCompilerArgument; } protected Map getCompilerArguments() { return testCompilerArguments == null ? compilerArguments : testCompilerArguments; } protected File getGeneratedSourcesDirectory() { return generatedTestSourcesDirectory; } } maven-compiler-plugin-2.5.1/src/main/java/org/apache/maven/plugin/CompilerMojo.java0000664000175000017500000001214111626216672027605 0ustar ebourgebourgpackage org.apache.maven.plugin; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.apache.maven.artifact.Artifact; import org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner; import org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner; import org.codehaus.plexus.compiler.util.scan.StaleSourceScanner; import java.io.File; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; /** * Compiles application sources * * @author Jason van Zyl * @version $Id: CompilerMojo.java 1162398 2011-08-27 16:39:22Z rfscholte $ * @since 2.0 * @goal compile * @phase compile * @threadSafe * @requiresDependencyResolution compile */ public class CompilerMojo extends AbstractCompilerMojo { /** * The source directories containing the sources to be compiled. * * @parameter default-value="${project.compileSourceRoots}" * @required * @readonly */ private List compileSourceRoots; /** * Project classpath. * * @parameter default-value="${project.compileClasspathElements}" * @required * @readonly */ private List classpathElements; /** * The directory for compiled classes. * * @parameter default-value="${project.build.outputDirectory}" * @required * @readonly */ private File outputDirectory; /** * Project artifacts. * * @parameter default-value="${project.artifact}" * @required * @readonly * @todo this is an export variable, really */ private Artifact projectArtifact; /** * A list of inclusion filters for the compiler. * * @parameter */ private Set includes = new HashSet(); /** * A list of exclusion filters for the compiler. * * @parameter */ private Set excludes = new HashSet(); /** *

* Specify where to place generated source files created by annotation processing. * Only applies to JDK 1.6+ *

* @parameter default-value="${project.build.directory}/generated-sources/annotations" * @since 2.2 */ private File generatedSourcesDirectory; protected List getCompileSourceRoots() { return compileSourceRoots; } protected List getClasspathElements() { return classpathElements; } protected File getOutputDirectory() { return outputDirectory; } public void execute() throws MojoExecutionException, CompilationFailureException { super.execute(); if ( outputDirectory.isDirectory() ) { projectArtifact.setFile( outputDirectory ); } } protected SourceInclusionScanner getSourceInclusionScanner( int staleMillis ) { SourceInclusionScanner scanner = null; if ( includes.isEmpty() && excludes.isEmpty() ) { scanner = new StaleSourceScanner( staleMillis ); } else { if ( includes.isEmpty() ) { includes.add( "**/*.java" ); } scanner = new StaleSourceScanner( staleMillis, includes, excludes ); } return scanner; } protected SourceInclusionScanner getSourceInclusionScanner( String inputFileEnding ) { SourceInclusionScanner scanner = null; if ( includes.isEmpty() && excludes.isEmpty() ) { includes = Collections.singleton( "**/*." + inputFileEnding ); scanner = new SimpleSourceInclusionScanner( includes, Collections.EMPTY_SET ); } else { if ( includes.isEmpty() ) { includes.add( "**/*." + inputFileEnding ); } scanner = new SimpleSourceInclusionScanner( includes, excludes ); } return scanner; } protected String getSource() { return source; } protected String getTarget() { return target; } protected String getCompilerArgument() { return compilerArgument; } protected Map getCompilerArguments() { return compilerArguments; } protected File getGeneratedSourcesDirectory() { return generatedSourcesDirectory; } }maven-compiler-plugin-2.5.1/src/main/java/org/apache/maven/plugin/CompilationFailureException.java0000664000175000017500000000460311746530523032654 0ustar ebourgebourgpackage org.apache.maven.plugin; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.codehaus.plexus.compiler.CompilerError; import java.util.List; /** * @author Jason van Zyl * @version $Id: CompilationFailureException.java 1331448 2012-04-27 14:46:43Z olamy $ * @since 2.0 */ @SuppressWarnings( "serial" ) public class CompilationFailureException extends MojoFailureException { private static final String LS = System.getProperty( "line.separator" ); public CompilationFailureException( List messages ) { super( null, shortMessage( messages ), longMessage( messages ) ); } public static String longMessage( List messages ) { StringBuilder sb = new StringBuilder(); if ( messages != null ) { for ( CompilerError compilerError : messages ) { sb.append( compilerError ).append( LS ); } } return sb.toString(); } /** * Short message will have the error message if there's only one, useful for errors forking the compiler * * @param messages * @return the short error message * @since 2.0.2 */ public static String shortMessage( List messages ) { StringBuffer sb = new StringBuffer(); sb.append( "Compilation failure" ); if ( messages.size() == 1 ) { sb.append( LS ); CompilerError compilerError = (CompilerError) messages.get( 0 ); sb.append( compilerError ).append( LS ); } return sb.toString(); } } maven-compiler-plugin-2.5.1/pom.xml0000664000175000017500000001736611761635074016627 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins maven-plugins 22 ../maven-plugins/pom.xml maven-compiler-plugin 2.5.1 maven-plugin Maven Compiler Plugin The Compiler Plugin is used to compile the sources of your project. 2001 ${mavenVersion} scm:svn:http://svn.apache.org/repos/asf/maven/plugins/tags/maven-compiler-plugin-2.5.1 scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-compiler-plugin-2.5.1 http://svn.apache.org/viewvc/maven/plugins/tags/maven-compiler-plugin-2.5.1 JIRA http://jira.codehaus.org/browse/MCOMPILER 2.0.9 1.9.1 org.apache.maven maven-plugin-api ${mavenVersion} org.apache.maven maven-artifact ${mavenVersion} org.apache.maven maven-core ${mavenVersion} org.apache.maven.reporting maven-reporting-api org.apache.maven.wagon wagon-file org.apache.maven.wagon wagon-http-lightweight org.apache.maven.wagon wagon-ssh org.apache.maven.wagon wagon-ssh-external commons-cli commons-cli classworlds classworlds org.codehaus.plexus plexus-container-default org.codehaus.plexus plexus-interactivity-api org.apache.maven maven-toolchain 1.0 org.codehaus.plexus plexus-utils 3.0 org.codehaus.plexus plexus-compiler-api ${plexusCompilerVersion} org.codehaus.plexus plexus-component-api org.codehaus.plexus plexus-compiler-manager ${plexusCompilerVersion} org.codehaus.plexus plexus-component-api org.codehaus.plexus plexus-compiler-javac ${plexusCompilerVersion} runtime org.codehaus.plexus plexus-component-api org.codehaus.plexus plexus-container-default 1.0-alpha-9-stable-1 org.apache.maven.shared maven-plugin-testing-harness 1.1 test run-its 1.8.0 2.6.0-01 org.apache.maven.plugins maven-invoker-plugin true src/it ${project.build.directory}/it */pom.xml extras/*/pom.xml verify ${project.build.directory}/local-repo src/it/settings.xml clean test-compile org.codehaus.groovy groovy-eclipse-compiler ${groovyEclipseCompilerVersion} test org.codehaus.groovy groovy-all ${groovyVersion} test