maven-compiler-plugin-3.2/0000755000175000017500000000000012475665754015143 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/0000755000175000017500000000000012475665754015732 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/0000755000175000017500000000000012475665753016345 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/0000755000175000017500000000000012475665754021435 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/0000755000175000017500000000000012475665753022223 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/test/0000755000175000017500000000000012475665753023202 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/test/java/0000755000175000017500000000000012475665753024123 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/test/java/com/0000755000175000017500000000000012475665753024701 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/test/java/com/mycompany/0000755000175000017500000000000012475665753026715 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/0000755000175000017500000000000012475665753031727 5ustar miguelmiguel././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.javamaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTes0000644000175000017500000000277112406122142033023 0ustar miguelmiguelpackage com.mycompany.jdk16annotation; /* * 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.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-3.2/src/it/jdk16-annotation/src/main/0000755000175000017500000000000012475665753023147 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/0000755000175000017500000000000012475665753024070 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/com/0000755000175000017500000000000012475665753024646 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/com/mycompany/0000755000175000017500000000000012475665753026662 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/0000755000175000017500000000000012475665754031675 5ustar miguelmiguel././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProviderProcessor.javamaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/Servic0000644000175000017500000000612112406122142033020 0ustar miguelmiguelpackage com.mycompany.jdk16annotation; /* * 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.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()); } } } ././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProvider.javamaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/Servic0000644000175000017500000000227712406122142033030 0ustar miguelmiguelpackage com.mycompany.jdk16annotation; /* * 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.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 ""; } ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.javamaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.ja0000644000175000017500000000175412406122142032705 0ustar miguelmiguelpackage com.mycompany.jdk16annotation; /* * 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. */ /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/resources/0000755000175000017500000000000012475665753025161 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/resources/META-INF/0000755000175000017500000000000012475665753026321 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/resources/META-INF/services/0000755000175000017500000000000012475665753030144 5ustar miguelmiguel././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/resources/META-INF/services/javax.annotation.processing.Processormaven-compiler-plugin-3.2/src/it/jdk16-annotation/src/main/resources/META-INF/services/javax.annotat0000644000175000017500000000006711345474314032630 0ustar miguelmiguelcom.mycompany.jdk16annotation.ServiceProviderProcessor maven-compiler-plugin-3.2/src/it/jdk16-annotation/pom.xml0000644000175000017500000000371312406122142022723 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it jdk16-annotation 1.0-SNAPSHOT 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-3.2/src/it/jdk16-annotation/verify.bsh0000644000175000017500000000260012406122142023402 0ustar miguelmiguel/* * 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.*; 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-3.2/src/it/jdk16-annotation/invoker.properties0000644000175000017500000000166612406122142025206 0ustar miguelmiguel# 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. # 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-3.2/src/it/mcompiler-135/0000755000175000017500000000000012475665754020643 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-135/src/0000755000175000017500000000000012475665753021431 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-135/src/main/0000755000175000017500000000000012475665753022355 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-135/src/main/java/0000755000175000017500000000000012475665754023277 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-135/src/main/java/MyClass.java0000644000175000017500000000150512406122142025463 0ustar miguelmiguel/* * 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 MyClass { } maven-compiler-plugin-3.2/src/it/mcompiler-135/pom.xml0000644000175000017500000000325212406122142022127 0ustar miguelmiguel 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-3.2/src/it/mcompiler-135/invoker.properties0000644000175000017500000000151612406122142024406 0ustar miguelmiguel# 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. invoker.goals = clean compile invoker.java.version = 1.6+ maven-compiler-plugin-3.2/src/it/mcompiler-106/0000755000175000017500000000000012475665754020641 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-106/src/0000755000175000017500000000000012475665753021427 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-106/src/main/0000755000175000017500000000000012475665753022353 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-106/src/main/java/0000755000175000017500000000000012475665754023275 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-106/src/main/java/MyClass.java0000644000175000017500000000150512406122142025461 0ustar miguelmiguel/* * 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 MyClass { } maven-compiler-plugin-3.2/src/it/mcompiler-106/pom.xml0000644000175000017500000000317312406122142022127 0ustar miguelmiguel 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-3.2/src/it/mcompiler-106/invoker.properties0000644000175000017500000000146212406122142024404 0ustar miguelmiguel# 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. invoker.goals = clean compile maven-compiler-plugin-3.2/src/it/mcompiler-179/0000755000175000017500000000000012475665753020652 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-179/src/0000755000175000017500000000000012475665751021437 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-179/src/main/0000755000175000017500000000000012475665751022363 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-179/src/main/java/0000755000175000017500000000000012475665751023304 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-179/src/main/java/org/0000755000175000017500000000000012475665751024073 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-179/src/main/java/org/maven/0000755000175000017500000000000012475665751025201 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-179/src/main/java/org/maven/test/0000755000175000017500000000000012475665753026162 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java0000644000175000017500000000205112406122142030344 0ustar miguelmiguelpackage org.maven.test; /* * 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.util.ArrayList; import java.util.List; public class MyClass { public void foo() { List blah = new ArrayList(); blah.add("hello"); } public void bar() { int a = "error"; } } maven-compiler-plugin-3.2/src/it/mcompiler-179/pom.xml0000644000175000017500000000364612406122142022146 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-179 1.0-SNAPSHOT UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 1.6 1.6 -Xlint:all true true maven-compiler-plugin-3.2/src/it/mcompiler-179/verify.groovy0000644000175000017500000000172412047010511023374 0ustar miguelmiguel/* * 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. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( '1 warning' ) assert content.contains( '1 error' ) maven-compiler-plugin-3.2/src/it/mcompiler-179/invoker.properties0000644000175000017500000000155412406122142024420 0ustar miguelmiguel# 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. invoker.goals = clean compile invoker.buildResult = failure invoker.java.version = 1.6+ maven-compiler-plugin-3.2/src/it/non-english-warnings/0000755000175000017500000000000012475665753022414 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/non-english-warnings/src/0000755000175000017500000000000012475665751023201 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/non-english-warnings/src/test/0000755000175000017500000000000012475665751024160 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/non-english-warnings/src/test/java/0000755000175000017500000000000012475665753025103 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/non-english-warnings/src/test/java/MyTest.java0000644000175000017500000000200612406122142027137 0ustar miguelmiguel/* * 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 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-3.2/src/it/non-english-warnings/src/main/0000755000175000017500000000000012475665751024125 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/non-english-warnings/src/main/java/0000755000175000017500000000000012475665753025050 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/non-english-warnings/src/main/java/MyClass.java0000644000175000017500000000200712406122142027233 0ustar miguelmiguel/* * 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 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-3.2/src/it/non-english-warnings/pom.xml0000644000175000017500000000415612051250763023714 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it 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-3.2/src/it/non-english-warnings/verify.bsh0000644000175000017500000000233312406122142024365 0ustar miguelmiguel/* * 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.*; 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-3.2/src/it/non-english-warnings/invoker.properties0000644000175000017500000000164512406122142026163 0ustar miguelmiguel# 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: 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-3.2/src/it/mcompiler-120/0000755000175000017500000000000012475665753020634 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-120/src/0000755000175000017500000000000012475665752021422 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-120/src/main/0000755000175000017500000000000012475665752022346 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-120/src/main/java/0000755000175000017500000000000012475665752023267 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-120/src/main/java/org/0000755000175000017500000000000012475665752024056 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-120/src/main/java/org/maven/0000755000175000017500000000000012475665752025164 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-120/src/main/java/org/maven/test/0000755000175000017500000000000012475665753026144 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-120/src/main/java/org/maven/test/Main.java0000644000175000017500000000204612406122142027643 0ustar miguelmiguelpackage org.maven.test; /* * 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.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-3.2/src/it/mcompiler-120/pom.xml0000644000175000017500000000373212406122142022124 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-120 1.0-SNAPSHOT Werror warnings build junit junit 4.4 test log4j log4j 1.2.14 maven-compiler-plugin @project.version@ 1.6 1.6 -Xlint:all, -path true maven-compiler-plugin-3.2/src/it/mcompiler-120/verify.groovy0000644000175000017500000000172112047003754023366 0ustar miguelmiguel /* * 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. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'Compilation failure' ) maven-compiler-plugin-3.2/src/it/mcompiler-120/invoker.properties0000644000175000017500000000155412406122142024402 0ustar miguelmiguel# 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. invoker.goals = clean compile invoker.buildResult = failure invoker.java.version = 1.6+ maven-compiler-plugin-3.2/src/it/MCOMPILER-224/0000755000175000017500000000000012475665754020202 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/pom.xml0000644000175000017500000000311412406122142021463 0ustar miguelmiguel 4.0.0 org.issue compiler-test 1.0-SNAPSHOT pom annotation-processor annotation-user org.apache.maven.plugins maven-compiler-plugin @project.version@ maven-compiler-plugin-3.2/src/it/MCOMPILER-224/verify.groovy0000644000175000017500000000324112413602750022730 0ustar miguelmiguel/* * 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. */ def log = new File( basedir, 'build.log').text def noteExists = log.contains("[INFO] NOTE Test message.") def otherExists = log.contains("[INFO] OTHER Test message.") def warningExists = log.contains("[WARNING] WARNING Test message.") def mandatoryWarningExists = log.contains("[WARNING] MANDATORY_WARNING Test message.") def fail = false def messages = "The following assertions were violated:" if ( !noteExists ){ messages += "\nNOTE message not logged in INFO level!" fail = true } if ( !otherExists ){ messages += "\nOTHER message not logged in INFO level!" fail = true } if ( !warningExists ){ messages += "\nWARNING message not logged in WARNING level!" fail = true } if ( !mandatoryWarningExists ){ messages += "\nMANDATORY_WARNING message not logged in WARNING level!" fail = true } if ( fail ){ throw new RuntimeException( messages ) } maven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/0000755000175000017500000000000012475665754024371 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/src/0000755000175000017500000000000012475665753025157 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/src/main/0000755000175000017500000000000012475665753026103 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/0000755000175000017500000000000012475665753027024 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/0000755000175000017500000000000012475665753027613 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/0000755000175000017500000000000012475665754030744 5ustar miguelmiguel././@LongLink0000644000000000000000000000020100000000000011574 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224AnnotationProcessor.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompile0000644000175000017500000000402412406122142032341 0ustar miguelmiguelpackage org.issue; /* * 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.util.Set; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.Messager; import javax.annotation.processing.RoundEnvironment; import javax.annotation.processing.SupportedAnnotationTypes; import javax.annotation.processing.SupportedSourceVersion; import javax.lang.model.SourceVersion; import javax.lang.model.element.TypeElement; import javax.tools.Diagnostic.Kind; /* @formatter:off */ @SupportedAnnotationTypes( { "org.issue.MCompiler224" } ) /* @formatter:on */ @SupportedSourceVersion( SourceVersion.RELEASE_6 ) public class MCompiler224AnnotationProcessor extends AbstractProcessor { @Override public boolean process( final Set elts, final RoundEnvironment env ) { if ( elts.isEmpty() ) { return true; } final Messager messager = this.processingEnv.getMessager(); for ( final Kind kind : Kind.values() ) { if ( Kind.ERROR == kind ) { continue; } System.out.println( "Testing message for: " + kind ); messager.printMessage( kind, kind + " Test message." ); } return true; } } ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompile0000644000175000017500000000154412406122142032345 0ustar miguelmiguelpackage org.issue; /* * 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 @interface MCompiler224 { } maven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-processor/pom.xml0000644000175000017500000000235612406122142025661 0ustar miguelmiguel 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-processor maven-compiler-plugin-3.2/src/it/MCOMPILER-224/invoker.properties0000644000175000017500000000165512413340477023764 0ustar miguelmiguel# 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. invoker.java.version = 1.6+ # message with JDK6 is prepended by unexpected prefix, so quick workaround is to ignore JDK6... #invoker.java.version = 1.7+ maven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/0000755000175000017500000000000012475665754023330 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/src/0000755000175000017500000000000012475665753024116 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/src/main/0000755000175000017500000000000012475665753025042 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/src/main/java/0000755000175000017500000000000012475665753025763 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/0000755000175000017500000000000012475665753026552 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/0000755000175000017500000000000012475665753027702 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/0000755000175000017500000000000012475665754030661 5ustar miguelmiguel././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/User.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/User.jav0000644000175000017500000000161212406122142032246 0ustar miguelmiguelpackage org.issue.user; /* * 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.issue.MCompiler224; @MCompiler224 public class User { } maven-compiler-plugin-3.2/src/it/MCOMPILER-224/annotation-user/pom.xml0000644000175000017500000000426012406122142024614 0ustar miguelmiguel 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-user org.issue annotation-processor 1.0-SNAPSHOT provided org.apache.maven.plugins maven-compiler-plugin true 1.6 1.6 org.issue.MCompiler224AnnotationProcessor org.issue annotation-processor 1.0-SNAPSHOT maven-compiler-plugin-3.2/src/it/default-incremental-disable/0000755000175000017500000000000012475665753023671 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default-incremental-disable/src/0000755000175000017500000000000012475665752024457 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default-incremental-disable/src/test/0000755000175000017500000000000012475665752025436 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default-incremental-disable/src/test/java/0000755000175000017500000000000012475665753026360 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default-incremental-disable/src/test/java/MyTest.java0000644000175000017500000000157312406122142030424 0ustar miguelmiguel/* * 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 MyTest extends TestCase { } maven-compiler-plugin-3.2/src/it/default-incremental-disable/src/main/0000755000175000017500000000000012475665752025403 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default-incremental-disable/src/main/java/0000755000175000017500000000000012475665753026325 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default-incremental-disable/src/main/java/MyClass.java0000644000175000017500000000150512406122142030512 0ustar miguelmiguel/* * 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 MyClass { } maven-compiler-plugin-3.2/src/it/default-incremental-disable/pom.xml0000644000175000017500000000401212110427075025156 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it default-incremental-disable 1.0-SNAPSHOT Test for default configuration UTF-8 junit junit 3.8.2 org.apache.maven.plugins maven-compiler-plugin @pom.version@ false -Xlint:-path maven-compiler-plugin-3.2/src/it/default-incremental-disable/verify.groovy0000644000175000017500000000207012406122142026411 0ustar miguelmiguel/* * 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. */ assert new File( basedir, "target/classes/MyClass.class" ).exists(); assert new File( basedir, "target/test-classes/MyTest.class" ).exists(); content = new File( basedir, 'build.log' ).text; assert content.contains("Nothing to compile - all classes are up to date"); maven-compiler-plugin-3.2/src/it/default-incremental-disable/invoker.properties0000644000175000017500000000152612406122142027436 0ustar miguelmiguel# 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. invoker.goals = clean test-compile invoker.goals.2 = test-compile maven-compiler-plugin-3.2/src/it/mcompiler-21_methodname-change/0000755000175000017500000000000012475665754024201 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-21_methodname-change/src/0000755000175000017500000000000012475665753024767 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-21_methodname-change/src/main/0000755000175000017500000000000012475665753025713 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-21_methodname-change/src/main/java/0000755000175000017500000000000012475665753026634 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-21_methodname-change/src/main/java/BeanA2.java0000644000175000017500000000200212406122142030467 0ustar miguelmiguel/* * 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. */ /** * dumb test bean */ public class BeanA2 { private int i; private BeanA beanA; public int getI() { return beanA.getI(); } public void setI(int i) { beanA.setI(i); } } maven-compiler-plugin-3.2/src/it/mcompiler-21_methodname-change/src/main/java/BeanA.java0000644000175000017500000000173412406122142030420 0ustar miguelmiguel/* * 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. */ /** * dumb test bean */ public class BeanA { private int i,y; public int getI() { return i; } public void setI(int i) { this.i = i; } } maven-compiler-plugin-3.2/src/it/mcompiler-21_methodname-change/pom.xml0000644000175000017500000000470112406122142025465 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-21_methodname-change 1.0-SNAPSHOT This IT tests what happens if the method name in a single class BeanA gets changed. In this case 'mvn compile' (without a clean) should fail as BeanA2 still uses the old method of BeanA. org.apache.maven.plugins maven-compiler-plugin @project.version@ org.codehaus.gmaven gmaven-plugin 1.4 def beanAFile = new File( project.basedir, 'src/main/java/BeanA.java' ) processFileInplace( beanAFile ) { text -> text.replaceAll( /getI/, 'getI_doesntexistanymore') } def processFileInplace(file, Closure processText) { def text = file.text file.write(processText(text)) } maven-compiler-plugin-3.2/src/it/mcompiler-21_methodname-change/verify.groovy0000644000175000017500000000172112021437203026722 0ustar miguelmiguel /* * 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. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'COMPILATION ERROR :' ) maven-compiler-plugin-3.2/src/it/mcompiler-21_methodname-change/invoker.properties0000644000175000017500000000165012406122142027743 0ustar miguelmiguel# 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. invoker.goals = clean compile invoker.goals.2 = org.codehaus.gmaven:gmaven-plugin:execute invoker.goals.3 = compile invoker.buildResult.3 = failure maven-compiler-plugin-3.2/src/it/MCOMPILER-228/0000755000175000017500000000000012475665752020204 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-228/src/0000755000175000017500000000000012475665751020772 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-228/src/main/0000755000175000017500000000000012475665751021716 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-228/src/main/java/0000755000175000017500000000000012475665751022637 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-228/src/main/java/example/0000755000175000017500000000000012475665752024273 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-228/src/main/java/example/FinalExample.java0000644000175000017500000000266212414566015027472 0ustar miguelmiguelpackage example; /* * 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.util.Comparator; public class FinalExample { public static final Comparator comparator = ( o1, o2 ) -> { final String desc1 = o1; final String desc2 = o2; final int compareTo; if ( desc1 == null ) { compareTo = -1; } else if ( desc2 == null ) { compareTo = 1; } else { compareTo = desc1.compareTo( desc2 ); } if ( compareTo == 0 ) { return 3; } return compareTo; }; } maven-compiler-plugin-3.2/src/it/MCOMPILER-228/pom.xml0000644000175000017500000000320112414566015021476 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.its mcompiler228 1.0-SNAPSHOT http://jira.codehaus.org/browse/MCOMPILER-228 org.apache.maven.plugins maven-compiler-plugin @project.version@ 1.8 1.8 maven-compiler-plugin-3.2/src/it/MCOMPILER-228/invoker.properties0000644000175000017500000000157112414566015023764 0ustar miguelmiguel# 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. # https://bugs.openjdk.java.net/browse/JDK-8051958 invoker.java.version = 1.8.0_40+maven-compiler-plugin-3.2/src/it/MCOMPILER-170/0000755000175000017500000000000012475665754020202 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/pom.xml0000644000175000017500000000331012406122142021461 0ustar miguelmiguel 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-3.2/src/it/MCOMPILER-170/mcompiler-170-3/0000755000175000017500000000000012475665754022636 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/0000755000175000017500000000000012475665753023424 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/0000755000175000017500000000000012475665753024403 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/0000755000175000017500000000000012475665753025324 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/0000755000175000017500000000000012475665753026113 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/0000755000175000017500000000000012475665753027334 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/0000755000175000017500000000000012475665753030442 5ustar miguelmiguel././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031661 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031661 5ustar miguelmiguel././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031661 5ustar miguelmiguel././@LongLink0000644000000000000000000000017700000000000011610 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugin0000644000175000017500000000270412406122142031634 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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.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-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/0000755000175000017500000000000012475665753024350 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/0000755000175000017500000000000012475665753025271 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/0000755000175000017500000000000012475665753026060 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/0000755000175000017500000000000012475665753027301 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/0000755000175000017500000000000012475665753030407 5ustar miguelmiguel././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031626 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031626 5ustar miguelmiguel././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665754031627 5ustar miguelmiguel././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000644000175000017500000000257512406122142031607 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031575 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031575 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031575 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031575 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031575 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031575 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-3/pom.xml0000644000175000017500000000316312406122142024123 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT mcompiler-170-3 1.0-SNAPSHOT mcompiler-170-1 http://maven.apache.org UTF-8 junit junit 3.8.1 test maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/0000755000175000017500000000000012475665754022635 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/0000755000175000017500000000000012475665753023423 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/0000755000175000017500000000000012475665753024402 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/0000755000175000017500000000000012475665753025323 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/0000755000175000017500000000000012475665753026112 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/0000755000175000017500000000000012475665753027333 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/0000755000175000017500000000000012475665753030441 5ustar miguelmiguel././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031660 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031660 5ustar miguelmiguel././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665754031661 5ustar miguelmiguel././@LongLink0000644000000000000000000000017700000000000011610 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugin0000644000175000017500000000270412406122142031633 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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.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-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/0000755000175000017500000000000012475665753024347 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/0000755000175000017500000000000012475665753025270 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/0000755000175000017500000000000012475665753026057 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/0000755000175000017500000000000012475665753027300 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/0000755000175000017500000000000012475665753030406 5ustar miguelmiguel././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031625 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031625 5ustar miguelmiguel././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665754031626 5ustar miguelmiguel././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000644000175000017500000000257512406122142031606 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031574 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031574 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031574 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031574 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031574 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031574 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-2/pom.xml0000644000175000017500000000316312406122142024122 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT mcompiler-170-2 1.0-SNAPSHOT mcompiler-170-1 http://maven.apache.org UTF-8 junit junit 3.8.1 test maven-compiler-plugin-3.2/src/it/MCOMPILER-170/invoker.properties0000644000175000017500000000152312406122142023743 0ustar miguelmiguel# 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. invoker.goals = clean compile -T4 invoker.maven.version = 3.0+ maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/0000755000175000017500000000000012475665753022633 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/0000755000175000017500000000000012475665753023422 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/0000755000175000017500000000000012475665753024401 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/0000755000175000017500000000000012475665753025322 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/0000755000175000017500000000000012475665753026111 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/0000755000175000017500000000000012475665753027332 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/0000755000175000017500000000000012475665753030440 5ustar miguelmiguel././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031657 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031657 5ustar miguelmiguel././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031657 5ustar miguelmiguel././@LongLink0000644000000000000000000000017700000000000011610 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugin0000644000175000017500000000270412406122142031632 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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.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-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/0000755000175000017500000000000012475665753024346 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/0000755000175000017500000000000012475665753025267 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/0000755000175000017500000000000012475665753026056 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/0000755000175000017500000000000012475665753027277 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/0000755000175000017500000000000012475665753030405 5ustar miguelmiguel././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031624 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031624 5ustar miguelmiguel././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665754031625 5ustar miguelmiguel././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000644000175000017500000000257512406122142031605 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031573 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031573 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031573 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031573 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031573 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031573 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-1/pom.xml0000644000175000017500000000316312406122142024121 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT mcompiler-170-1 1.0-SNAPSHOT mcompiler-170-1 http://maven.apache.org UTF-8 junit junit 3.8.1 test maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/0000755000175000017500000000000012475665754022637 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/0000755000175000017500000000000012475665753023425 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/0000755000175000017500000000000012475665753024404 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/0000755000175000017500000000000012475665753025325 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/0000755000175000017500000000000012475665753026114 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/0000755000175000017500000000000012475665753027335 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/0000755000175000017500000000000012475665753030443 5ustar miguelmiguel././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031662 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031662 5ustar miguelmiguel././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugin0000755000175000017500000000000012475665754031663 5ustar miguelmiguel././@LongLink0000644000000000000000000000017700000000000011610 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugin0000644000175000017500000000270412406122142031635 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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.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-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/0000755000175000017500000000000012475665753024351 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/0000755000175000017500000000000012475665753025272 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/0000755000175000017500000000000012475665753026061 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/0000755000175000017500000000000012475665753027302 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/0000755000175000017500000000000012475665753030410 5ustar miguelmiguel././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031627 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665753031627 5ustar miguelmiguel././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000755000175000017500000000000012475665754031630 5ustar miguelmiguel././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000644000175000017500000000257512406122142031610 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031576 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031576 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031576 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031576 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031576 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugin0000644000175000017500000000260112406122142031576 0ustar miguelmiguelpackage org.apache.maven.plugins.compiler.it; /* * 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. */ /** * 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!" ); } } maven-compiler-plugin-3.2/src/it/MCOMPILER-170/mcompiler-170-4/pom.xml0000644000175000017500000000316312406122142024124 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT mcompiler-170-4 1.0-SNAPSHOT mcompiler-170-1 http://maven.apache.org UTF-8 junit junit 3.8.1 test maven-compiler-plugin-3.2/src/it/extras/0000755000175000017500000000000012475665751017651 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/0000755000175000017500000000000012475665751022324 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/0000755000175000017500000000000012475665751023113 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/0000755000175000017500000000000012475665751024072 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/java/0000755000175000017500000000000012475665751025013 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/java/org/0000755000175000017500000000000012475665751025602 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/java/org/apache/0000755000175000017500000000000012475665751027023 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/java/org/apache/maven/0000755000175000017500000000000012475665751030131 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/java/org/apache/maven/it0055/0000755000175000017500000000000012475665751031057 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/extras/0000755000175000017500000000000012475665751025400 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/extras/org/0000755000175000017500000000000012475665751026167 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/extras/org/apache/0000755000175000017500000000000012475665751027410 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/extras/org/apache/maven/0000755000175000017500000000000012475665751030516 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/test/extras/org/apache/maven/it0055/0000755000175000017500000000000012475665751031444 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/0000755000175000017500000000000012475665751024037 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/java/0000755000175000017500000000000012475665751024760 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/java/org/0000755000175000017500000000000012475665751025547 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/java/org/apache/0000755000175000017500000000000012475665751026770 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/java/org/apache/maven/0000755000175000017500000000000012475665751030076 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/java/org/apache/maven/it0055/0000755000175000017500000000000012475665751031024 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/extras/0000755000175000017500000000000012475665751025345 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/extras/org/0000755000175000017500000000000012475665751026134 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/extras/org/apache/0000755000175000017500000000000012475665751027355 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/extras/org/apache/maven/0000755000175000017500000000000012475665751030463 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/without-copy/src/main/extras/org/apache/maven/it0055/0000755000175000017500000000000012475665751031411 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/0000755000175000017500000000000012475665751021574 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/0000755000175000017500000000000012475665751022363 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/0000755000175000017500000000000012475665751023342 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/java/0000755000175000017500000000000012475665751024263 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/java/org/0000755000175000017500000000000012475665751025052 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/java/org/apache/0000755000175000017500000000000012475665751026273 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/java/org/apache/maven/0000755000175000017500000000000012475665751027401 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/java/org/apache/maven/it0055/0000755000175000017500000000000012475665751030327 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/extras/0000755000175000017500000000000012475665751024650 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/extras/org/0000755000175000017500000000000012475665751025437 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/extras/org/apache/0000755000175000017500000000000012475665751026660 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/extras/org/apache/maven/0000755000175000017500000000000012475665751027766 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/test/extras/org/apache/maven/it0055/0000755000175000017500000000000012475665751030714 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/0000755000175000017500000000000012475665751023307 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/java/0000755000175000017500000000000012475665751024230 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/java/org/0000755000175000017500000000000012475665751025017 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/java/org/apache/0000755000175000017500000000000012475665751026240 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/java/org/apache/maven/0000755000175000017500000000000012475665751027346 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/java/org/apache/maven/it0055/0000755000175000017500000000000012475665751030274 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/extras/0000755000175000017500000000000012475665751024615 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/extras/org/0000755000175000017500000000000012475665751025404 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/extras/org/apache/0000755000175000017500000000000012475665751026625 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/extras/org/apache/maven/0000755000175000017500000000000012475665751027733 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/extras/with-copy/src/main/extras/org/apache/maven/it0055/0000755000175000017500000000000012475665751030661 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-197/0000755000175000017500000000000012475665753020212 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-197/src/0000755000175000017500000000000012475665751020777 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-197/src/main/0000755000175000017500000000000012475665751021723 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-197/src/main/java/0000755000175000017500000000000012475665751022644 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-197/src/main/java/org/0000755000175000017500000000000012475665751023433 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-197/src/main/java/org/issue/0000755000175000017500000000000012475665753024565 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java0000644000175000017500000000230512104534176026655 0ustar miguelmiguelpackage org.issue; /* * 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 javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Person { @Id @GeneratedValue private long id; private String name; public long getId() { return id; } public String getName() { return name; } public void setName(String name) { this.name = name; } } maven-compiler-plugin-3.2/src/it/MCOMPILER-197/src/main/resources/0000755000175000017500000000000012475665751023735 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-197/src/main/resources/META-INF/0000755000175000017500000000000012475665753025077 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-197/src/main/resources/META-INF/persistence.xml0000644000175000017500000000276412406122142030124 0ustar miguelmiguel jdbc/ds jdbc/ds-non-jta org.issue.Person true maven-compiler-plugin-3.2/src/it/MCOMPILER-197/pom.xml0000644000175000017500000000564012406122142021502 0ustar miguelmiguel 4.0.0 org.issue compiler-test 1.0-SNAPSHOT org.apache.geronimo.specs geronimo-jpa_2.0_spec 1.1 provided org.apache.maven.plugins maven-compiler-plugin @project.version@ generate-entity-metamodel generate-sources compile 1.6 1.6 ${project.build.directory}/generated-sources true true compile compile compile 1.6 1.6 org.apache.openjpa openjpa @openJpaVersion@ maven-compiler-plugin-3.2/src/it/MCOMPILER-197/verify.groovy0000644000175000017500000000163312104534176022747 0ustar miguelmiguel/* * 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. */ def sourceFile = new File( basedir, 'target/generated-sources/org/issue/Person_.java') assert sourceFile.exists() maven-compiler-plugin-3.2/src/it/MCOMPILER-197/invoker.properties0000644000175000017500000000146012406122142023754 0ustar miguelmiguel# 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. invoker.java.version = 1.6+ maven-compiler-plugin-3.2/src/it/test1/0000755000175000017500000000000012475665752017404 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/test1/src/0000755000175000017500000000000012475665751020172 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/test1/src/main/0000755000175000017500000000000012475665751021116 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/test1/src/main/java/0000755000175000017500000000000012475665752022040 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/test1/src/main/java/MyClass.java0000644000175000017500000000150512406122142024226 0ustar miguelmiguel/* * 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 MyClass { } maven-compiler-plugin-3.2/src/it/test1/pom.xml0000644000175000017500000000352212051250763020701 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it 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-3.2/src/it/MCOMPILER-129/0000755000175000017500000000000012475665752020204 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-129/src/0000755000175000017500000000000012475665751020772 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-129/src/main/0000755000175000017500000000000012475665751021716 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-129/src/main/java/0000755000175000017500000000000012475665752022640 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-129/src/main/java/MyClass.java0000644000175000017500000000153212261353370025036 0ustar miguelmiguel/* * 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 MyClass { } maven-compiler-plugin-3.2/src/it/MCOMPILER-129/pom.xml0000644000175000017500000000363712261353370021511 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-129 1.0-SNAPSHOT Test to verify usage of javac -J option org.apache.maven.plugins maven-compiler-plugin @project.version@ true 1.5 1.5 -J-Duser.language=en_us maven-compiler-plugin-3.2/src/it/MCOMPILER-129/invoker.properties0000644000175000017500000000150012261353370023752 0ustar miguelmiguel# 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. invoker.goals = clean compilemaven-compiler-plugin-3.2/src/it/mcompiler-21_class-remove/0000755000175000017500000000000012475665753023234 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-21_class-remove/src/0000755000175000017500000000000012475665752024022 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-21_class-remove/src/main/0000755000175000017500000000000012475665752024746 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-21_class-remove/src/main/java/0000755000175000017500000000000012475665753025670 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-21_class-remove/src/main/java/BeanA2.java0000644000175000017500000000200212406122142027523 0ustar miguelmiguel/* * 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. */ /** * dumb test bean */ public class BeanA2 { private int i; private BeanA beanA; public int getI() { return beanA.getI(); } public void setI(int i) { beanA.setI(i); } } maven-compiler-plugin-3.2/src/it/mcompiler-21_class-remove/src/main/java/BeanA.java0000644000175000017500000000173412406122142027454 0ustar miguelmiguel/* * 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. */ /** * dumb test bean */ public class BeanA { private int i,y; public int getI() { return i; } public void setI(int i) { this.i = i; } } maven-compiler-plugin-3.2/src/it/mcompiler-21_class-remove/pom.xml0000644000175000017500000000425212406122142024522 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-21_class-remove 1.0-SNAPSHOT This IT tests what happens if the method name in a single class BeanA gets changed. In this case 'mvn compile' (without a clean) should fail as BeanA2 still uses the old method of BeanA. org.apache.maven.plugins maven-compiler-plugin @project.version@ org.codehaus.gmaven gmaven-plugin 1.4 def beanAFile = new File( project.basedir, 'src/main/java/BeanA.java' ) beanAFile.delete() maven-compiler-plugin-3.2/src/it/mcompiler-21_class-remove/verify.groovy0000644000175000017500000000172112027444154025767 0ustar miguelmiguel /* * 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. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'COMPILATION ERROR :' ) maven-compiler-plugin-3.2/src/it/mcompiler-21_class-remove/invoker.properties0000644000175000017500000000165012406122142026777 0ustar miguelmiguel# 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. invoker.goals = clean compile invoker.goals.2 = org.codehaus.gmaven:gmaven-plugin:execute invoker.goals.3 = compile invoker.buildResult.3 = failure maven-compiler-plugin-3.2/src/it/includes-excludes/0000755000175000017500000000000012475665753021765 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/0000755000175000017500000000000012475665752022553 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/0000755000175000017500000000000012475665751023531 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/java/0000755000175000017500000000000012475665751024452 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/java/org/0000755000175000017500000000000012475665751025241 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/java/org/apache/0000755000175000017500000000000012475665751026462 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/java/org/apache/maven/0000755000175000017500000000000012475665751027570 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/0000755000175000017500000000000012475665753030520 5ustar miguelmiguel././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.javamaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.0000644000175000017500000000212412406122142032574 0ustar miguelmiguelpackage org.apache.maven.it0055; /* * 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 PersonTest extends TestCase { public void testPerson() { Person person = new Person(); person.setName( "foo" ); assertEquals( "foo", person.getName() ); } } ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.javamaven-compiler-plugin-3.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTe0000644000175000017500000000212712406122142032644 0ustar miguelmiguelpackage org.apache.maven.it0055; /* * 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 PersonTwoTest extends TestCase { public void testPerson() { Person person = new Person(); person.setName( "foo" ); assertEquals( "foo", person.getName() ); } } maven-compiler-plugin-3.2/src/it/includes-excludes/src/main/0000755000175000017500000000000012475665752023477 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/main/java/0000755000175000017500000000000012475665752024420 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/main/java/org/0000755000175000017500000000000012475665752025207 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/main/java/org/apache/0000755000175000017500000000000012475665752026430 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/main/java/org/apache/maven/0000755000175000017500000000000012475665752027536 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/0000755000175000017500000000000012475665753030465 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java0000644000175000017500000000202312406122142032541 0ustar miguelmiguelpackage org.apache.maven.it0055; /* * 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 Person { private String name; public void setName( String name ) { this.name = name; } public String getName() { return name; } } ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-compiler-plugin-3.2/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.javamaven-compiler-plugin-3.2/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.j0000644000175000017500000000202612406122142032546 0ustar miguelmiguelpackage org.apache.maven.it0055; /* * 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 PersonTwo { private String name; public void setName( String name ) { this.name = name; } public String getName() { return name; } } maven-compiler-plugin-3.2/src/it/includes-excludes/pom.xml0000644000175000017500000000351212051250763023260 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it includes-excludes 1.0-SNAPSHOT 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-3.2/src/it/includes-excludes/verify.bsh0000644000175000017500000000415412406122142023741 0ustar miguelmiguel/* * 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.*; 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-3.2/src/it/settings.xml0000644000175000017500000000317411752144430020711 0ustar miguelmiguel it-repo true local.central @localRepositoryUrl@ true true local.central @localRepositoryUrl@ true true maven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/0000755000175000017500000000000012475665753026224 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/0000755000175000017500000000000012475665751027011 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/test/0000755000175000017500000000000012475665751027770 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/test/java/0000755000175000017500000000000012475665751030711 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/test/groovy/0000755000175000017500000000000012475665753031317 5ustar miguelmiguel././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/test/groovy/GroovyTest.groovymaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/test/groovy/GroovyTest.0000755000175000017500000000167712406122142033431 0ustar miguelmiguel/* * 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.junit.Test import org.junit.Assert class GroovyTest { @Test void testMethod() { GroovyMain.main null Assert.assertTrue true } } maven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/main/0000755000175000017500000000000012475665751027735 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/main/java/0000755000175000017500000000000012475665751030656 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/0000755000175000017500000000000012475665753031264 5ustar miguelmiguel././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyHello.groovymaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyHello0000755000175000017500000000162212406122142033432 0ustar miguelmiguel/* * 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. */ class GroovyHello implements Helloable { void sayHello() { println("Hello World from Groovy!") } } ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyMain.groovymaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyMain.0000755000175000017500000000160612406122142033333 0ustar miguelmiguel/* * 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. */ class GroovyMain { static void main(String... args) { new GroovyHello().sayHello() } } ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/Helloable.groovymaven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/Helloable.g0000755000175000017500000000152412406122142033276 0ustar miguelmiguel/* * 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. */ interface Helloable { void sayHello() } maven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/pom.xml0000755000175000017500000000617312100052722027516 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it groovy-project-with-new-plexus-compiler 1.0-SNAPSHOT src/main/groovy src/test/groovy org.apache.maven.plugins maven-compiler-plugin @project.version@ groovy-eclipse-compiler true org.codehaus.groovy groovy-eclipse-compiler @groovyEclipseCompilerVersion@ org.codehaus.groovy groovy-eclipse-batch @groovy-eclipse-batch@ org.codehaus.groovy groovy-eclipse-compiler @groovyEclipseCompilerVersion@ true org.codehaus.groovy groovy-eclipse-batch @groovy-eclipse-batch@ org.codehaus.groovy groovy-all @groovyVersion@ junit junit 4.8.2 test maven-compiler-plugin-3.2/src/it/groovy-project-with-new-plexus-compiler/verify.groovy0000644000175000017500000000213712100052701030742 0ustar miguelmiguel /* * 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. */ assert new File(basedir,"target/classes/GroovyMain.class").exists() assert new File(basedir,"target/test-classes/GroovyTest.class").exists() def logFile = new File( basedir, 'build.log' ) assert logFile.exists() //content = logFile.text //assert content.contains( 'Usage: javac ' ) maven-compiler-plugin-3.2/src/it/MCOMPILER-157/0000755000175000017500000000000012475665753020206 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/pom.xml0000644000175000017500000000335212413607762021512 0ustar miguelmiguel 4.0.0 org.issue compiler-test 1.0-SNAPSHOT pom annotation-processor annotation-verify annotation-user org.apache.maven.plugins maven-compiler-plugin @project.version@ 1.6 1.6 maven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/0000755000175000017500000000000012475665752024374 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/src/0000755000175000017500000000000012475665751025162 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/src/main/0000755000175000017500000000000012475665751026106 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/0000755000175000017500000000000012475665751027027 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/0000755000175000017500000000000012475665751027616 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/0000755000175000017500000000000012475665752030747 5ustar miguelmiguel././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotation.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAn0000644000175000017500000000210412414207347032360 0ustar miguelmiguelpackage org.issue; /* * 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.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.TYPE) @Retention(RetentionPolicy.SOURCE) public @interface SimpleAnnotation { } ././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAn0000644000175000017500000000526412414207347032372 0ustar miguelmiguelpackage org.issue; /* * 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.IOException; import java.io.Writer; import java.util.Set; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.Filer; import javax.annotation.processing.RoundEnvironment; import javax.annotation.processing.SupportedAnnotationTypes; import javax.annotation.processing.SupportedSourceVersion; import javax.lang.model.SourceVersion; import javax.lang.model.element.Element; import javax.lang.model.element.Name; import javax.lang.model.element.PackageElement; import javax.lang.model.element.TypeElement; import javax.lang.model.util.Elements; import javax.tools.FileObject; import javax.tools.StandardLocation; @SupportedSourceVersion( SourceVersion.RELEASE_6 ) @SupportedAnnotationTypes( "org.issue.SimpleAnnotation" ) public class SimpleAnnotationProcessor extends AbstractProcessor { @Override public boolean process( Set annotations, RoundEnvironment roundEnv ) { Filer filer = processingEnv.getFiler(); Elements elementUtils = processingEnv.getElementUtils(); Set elements = roundEnv.getElementsAnnotatedWith( SimpleAnnotation.class ); for ( Element element : elements ) { Name name = element.getSimpleName(); PackageElement packageElement = elementUtils.getPackageOf( element ); try { FileObject resource = filer.createResource( StandardLocation.SOURCE_OUTPUT, packageElement.getQualifiedName(), name + ".txt", element ); Writer writer = resource.openWriter(); writer.write( name.toString() ); writer.close(); } catch ( IOException e ) { throw new RuntimeException( e ); } } return !elements.isEmpty(); } } maven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-processor/pom.xml0000644000175000017500000000235212414207347025674 0ustar miguelmiguel 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-processor maven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-verify/0000755000175000017500000000000012475665753023662 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-verify/src/0000755000175000017500000000000012475665751024447 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-verify/src/main/0000755000175000017500000000000012475665751025373 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/0000755000175000017500000000000012475665751026314 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/org/0000755000175000017500000000000012475665751027103 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/org/issue/0000755000175000017500000000000012475665753030235 5ustar miguelmiguel././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/org/issue/SourcePathReadGoal.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/org/issue/SourcePathR0000644000175000017500000000736612414207347032353 0ustar miguelmiguelpackage org.issue; /* * 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.io.IOException; import java.util.List; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.project.MavenProject; import org.apache.maven.shared.utils.StringUtils; import org.apache.maven.shared.utils.io.FileUtils; @Mojo( name = "read-source", defaultPhase = LifecyclePhase.PROCESS_TEST_CLASSES ) public class SourcePathReadGoal extends AbstractMojo { @Parameter protected String sourceClass; @Parameter protected String testSourceClass; @Parameter( defaultValue = "${project}" ) protected MavenProject project; @SuppressWarnings( "unchecked" ) public void execute() throws MojoExecutionException, MojoFailureException { if ( sourceClass != null ) { getLog().info( "Checking compile source roots for: '" + sourceClass + "'" ); assertGeneratedSourceFileFor( sourceClass, project.getCompileSourceRoots() ); } if ( testSourceClass != null ) { getLog().info( "Checking test-compile source roots for: '" + testSourceClass + "'" ); assertGeneratedSourceFileFor( testSourceClass, project.getTestCompileSourceRoots() ); } } private void assertGeneratedSourceFileFor( String sourceClass, List sourceRoots ) throws MojoFailureException, MojoExecutionException { String sourceFile = sourceClass.replace( '.', '/' ) .concat( ".txt" ); boolean found = false; for ( String root : sourceRoots ) { File f = new File( root, sourceFile ); getLog().info( "Looking for: " + f ); if ( f.exists() ) { try { String[] nameParts = sourceClass.split( "\\." ); String content = FileUtils.fileRead( f ); if ( !nameParts[nameParts.length-1].equals( content ) ) { throw new MojoFailureException( "Non-matching content in: " + f + "\n expected: '" + sourceClass + "'\n found: '" + content + "'" ); } found = true; break; } catch ( IOException e ) { throw new MojoExecutionException( "Cannot read contents of: " + f, e ); } } } if ( !found ) { throw new MojoFailureException( "Cannot find generated source file: " + sourceFile + " in:\n " + StringUtils.join( sourceRoots.iterator(), "\n " ) ); } } } maven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-verify/pom.xml0000644000175000017500000001037512414207347025165 0ustar miguelmiguel 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-verify maven-plugin org.issue annotation-processor 1.0-SNAPSHOT provided org.apache.maven.plugin-tools maven-plugin-annotations 3.3 provided 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.shared maven-shared-utils 0.1 org.apache.maven.plugins maven-plugin-plugin @mavenPluginPluginVersion@ true mojo-descriptor process-classes descriptor maven-compiler-plugin-3.2/src/it/MCOMPILER-157/invoker.properties0000644000175000017500000000153112415042723023755 0ustar miguelmiguel# 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. invoker.java.version = 1.6+ invoker.goals=clean process-test-classes maven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/0000755000175000017500000000000012475665752023333 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/0000755000175000017500000000000012475665751024121 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/test/0000755000175000017500000000000012475665751025100 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/test/java/0000755000175000017500000000000012475665751026021 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/test/java/org/0000755000175000017500000000000012475665751026610 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/0000755000175000017500000000000012475665752027741 5ustar miguelmiguel././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/SimpleTestObject.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/SimpleTestObj0000644000175000017500000000156212414207347032375 0ustar miguelmiguelpackage org.issue; /* * 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. */ @SimpleAnnotation public class SimpleTestObject { } maven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/main/0000755000175000017500000000000012475665751025045 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/main/java/0000755000175000017500000000000012475665751025766 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/main/java/org/0000755000175000017500000000000012475665751026555 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/0000755000175000017500000000000012475665752027706 5ustar miguelmiguel././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/SimpleObject.javamaven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/SimpleObject.0000644000175000017500000000155612414207347032257 0ustar miguelmiguelpackage org.issue; /* * 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. */ @SimpleAnnotation public class SimpleObject { } maven-compiler-plugin-3.2/src/it/MCOMPILER-157/annotation-user/pom.xml0000644000175000017500000000506612414207347024640 0ustar miguelmiguel 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-user org.issue annotation-processor 1.0-SNAPSHOT provided junit junit 4.10 test maven-compiler-plugin 1.6 1.6 org.issue.SimpleAnnotationProcessor org.issue annotation-verify 1.0-SNAPSHOT verify-annotations read-source org.issue.SimpleObject org.issue.SimpleTestObject maven-compiler-plugin-3.2/src/it/MCOMPILER-190/0000755000175000017500000000000012475665752020202 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-190/src/0000755000175000017500000000000012475665751020770 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-190/src/main/0000755000175000017500000000000012475665751021714 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-190/src/main/java/0000755000175000017500000000000012475665751022635 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-190/src/main/java/org/0000755000175000017500000000000012475665751023424 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-190/src/main/java/org/example/0000755000175000017500000000000012475665751025057 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-190/src/main/java/org/example/pce/0000755000175000017500000000000012475665751025626 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-190/src/main/java/org/example/pce/sample/0000755000175000017500000000000012475665752027110 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-190/src/main/java/org/example/pce/sample/Dummy.java0000644000175000017500000000167012406122142031021 0ustar miguelmiguelpackage org.example.pce.sample; /* * 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 Dummy { public static void main(final String[] args) { String dummy = new Integer(1); } } maven-compiler-plugin-3.2/src/it/MCOMPILER-190/pom.xml0000644000175000017500000000363512406122142021475 0ustar miguelmiguel 4.0.0 org.example.pce sample 0.0.1-SNAPSHOT jar utf-8 org.apache.maven.plugins maven-compiler-plugin @pom.version@ eclipse 1.5 1.5 org.codehaus.plexus plexus-compiler-eclipse @plexusCompilerVersion@ maven-compiler-plugin-3.2/src/it/MCOMPILER-190/invoker.properties0000644000175000017500000000152012406122142023742 0ustar miguelmiguel# 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. invoker.goals = clean compile invoker.buildResult = failure maven-compiler-plugin-3.2/src/it/error-prone-compiler/0000755000175000017500000000000012475665753022427 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/error-prone-compiler/src/0000755000175000017500000000000012475665752023215 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/error-prone-compiler/src/test/0000755000175000017500000000000012475665752024174 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/error-prone-compiler/src/test/java/0000755000175000017500000000000012475665753025116 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/error-prone-compiler/src/test/java/MyTest.java0000644000175000017500000000204012406122142027150 0ustar miguelmiguel/* * 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; import java.util.*; public class MyTest extends TestCase { public boolean bug2() { //BUG: Suggestion includes "return false" return new ArrayList().remove(new Date()); } } maven-compiler-plugin-3.2/src/it/error-prone-compiler/src/main/0000755000175000017500000000000012475665752024141 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/error-prone-compiler/src/main/java/0000755000175000017500000000000012475665753025063 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/error-prone-compiler/src/main/java/MyClass.java0000644000175000017500000000174012406122142027251 0ustar miguelmiguel/* * 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 MyClass { public static void main(String[] args) { if (args.length < 1); throw new IllegalArgumentException("Missing required argument"); } } maven-compiler-plugin-3.2/src/it/error-prone-compiler/pom.xml0000644000175000017500000000466212214047155023731 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it error-prone-compiler 1.0-SNAPSHOT Test for default configuration UTF-8 junit junit 3.8.2 org.apache.maven.plugins maven-compiler-plugin @project.version@ javac-with-errorprone true org.codehaus.plexus plexus-compiler-javac-errorprone @plexusCompilerVersion@ org.codehaus.plexus plexus-compiler-javac @plexusCompilerVersion@ maven-compiler-plugin-3.2/src/it/error-prone-compiler/verify.groovy0000644000175000017500000000176712177717205025202 0ustar miguelmiguel/* * 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. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'Compilation failure' ) assert content.contains( '[EmptyIf] Empty statement after if' )maven-compiler-plugin-3.2/src/it/error-prone-compiler/invoker.properties0000644000175000017500000000155412406122142026175 0ustar miguelmiguel# 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. invoker.java.version = 1.7+ invoker.goals = clean compile invoker.buildResult = failure maven-compiler-plugin-3.2/src/it/mcompiler-182/0000755000175000017500000000000012475665752020643 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-182/src/0000755000175000017500000000000012475665751021431 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-182/src/main/0000755000175000017500000000000012475665751022355 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-182/src/main/java/0000755000175000017500000000000012475665752023277 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/mcompiler-182/src/main/java/BeanA2.java0000644000175000017500000000200212406122142025133 0ustar miguelmiguel/* * 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. */ /** * dumb test bean */ public class BeanA2 { private int i; private BeanA beanA; public int getI() { return beanA.getI(); } public void setI(int i) { beanA.setI(i); } } maven-compiler-plugin-3.2/src/it/mcompiler-182/src/main/java/BeanA.java0000644000175000017500000000173412406122142025064 0ustar miguelmiguel/* * 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. */ /** * dumb test bean */ public class BeanA { private int i,y; public int getI() { return i; } public void setI(int i) { this.i = i; } } maven-compiler-plugin-3.2/src/it/mcompiler-182/pom.xml0000644000175000017500000000460412406122142022133 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-182 1.0-SNAPSHOT This IT tests what happens if the class name (and filename) of BeanA gets changed. In this case 'mvn compile' (without a clean) should fail as BeanA2 still uses the old BeanA. org.apache.maven.plugins maven-compiler-plugin @project.version@ org.codehaus.gmaven gmaven-plugin 1.4 def beanAFile = new File( project.basedir, 'src/main/java/BeanA.java' ) new File( project.basedir, 'src/main/java/BEANa.java' ).withWriter { file -> beanAFile.eachLine { line -> file.writeLine( line.replace( 'BeanA', 'BEANa' ) ) } } beanAFile.delete() maven-compiler-plugin-3.2/src/it/mcompiler-182/verify.groovy0000644000175000017500000000203012032630652023365 0ustar miguelmiguel /* * 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. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'COMPILATION ERROR :' ) assert !new File( basedir, 'target/classes/BeanA.class' ).exists(); maven-compiler-plugin-3.2/src/it/mcompiler-182/invoker.properties0000644000175000017500000000165012406122142024407 0ustar miguelmiguel# 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. invoker.goals = clean compile invoker.goals.2 = org.codehaus.gmaven:gmaven-plugin:execute invoker.goals.3 = compile invoker.buildResult.3 = failure maven-compiler-plugin-3.2/src/it/default/0000755000175000017500000000000012475665753017771 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default/src/0000755000175000017500000000000012475665752020557 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default/src/test/0000755000175000017500000000000012475665752021536 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default/src/test/java/0000755000175000017500000000000012475665753022460 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default/src/test/java/MyTest.java0000644000175000017500000000157312406122142024524 0ustar miguelmiguel/* * 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 MyTest extends TestCase { } maven-compiler-plugin-3.2/src/it/default/src/main/0000755000175000017500000000000012475665752021503 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default/src/main/java/0000755000175000017500000000000012475665753022425 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/default/src/main/java/MyClass.java0000644000175000017500000000150512406122142024612 0ustar miguelmiguel/* * 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 MyClass { } maven-compiler-plugin-3.2/src/it/default/pom.xml0000644000175000017500000000365712105262664021301 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins.compiler.it default 1.0-SNAPSHOT Test for default configuration UTF-8 junit junit 3.8.2 org.apache.maven.plugins maven-compiler-plugin @pom.version@ -Xlint:-path maven-compiler-plugin-3.2/src/it/default/verify.bsh0000644000175000017500000000255712406122142021752 0ustar miguelmiguel/* * 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.*; 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-3.2/src/it/MCOMPILER-192/0000755000175000017500000000000012475665752020204 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-192/src/0000755000175000017500000000000012475665751020772 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-192/src/main/0000755000175000017500000000000012475665751021716 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-192/src/main/java/0000755000175000017500000000000012475665751022637 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-192/src/main/java/dummy/0000755000175000017500000000000012475665752023773 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/it/MCOMPILER-192/src/main/java/dummy/license.txt0000644000175000017500000000146312064565717026154 0ustar miguelmiguel/* * 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. */ It's minemaven-compiler-plugin-3.2/src/it/MCOMPILER-192/src/main/java/dummy/HelloWorld.java0000644000175000017500000000166012064565717026706 0ustar miguelmiguelpackage dummy; /* * 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 HelloWorld { public static void main(String[] argv) { System.out.println("Hello World"); } } maven-compiler-plugin-3.2/src/it/MCOMPILER-192/pom.xml0000644000175000017500000000304712064565717021517 0ustar miguelmiguel 4.0.0 blah blah 1.0 jar org.apache.maven.plugins maven-compiler-plugin @pom.version@ true dummy/*.java dummy/license.txt maven-compiler-plugin-3.2/src/it/MCOMPILER-192/verify.groovy0000644000175000017500000000171412064565702022746 0ustar miguelmiguel /* * 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. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'Usage: javac ' ) maven-compiler-plugin-3.2/src/it/MCOMPILER-192/invoker.properties0000644000175000017500000000152012406122142023744 0ustar miguelmiguel# 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. invoker.goals = clean compile invoker.buildResult = failure maven-compiler-plugin-3.2/src/site/0000755000175000017500000000000012475665754016676 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/site/apt/0000755000175000017500000000000012475665754017462 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/site/apt/usage.apt.vm0000644000175000017500000000442511753015777021712 0ustar miguelmiguel ------ 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-3.2/src/site/apt/index.apt.vm0000644000175000017500000001075112173067412021702 0ustar miguelmiguel ------ Introduction ------ Edwin Punzalan ------ 2013-07-22 ------ ~~ 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 ${project.name} The Compiler Plugin is used to compile the sources of your project. Since 3.0, the default compiler is javax.tools.JavaCompiler (if you are using java 1.6) and is used to compile Java sources. If you want to force the plugin using <<>>, you must configure the plugin option {{{./compile-mojo.html#forceJavacCompilerUse}<<>>}}. 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-3.2/src/site/apt/non-javac-compilers.apt.vm0000644000175000017500000000532511753015777024455 0ustar miguelmiguel ------ 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-3.2/src/site/apt/examples/0000755000175000017500000000000012475665754021300 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/site/apt/examples/set-compiler-source-and-target.apt.vm0000644000175000017500000000472011753015777030347 0ustar miguelmiguel ------ 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-3.2/src/site/apt/examples/pass-compiler-arguments.apt.vm0000644000175000017500000000445311753015777027206 0ustar miguelmiguel ------ 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-3.2/src/site/apt/examples/compile-with-memory-enhancements.apt.vm0000644000175000017500000000327411753015777031002 0ustar miguelmiguel ------ 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-3.2/src/site/apt/examples/compile-using-different-jdk.apt.vm0000644000175000017500000000523211753015777027706 0ustar miguelmiguel ------ 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-3.2/src/site/xdoc/0000755000175000017500000000000012475665754017633 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/site/xdoc/download.xml.vm0000644000175000017500000001135512334734425022574 0ustar miguelmiguel Download ${project.name} Source

${project.name} ${project.version} is distributed in source format. Use a source archive if you intend to build ${project.name} yourself. Otherwise, simply use the ready-made binary artifacts from central repository.

You will be prompted for a mirror - if the file is not found on yours, please be patient, as it may take 24 hours to reach all mirrors.

In order to guard against corrupted downloads/installations, it is highly recommended to verify the signature of the release bundles against the public KEYS used by the Apache Maven developers.

${project.name} is distributed under the Apache License, version 2.0.

We strongly encourage our users to configure a Maven repository mirror closer to their location, please read How to Use Mirrors for Repositories.

[if-any logo] logo [end] The currently selected mirror is [preferred]. If you encounter a problem with this mirror, please select another mirror. If all mirrors are failing, there are backup mirrors (at the end of the mirrors list) that should be available.

Other mirrors:

You may also consult the complete list of mirrors.

This is the current stable version of ${project.name}.

Link Checksum Signature
${project.name} ${project.version} (Source zip) maven/plugins/${project.artifactId}-${project.version}-source-release.zip maven/plugins/${project.artifactId}-${project.version}-source-release.zip.md5 maven/plugins/${project.artifactId}-${project.version}-source-release.zip.asc

Older non-recommended releases can be found on our archive site.

maven-compiler-plugin-3.2/src/site/resources/0000755000175000017500000000000012475665754020710 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/site/resources/download.cgi0000644000175000017500000000166412336141343023165 0ustar miguelmiguel#!/bin/sh # # 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. # # Just call the standard mirrors.cgi script. It will use download.html # as the input template. exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $*maven-compiler-plugin-3.2/src/site/fml/0000755000175000017500000000000012475665754017454 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/site/fml/faq.fml0000644000175000017500000000355211317134314020701 0ustar miguelmiguel 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-3.2/src/site/site.xml0000644000175000017500000000375312333720733020352 0ustar miguelmiguel maven-compiler-plugin-3.2/src/test/0000755000175000017500000000000012475665754016711 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/java/0000755000175000017500000000000012475665754017632 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/java/org/0000755000175000017500000000000012475665754020421 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/java/org/apache/0000755000175000017500000000000012475665754021642 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/java/org/apache/maven/0000755000175000017500000000000012475665754022750 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/java/org/apache/maven/plugin/0000755000175000017500000000000012475665754024246 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/java/org/apache/maven/plugin/compiler/0000755000175000017500000000000012475665754026060 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/java/org/apache/maven/plugin/compiler/stubs/0000755000175000017500000000000012475665754027220 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/java/org/apache/maven/plugin/compiler/stubs/DebugEnabledLog.java0000644000175000017500000000216212051223437033001 0ustar miguelmiguelpackage org.apache.maven.plugin.compiler.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-3.2/src/test/java/org/apache/maven/plugin/compiler/stubs/CompilerStub.java0000644000175000017500000001013512051223437032445 0ustar miguelmiguelpackage org.apache.maven.plugin.compiler.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.CompilerMessage; import org.codehaus.plexus.compiler.CompilerOutputStyle; import org.codehaus.plexus.compiler.CompilerResult; 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 CompilerResult performCompile( 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 new CompilerResult( !shouldFail, Collections.singletonList( new CompilerMessage( "message 1", CompilerMessage.Kind.OTHER ) ) ); } public String[] createCommandLine( CompilerConfiguration compilerConfiguration ) throws CompilerException { return new String[0]; } } ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-compiler-plugin-3.2/src/test/java/org/apache/maven/plugin/compiler/stubs/CompilerManagerStub.javamaven-compiler-plugin-3.2/src/test/java/org/apache/maven/plugin/compiler/stubs/CompilerManagerStub.j0000644000175000017500000000270512051223437033254 0ustar miguelmiguelpackage org.apache.maven.plugin.compiler.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-3.2/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java0000644000175000017500000003446012413607762032750 0ustar miguelmiguelpackage org.apache.maven.plugin.compiler; /* * 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 static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import java.io.File; import java.net.URI; import java.util.ArrayList; import java.util.Arrays; 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.execution.MavenSession; import org.apache.maven.plugin.MojoExecution; import org.apache.maven.plugin.compiler.stubs.CompilerManagerStub; import org.apache.maven.plugin.compiler.stubs.DebugEnabledLog; import org.apache.maven.plugin.descriptor.MojoDescriptor; import org.apache.maven.plugin.descriptor.PluginDescriptor; import org.apache.maven.plugin.testing.AbstractMojoTestCase; import org.apache.maven.plugin.testing.stubs.ArtifactStub; import org.apache.maven.project.MavenProject; 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" ); // JAVA_HOME doesn't have to be on the PATH. setVariableValueToObject( compileMojo, "executable", new File( System.getenv( "JAVA_HOME" ), "bin/javac" ).getPath() ); 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" ); // JAVA_HOME doesn't have to be on the PATH. setVariableValueToObject( testCompileMojo, "executable", new File( System.getenv( "JAVA_HOME" ), "bin/javac" ).getPath() ); 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() ); assertEquals( Arrays.asList( "key1=value1","-Xlint","-my&special:param-with+chars/not>allowed_in_XML_element_names" ), compileMojo.compilerArgs ); } 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 ); setVariableValueToObject( mojo, "session", getMockMavenSession() ); setVariableValueToObject( mojo, "project", getMockMavenProject() ); setVariableValueToObject( mojo, "mojoExecution", getMockMojoExecution() ); 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(); String localRepository = System.getProperty( "localRepository" ); if ( localRepository != null ) { testClasspathList.add( localRepository + "/junit/junit/3.8.1/junit-3.8.1.jar" ); } else { // for IDE String junitURI = org.junit.Test.class.getResource( "Test.class" ).toURI().toString(); junitURI = junitURI.substring( "jar:".length(), junitURI.indexOf( '!' ) ); testClasspathList.add( new File( URI.create( junitURI ) ).getAbsolutePath() ); } testClasspathList.add( compilerMojo.getOutputDirectory().getPath() ); setVariableValueToObject( mojo, "classpathElements", testClasspathList ); String testSourceRoot = testPom.getParent() + "/src/test/java"; setVariableValueToObject( mojo, "compileSourceRoots", Collections.singletonList( testSourceRoot ) ); setVariableValueToObject( mojo, "session", getMockMavenSession() ); setVariableValueToObject( mojo, "mojoExecution", getMockMojoExecution() ); return mojo; } private MavenProject getMockMavenProject() { MavenProject mp = new MavenProject(); mp.getBuild().setDirectory( "target" ); return mp; } private MavenSession getMockMavenSession() { MavenSession session = mock( MavenSession.class ); // when( session.getPluginContext( isA(PluginDescriptor.class), isA(MavenProject.class) ) ).thenReturn( // Collections.emptyMap() ); when( session.getCurrentProject() ).thenReturn( getMockMavenProject() ); return session; } private MojoExecution getMockMojoExecution() { MojoDescriptor md = new MojoDescriptor(); md.setGoal( "compile" ); MojoExecution me = new MojoExecution( md ); PluginDescriptor pd = new PluginDescriptor(); pd.setArtifactId( "maven-compiler-plugin" ); md.setPluginDescriptor( pd ); return me; } } maven-compiler-plugin-3.2/src/test/resources/0000755000175000017500000000000012475665754020723 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/0000755000175000017500000000000012475665754021702 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-args-test/0000755000175000017500000000000012475665754025423 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-args-test/src/0000755000175000017500000000000012475665754026212 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-args-test/src/test/0000755000175000017500000000000012475665754027171 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-args-test/src/test/java/0000755000175000017500000000000012475665754030112 5ustar miguelmiguel././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-args-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-args-test/src/test/java/TestCompile0Test.0000644000175000017500000000174011123544663033245 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-args-test/src/main/0000755000175000017500000000000012475665754027136 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-args-test/src/main/java/0000755000175000017500000000000012475665754030057 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-args-test/src/main/java/TestCompile0.java0000644000175000017500000000163111123544663033213 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-args-test/plugin-config.xml0000644000175000017500000000366312105262637030675 0ustar miguelmiguel 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 key1=value1 -Xlint allowed_in_XML_element_names]]> param value maven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/0000755000175000017500000000000012475665754027605 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/0000755000175000017500000000000012475665754030374 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/0000755000175000017500000000000012475665754031353 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/0000755000175000017500000000000012475665754032274 5ustar miguelmiguel././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestCompile4TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestC0000644000175000017500000000174011123544663033223 0ustar miguelmiguel/* * 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(); } }././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestCompile2TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestC0000644000175000017500000000174011123544663033223 0ustar miguelmiguel/* * 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(); } }././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestCompile3TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestC0000644000175000017500000000174011123544663033223 0ustar miguelmiguel/* * 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(); } }maven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/0000755000175000017500000000000012475665754031320 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/0000755000175000017500000000000012475665754032241 5ustar miguelmiguel././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestCompile3.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestC0000644000175000017500000000163111123544663033167 0ustar miguelmiguel/* * 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!" ); } }././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestCompile4.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestC0000644000175000017500000000163111123544663033167 0ustar miguelmiguel/* * 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!" ); } }././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestCompile2.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestC0000644000175000017500000000163111123544663033167 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-one-output-file-test2/plugin-config.xml0000644000175000017500000000300610702764542033051 0ustar miguelmiguel 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-3.2/src/test/resources/unit/compiler-failonerror-test/0000755000175000017500000000000012475665754027011 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-failonerror-test/src/0000755000175000017500000000000012475665754027600 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-failonerror-test/src/test/0000755000175000017500000000000012475665754030557 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-failonerror-test/src/test/java/0000755000175000017500000000000012475665754031500 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-failonerror-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-failonerror-test/src/test/java/TestCompil0000644000175000017500000000174011123544663033470 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-failonerror-test/src/main/0000755000175000017500000000000012475665754030524 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-failonerror-test/src/main/java/0000755000175000017500000000000012475665754031445 5ustar miguelmiguel././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-failonerror-test/src/main/java/TestCompile0.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-failonerror-test/src/main/java/TestCompil0000644000175000017500000000163111123544663033434 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-failonerror-test/plugin-config.xml0000644000175000017500000000300010702764542032247 0ustar miguelmiguel 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-3.2/src/test/resources/unit/compiler-fork-test/0000755000175000017500000000000012475665754025430 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fork-test/src/0000755000175000017500000000000012475665754026217 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fork-test/src/test/0000755000175000017500000000000012475665754027176 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fork-test/src/test/java/0000755000175000017500000000000012475665754030117 5ustar miguelmiguel././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fork-test/src/test/java/TestCompile1TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fork-test/src/test/java/TestCompile1TestC0000644000175000017500000000174011123544663033300 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-fork-test/src/main/0000755000175000017500000000000012475665754027143 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fork-test/src/main/java/0000755000175000017500000000000012475665754030064 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fork-test/src/main/java/TestCompile1.java0000644000175000017500000000163111123544663033221 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-fork-test/plugin-config.xml0000644000175000017500000000412112261262107030663 0ustar miguelmiguel 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-3.2/src/test/resources/unit/compiler-one-output-file-test/0000755000175000017500000000000012475665754027523 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/0000755000175000017500000000000012475665754030312 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/test/0000755000175000017500000000000012475665754031271 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/0000755000175000017500000000000012475665754032212 5ustar miguelmiguel././@LongLink0000644000000000000000000000017000000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCompile4TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCo0000644000175000017500000000174011123544663033320 0ustar miguelmiguel/* * 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(); } }././@LongLink0000644000000000000000000000017000000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCompile2TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCo0000644000175000017500000000174011123544663033320 0ustar miguelmiguel/* * 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(); } }././@LongLink0000644000000000000000000000017000000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCompile3TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCo0000644000175000017500000000174011123544663033320 0ustar miguelmiguel/* * 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(); } }maven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/main/0000755000175000017500000000000012475665754031236 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/0000755000175000017500000000000012475665754032157 5ustar miguelmiguel././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCompile3.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCo0000644000175000017500000000163111123544663033264 0ustar miguelmiguel/* * 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!" ); } }././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCompile4.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCo0000644000175000017500000000163111123544663033264 0ustar miguelmiguel/* * 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!" ); } }././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCompile2.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCo0000644000175000017500000000163111123544663033264 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-one-output-file-test/plugin-config.xml0000644000175000017500000000300310702764542032764 0ustar miguelmiguel 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-3.2/src/test/resources/unit/compiler-empty-source-test/0000755000175000017500000000000012475665754027123 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-empty-source-test/plugin-config.xml0000644000175000017500000000277210552574413032377 0ustar miguelmiguel 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-3.2/src/test/resources/unit/compiler-includes-excludes-test/0000755000175000017500000000000012475665754030107 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/0000755000175000017500000000000012475665754030676 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/0000755000175000017500000000000012475665754031655 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/0000755000175000017500000000000012475665754032576 5ustar miguelmiguel././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/TestCompile4TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/Test0000644000175000017500000000174011123544663033422 0ustar miguelmiguel/* * 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(); } }././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/TestCompile2TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/Test0000644000175000017500000000174011123544663033422 0ustar miguelmiguel/* * 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(); } }././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/TestCompile3TestCase.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/Test0000644000175000017500000000174011123544663033422 0ustar miguelmiguel/* * 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(); } }maven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/0000755000175000017500000000000012475665754031622 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/0000755000175000017500000000000012475665754032543 5ustar miguelmiguel././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/TestCompile3.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/Test0000644000175000017500000000163111123544663033366 0ustar miguelmiguel/* * 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!" ); } }././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/TestCompile4.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/Test0000644000175000017500000000163111123544663033366 0ustar miguelmiguel/* * 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!" ); } }././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/TestCompile2.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/Test0000644000175000017500000000163111123544663033366 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-includes-excludes-test/plugin-config.xml0000644000175000017500000000433210552574413033355 0ustar miguelmiguel 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-3.2/src/test/resources/unit/compiler-fail-test/0000755000175000017500000000000012475665754025402 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fail-test/src/0000755000175000017500000000000012475665754026171 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fail-test/src/test/0000755000175000017500000000000012475665754027150 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fail-test/src/test/java/0000755000175000017500000000000012475665754030071 5ustar miguelmiguel././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fail-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fail-test/src/test/java/TestCompile0Test.0000644000175000017500000000174011123544663033224 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-fail-test/src/main/0000755000175000017500000000000012475665754027115 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fail-test/src/main/java/0000755000175000017500000000000012475665754030036 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-fail-test/src/main/java/TestCompile0.java0000644000175000017500000000163111123544663033172 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-fail-test/plugin-config.xml0000644000175000017500000000272510702764542030655 0ustar miguelmiguel 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-3.2/src/test/resources/unit/compiler-basic-test/0000755000175000017500000000000012475665754025550 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-basic-test/src/0000755000175000017500000000000012475665754026337 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-basic-test/src/test/0000755000175000017500000000000012475665754027316 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-basic-test/src/test/java/0000755000175000017500000000000012475665754030237 5ustar miguelmiguel././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test0000644000175000017500000000174011123544663033314 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-basic-test/src/main/0000755000175000017500000000000012475665754027263 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-basic-test/src/main/java/0000755000175000017500000000000012475665754030204 5ustar miguelmiguel././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootmaven-compiler-plugin-3.2/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.javamaven-compiler-plugin-3.2/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.jav0000644000175000017500000000163111123544663033177 0ustar miguelmiguel/* * 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-3.2/src/test/resources/unit/compiler-basic-test/plugin-config.xml0000644000175000017500000000273010552574413031016 0ustar miguelmiguel 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-3.2/src/main/0000755000175000017500000000000012475665754016656 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/main/java/0000755000175000017500000000000012475665754017577 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/main/java/org/0000755000175000017500000000000012475665754020366 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/main/java/org/apache/0000755000175000017500000000000012475665754021607 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/main/java/org/apache/maven/0000755000175000017500000000000012475665754022715 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/0000755000175000017500000000000012475665754024213 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/CompilerMojo.java0000644000175000017500000000230012051247402027420 0ustar miguelmiguelpackage 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. */ /** * Compiles application sources * * @author Jason van Zyl * @version $Id: CompilerMojo.java 1409979 2012-11-15 20:22:26Z olamy $ * @since 2.0 * @deprecated package change since 3.0 */ @Deprecated public class CompilerMojo extends org.apache.maven.plugin.compiler.CompilerMojo { // no op only here for backward comp } maven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java0000644000175000017500000000276312051247402031121 0ustar miguelmiguelpackage 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. */ /** * 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 1409979 2012-11-15 20:22:26Z olamy $ * @since 2.0 * @deprecated package change since 3.0 */ @Deprecated public abstract class AbstractCompilerMojo extends org.apache.maven.plugin.compiler.AbstractCompilerMojo { // no op only here for backward comp } maven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/CompilationFailureException.java0000644000175000017500000000257512051247402032504 0ustar miguelmiguelpackage 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.CompilerMessage; import java.util.List; /** * @author Jason van Zyl * @version $Id: CompilationFailureException.java 1409979 2012-11-15 20:22:26Z olamy $ * @since 2.0 * @deprecated package change since 3.0 */ @SuppressWarnings ( "serial" ) @Deprecated public class CompilationFailureException extends org.apache.maven.plugin.compiler.CompilationFailureException { public CompilationFailureException( List messages ) { super( messages ); } } maven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/compiler/0000755000175000017500000000000012475665754026025 5ustar miguelmiguelmaven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java0000644000175000017500000001373112207167377031263 0ustar miguelmiguelpackage org.apache.maven.plugin.compiler; /* * 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.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.plugins.annotations.ResolutionScope; 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 1517906 2013-08-27 18:25:03Z krosenvold $ * @since 2.0 */ @org.apache.maven.plugins.annotations.Mojo( name = "compile", defaultPhase = LifecyclePhase.COMPILE, threadSafe = true, requiresDependencyResolution = ResolutionScope.COMPILE ) public class CompilerMojo extends AbstractCompilerMojo { /** * The source directories containing the sources to be compiled. */ @Parameter( defaultValue = "${project.compileSourceRoots}", readonly = true, required = true ) private List compileSourceRoots; /** * Project classpath. */ @Parameter( defaultValue = "${project.compileClasspathElements}", readonly = true, required = true ) private List classpathElements; /** * The directory for compiled classes. */ @Parameter( defaultValue = "${project.build.outputDirectory}", required = true, readonly = true ) private File outputDirectory; /** * Projects main artifact. * * @todo this is an export variable, really */ @Parameter( defaultValue = "${project.artifact}", readonly = true, required = true ) 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+ *

* * @since 2.2 */ @Parameter( defaultValue = "${project.build.directory}/generated-sources/annotations" ) private File generatedSourcesDirectory; /** * Set this to 'true' to bypass compilation of main sources. * Its use is NOT RECOMMENDED, but quite convenient on occasion. */ @Parameter ( property = "maven.main.skip" ) private boolean skipMain; protected List getCompileSourceRoots() { return compileSourceRoots; } protected List getClasspathElements() { return classpathElements; } protected File getOutputDirectory() { return outputDirectory; } public void execute() throws MojoExecutionException, CompilationFailureException { if ( skipMain ) { getLog().info( "Not compiling main sources" ); return; } super.execute(); if ( outputDirectory.isDirectory() ) { projectArtifact.setFile( outputDirectory ); } } protected SourceInclusionScanner getSourceInclusionScanner( int staleMillis ) { SourceInclusionScanner scanner; 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; // it's not defined if we get the ending with or without the dot '.' String defaultIncludePattern = "**/*" + ( inputFileEnding.startsWith( "." ) ? "" : "." ) + inputFileEnding; if ( includes.isEmpty() && excludes.isEmpty() ) { includes = Collections.singleton( defaultIncludePattern ); scanner = new SimpleSourceInclusionScanner( includes, Collections.emptySet() ); } else { if ( includes.isEmpty() ) { includes.add( defaultIncludePattern ); } 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-3.2/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java0000644000175000017500000013333012414207347032735 0ustar miguelmiguelpackage org.apache.maven.plugin.compiler; /* * 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.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecution; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugins.annotations.Component; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.project.MavenProject; import org.apache.maven.shared.incremental.IncrementalBuildHelper; import org.apache.maven.shared.incremental.IncrementalBuildHelperRequest; import org.apache.maven.shared.utils.ReaderFactory; import org.apache.maven.shared.utils.StringUtils; import org.apache.maven.shared.utils.io.FileUtils; 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.CompilerMessage; import org.codehaus.plexus.compiler.CompilerNotImplementedException; import org.codehaus.plexus.compiler.CompilerOutputStyle; import org.codehaus.plexus.compiler.CompilerResult; 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 java.io.File; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Date; 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 1629481 2014-10-05 09:27:03Z hboutemy $ * @since 2.0 */ public abstract class AbstractCompilerMojo extends AbstractMojo { // ---------------------------------------------------------------------- // Configurables // ---------------------------------------------------------------------- /** * Indicates whether the build will continue even if there are compilation errors. * * @since 2.0.2 */ @Parameter( property = "maven.compiler.failOnError", defaultValue = "true" ) private boolean failOnError = true; /** * Set to true to include debugging information in the compiled class files. */ @Parameter( property = "maven.compiler.debug", defaultValue = "true" ) private boolean debug = true; /** * Set to true to show messages about what the compiler is doing. */ @Parameter( property = "maven.compiler.verbose", defaultValue = "false" ) private boolean verbose; /** * Sets whether to show source locations where deprecated APIs are used. */ @Parameter( property = "maven.compiler.showDeprecation", defaultValue = "false" ) private boolean showDeprecation; /** * Set to true to optimize the compiled code using the compiler's optimization methods. */ @Parameter( property = "maven.compiler.optimize", defaultValue = "false" ) private boolean optimize; /** * Set to true to show compilation warnings. */ @Parameter( property = "maven.compiler.showWarnings", defaultValue = "false" ) private boolean showWarnings; /** * The -source argument for the Java compiler. */ @Parameter( property = "maven.compiler.source", defaultValue = "1.5" ) protected String source; /** * The -target argument for the Java compiler. */ @Parameter( property = "maven.compiler.target", defaultValue = "1.5" ) protected String target; /** * The -encoding argument for the Java compiler. * * @since 2.1 */ @Parameter( property = "encoding", defaultValue = "${project.build.sourceEncoding}" ) private String encoding; /** * Sets the granularity in milliseconds of the last modification * date for testing whether a source needs recompilation. */ @Parameter( property = "lastModGranularityMs", defaultValue = "0" ) private int staleMillis; /** * The compiler id of the compiler to use. See this * guide for more information. */ @Parameter( property = "maven.compiler.compilerId", defaultValue = "javac" ) private String compilerId; /** * Version of the compiler to use, ex. "1.3", "1.5", if {@link #fork} is set to true. */ @Parameter( property = "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( property = "maven.compiler.fork", defaultValue = "false" ) private boolean fork; /** * Initial size, in megabytes, of the memory allocation pool, ex. "64", "64m" * if {@link #fork} is set to true. * * @since 2.0.1 */ @Parameter( property = "maven.compiler.meminitial" ) private String meminitial; /** * Sets the maximum size, in megabytes, of the memory allocation pool, ex. "128", "128m" * if {@link #fork} is set to true. * * @since 2.0.1 */ @Parameter( property = "maven.compiler.maxmem" ) private String maxmem; /** * Sets the executable of the compiler to use when {@link #fork} is true. */ @Parameter( property = "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.
  • *
* * @since 2.2 */ @Parameter 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. *

* * @since 2.2 */ @Parameter 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>
     * 
* * @since 2.0.1 * @deprecated use {@link #compilerArgs} instead. */ @Parameter @Deprecated protected Map compilerArguments; /** *

* Sets the arguments to be passed to the compiler if {@link #fork} is set to true. * Example: *

     * <compilerArgs>
     *   <arg>-Xmaxerrs=1000</arg>
     *   <arg>-Xlint</arg>
     *   <arg>-J-Duser.language=en_us</arg>
     * </compilerArgs>
     * 
* * @since 3.1 */ @Parameter protected List compilerArgs; /** *

* 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. *

* expression="${project.build.finalName}" */ @Parameter 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. * * @since 2.1 */ @Parameter( property = "maven.compiler.debuglevel" ) private String debuglevel; /** * */ @Component private ToolchainManager toolchainManager; // ---------------------------------------------------------------------- // Read-only parameters // ---------------------------------------------------------------------- /** * The directory to run the compiler from if fork is true. */ @Parameter( defaultValue = "${basedir}", required = true, readonly = true ) private File basedir; /** * The target directory of the compiler if fork is true. */ @Parameter( defaultValue = "${project.build.directory}", required = true, readonly = true ) private File buildDirectory; /** * Plexus compiler manager. */ @Component private CompilerManager compilerManager; /** * The current build session instance. This is used for toolchain manager API calls. */ @Parameter( defaultValue = "${session}", readonly = true, required = true ) private MavenSession session; /** * The current project instance. This is used for propagating generated-sources paths as compile/testCompile source * roots. */ @Parameter( defaultValue = "${project}", readonly = true, required = true ) private MavenProject project; /** * 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. * * @since 2.5 */ @Parameter( defaultValue = "${reuseCreated}", property = "maven.compiler.compilerReuseStrategy" ) private String compilerReuseStrategy = "reuseCreated"; /** * @since 2.5 */ @Parameter( defaultValue = "false", property = "maven.compiler.skipMultiThreadWarning" ) private boolean skipMultiThreadWarning; /** * compiler can now use javax.tools if available in your current jdk, you can disable this feature * using -Dmaven.compiler.forceJavacCompilerUse=true or in the plugin configuration * * @since 3.0 */ @Parameter( defaultValue = "false", property = "maven.compiler.forceJavacCompilerUse" ) private boolean forceJavacCompilerUse; /** * @since 3.0 needed for storing the status for the incremental build support. */ @Parameter( property = "mojoExecution", readonly = true, required = true ) private MojoExecution mojoExecution; /** * file extensions to check timestamp for incremental build * default contains only .class * * @since 3.1 */ @Parameter private List fileExtensions; /** * to enable/disable incrementation compilation feature * @since 3.1 */ @Parameter( defaultValue = "true", property = "maven.compiler.useIncrementalCompilation" ) private boolean useIncrementalCompilation = true; 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.setOptimize( optimize ); compilerConfiguration.setDebug( debug ); if ( debug && StringUtils.isNotEmpty( debuglevel ) ) { String[] split = StringUtils.split( debuglevel, "," ); for ( String aSplit : split ) { if ( !( aSplit.equalsIgnoreCase( "none" ) || aSplit.equalsIgnoreCase( "lines" ) || aSplit.equalsIgnoreCase( "vars" ) || aSplit.equalsIgnoreCase( "source" ) ) ) { throw new IllegalArgumentException( "The specified debug level: '" + aSplit + "' 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 ); File generatedSourcesDirectory = getGeneratedSourcesDirectory(); compilerConfiguration.setGeneratedSourcesDirectory( generatedSourcesDirectory ); if ( generatedSourcesDirectory != null ) { String generatedSourcesPath = generatedSourcesDirectory.getAbsolutePath(); compileSourceRoots.add( generatedSourcesPath ); if ( isTestCompile() ) { getLog().debug( "Adding " + generatedSourcesPath + " to test-compile source roots:\n " + StringUtils.join( project.getTestCompileSourceRoots() .iterator(), "\n " ) ); project.addTestCompileSourceRoot( generatedSourcesPath ); getLog().debug( "New test-compile source roots:\n " + StringUtils.join( project.getTestCompileSourceRoots() .iterator(), "\n " ) ); } else { getLog().debug( "Adding " + generatedSourcesPath + " to compile source roots:\n " + StringUtils.join( project.getCompileSourceRoots() .iterator(), "\n " ) ); project.addCompileSourceRoot( generatedSourcesPath ); getLog().debug( "New compile source roots:\n " + StringUtils.join( project.getCompileSourceRoots() .iterator(), "\n " ) ); } } compilerConfiguration.setSourceLocations( compileSourceRoots ); compilerConfiguration.setAnnotationProcessors( annotationProcessors ); compilerConfiguration.setSourceEncoding( encoding ); Map effectiveCompilerArguments = getCompilerArguments(); String effectiveCompilerArgument = getCompilerArgument(); if ( ( effectiveCompilerArguments != null ) || ( effectiveCompilerArgument != null ) || ( compilerArgs != 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 ); } if ( compilerArgs != null ) { for ( String arg : compilerArgs ) { cplrArgsCopy.put( arg, 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 ) { getLog().warn( "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." + System.getProperty( "line.separator" ) + "If your env is fine with reuseSame, you can skip this warning with the " + "configuration field skipMultiThreadWarning " + "or -Dmaven.compiler.skipMultiThreadWarning=true" ); } } compilerConfiguration.setCompilerReuseStrategy( CompilerConfiguration.CompilerReuseStrategy.ReuseSame ); } else { compilerConfiguration.setCompilerReuseStrategy( CompilerConfiguration.CompilerReuseStrategy.ReuseCreated ); } getLog().debug( "CompilerReuseStrategy: " + compilerConfiguration.getCompilerReuseStrategy().getStrategy() ); compilerConfiguration.setForceJavacCompilerUse( forceJavacCompilerUse ); boolean canUpdateTarget; IncrementalBuildHelper incrementalBuildHelper = new IncrementalBuildHelper( mojoExecution, session ); Set sources; IncrementalBuildHelperRequest incrementalBuildHelperRequest = null; if ( useIncrementalCompilation ) { getLog().debug( "useIncrementalCompilation enabled" ); try { canUpdateTarget = compiler.canUpdateTarget( compilerConfiguration ); sources = getCompileSources( compiler, compilerConfiguration ); incrementalBuildHelperRequest = new IncrementalBuildHelperRequest().inputFiles( sources ); if ( ( compiler.getCompilerOutputStyle().equals( CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES ) && !canUpdateTarget ) || isDependencyChanged() || isSourceChanged( compilerConfiguration, compiler ) || incrementalBuildHelper.inputFileTreeChanged( incrementalBuildHelperRequest ) ) { getLog().info( "Changes detected - recompiling the module!" ); compilerConfiguration.setSourceFiles( sources ); } else { getLog().info( "Nothing to compile - all classes are up to date" ); return; } } catch ( CompilerException e ) { throw new MojoExecutionException( "Error while computing stale sources.", e ); } } else { getLog().debug( "useIncrementalCompilation disabled" ); Set staleSources; 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 ); 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!" ); } CompilerResult compilerResult; if ( useIncrementalCompilation ) { incrementalBuildHelperRequest.outputDirectory( getOutputDirectory() ); incrementalBuildHelper.beforeRebuildExecution( incrementalBuildHelperRequest ); getLog().debug( "incrementalBuildHelper#beforeRebuildExecution" ); } try { try { compilerResult = compiler.performCompile( compilerConfiguration ); } catch ( CompilerNotImplementedException cnie ) { List messages = compiler.compile( compilerConfiguration ); compilerResult = convertToCompilerResult( messages ); } } catch ( Exception e ) { // TODO: don't catch Exception throw new MojoExecutionException( "Fatal error compiling", e ); } if ( useIncrementalCompilation ) { if ( incrementalBuildHelperRequest.getOutputDirectory().exists() ) { getLog().debug( "incrementalBuildHelper#afterRebuildExecution" ); // now scan the same directory again and create a diff incrementalBuildHelper.afterRebuildExecution( incrementalBuildHelperRequest ); } else { getLog().debug( "skip incrementalBuildHelper#afterRebuildExecution as the output directory doesn't exist" ); } } List warnings = new ArrayList(); List errors = new ArrayList(); List others = new ArrayList(); for ( CompilerMessage message : compilerResult.getCompilerMessages() ) { if ( message.getKind() == CompilerMessage.Kind.ERROR ) { errors.add( message ); } else if ( message.getKind() == CompilerMessage.Kind.WARNING || message.getKind() == CompilerMessage.Kind.MANDATORY_WARNING ) { warnings.add( message ); } else { others.add( message ); } } if ( failOnError && !compilerResult.isSuccess() ) { for ( CompilerMessage message : others ) { assert message.getKind() != CompilerMessage.Kind.ERROR && message.getKind() != CompilerMessage.Kind.WARNING && message.getKind() != CompilerMessage.Kind.MANDATORY_WARNING; getLog().info( message.toString() ); } if ( !warnings.isEmpty() ) { getLog().info( "-------------------------------------------------------------" ); getLog().warn( "COMPILATION WARNING : " ); getLog().info( "-------------------------------------------------------------" ); for ( CompilerMessage warning : warnings ) { getLog().warn( warning.toString() ); } getLog().info( warnings.size() + ( ( warnings.size() > 1 ) ? " warnings " : " warning" ) ); getLog().info( "-------------------------------------------------------------" ); } if ( !errors.isEmpty() ) { getLog().info( "-------------------------------------------------------------" ); getLog().error( "COMPILATION ERROR : " ); getLog().info( "-------------------------------------------------------------" ); for ( CompilerMessage error : errors ) { getLog().error( error.toString() ); } getLog().info( errors.size() + ( ( errors.size() > 1 ) ? " errors " : " error" ) ); getLog().info( "-------------------------------------------------------------" ); } if ( !errors.isEmpty() ) { throw new CompilationFailureException( errors ); } else { throw new CompilationFailureException( warnings ); } } else { for ( CompilerMessage message : compilerResult.getCompilerMessages() ) { switch ( message.getKind() ) { case NOTE: case OTHER: getLog().info( message.toString() ); break; case ERROR: getLog().error( message.toString() ); break; case MANDATORY_WARNING: case WARNING: default: getLog().warn( message.toString() ); break; } } } } protected boolean isTestCompile() { return false; } protected CompilerResult convertToCompilerResult( List compilerErrors ) { if ( compilerErrors == null ) { return new CompilerResult(); } List messages = new ArrayList( compilerErrors.size() ); boolean success = true; for ( CompilerError compilerError : compilerErrors ) { messages.add( new CompilerMessage( compilerError.getFile(), compilerError.getKind(), compilerError.getStartLine(), compilerError.getStartColumn(), compilerError.getEndLine(), compilerError.getEndColumn(), compilerError.getMessage() ) ); if ( compilerError.isError() ) { success = false; } } return new CompilerResult( success, messages ); } /** * @return all source files for the compiler */ private Set getCompileSources( Compiler compiler, CompilerConfiguration compilerConfiguration ) throws MojoExecutionException, CompilerException { String inputFileEnding = compiler.getInputFileEnding( compilerConfiguration ); if ( StringUtils.isEmpty( inputFileEnding ) ) { // see MCOMPILER-199 GroovyEclipseCompiler doesn't set inputFileEnding // so we can presume it's all files from the source directory inputFileEnding = ".*"; } SourceInclusionScanner scanner = getSourceInclusionScanner( inputFileEnding ); SourceMapping mapping = getSourceMapping( compilerConfiguration, compiler ); scanner.addSourceMapping( mapping ); Set compileSources = new HashSet(); for ( String sourceRoot : getCompileSourceRoots() ) { File rootFile = new File( sourceRoot ); if ( !rootFile.isDirectory() ) { continue; } try { compileSources.addAll( scanner.getIncludedSources( rootFile, null ) ); } catch ( InclusionScanException e ) { throw new MojoExecutionException( "Error scanning source root: \'" + sourceRoot + "\' for stale files to recompile.", e ); } } return compileSources; } /** * @param compilerConfiguration * @param compiler * @return true if at least a single source file is newer than it's class file */ private boolean isSourceChanged( CompilerConfiguration compilerConfiguration, Compiler compiler ) throws CompilerException, MojoExecutionException { Set staleSources = computeStaleSources( compilerConfiguration, compiler, getSourceInclusionScanner( staleMillis ) ); if ( getLog().isDebugEnabled() ) { for ( File f : staleSources ) { getLog().debug( "Stale source detected: " + f.getAbsolutePath() ); } } return staleSources != null && staleSources.size() > 0; } /** * try to get thread count if a Maven 3 build, using reflection as the plugin must not be maven3 api dependent * * @return number of thread for this build or 1 if not multi-thread build */ protected int getRequestThreadCount() { try { Method getRequestMethod = 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; } protected Date getBuildStartTime() { try { Method getRequestMethod = session.getClass().getMethod( "getRequest" ); Object mavenExecutionRequest = getRequestMethod.invoke( session ); Method getStartTimeMethod = mavenExecutionRequest.getClass().getMethod( "getStartTime" ); Date buildStartTime = (Date) getStartTimeMethod.invoke( mavenExecutionRequest ); return buildStartTime; } catch ( Exception e ) { getLog().debug( "unable to get start time for the current build: " + e.getMessage() ); } return new Date(); } 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 { SourceMapping mapping = getSourceMapping( compilerConfiguration, compiler ); File outputDirectory; CompilerOutputStyle outputStyle = compiler.getCompilerOutputStyle(); if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES ) { outputDirectory = buildDirectory; } else { outputDirectory = getOutputDirectory(); } 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; } private SourceMapping getSourceMapping( CompilerConfiguration compilerConfiguration, Compiler compiler ) throws CompilerException, MojoExecutionException { CompilerOutputStyle outputStyle = compiler.getCompilerOutputStyle(); SourceMapping mapping; if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_PER_INPUT_FILE ) { mapping = new SuffixMapping( compiler.getInputFileEnding( compilerConfiguration ), compiler.getOutputFileEnding( compilerConfiguration ) ); } else if ( outputStyle == CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES ) { mapping = new SingleTargetSourceMapping( compiler.getInputFileEnding( compilerConfiguration ), compiler.getOutputFile( compilerConfiguration ) ); } else { throw new MojoExecutionException( "Unknown compiler output style: '" + outputStyle + "'." ); } return mapping; } /** * @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; } /** * We just compare the timestamps of all local dependency files (inter-module dependency classpath) * and the own generated classes * and if we got a file which is >= the buid-started timestamp, then we catched a file which got * changed during this build. * * @return true if at least one single dependency has changed. */ protected boolean isDependencyChanged() { if ( session == null ) { // we just cannot determine it, so don't do anything beside logging getLog().info( "Cannot determine build start date, skipping incremental build detection." ); return false; } if ( fileExtensions == null || fileExtensions.isEmpty() ) { fileExtensions = new ArrayList(); fileExtensions.add( ".class" ); } Date buildStartTime = getBuildStartTime(); for ( String classPathElement : getClasspathElements() ) { // ProjectArtifacts are artifacts which are available in the local project // that's the only ones we are interested in now. File artifactPath = new File( classPathElement ); if ( artifactPath.isDirectory() ) { if ( hasNewFile( artifactPath, buildStartTime ) ) { getLog().debug( "New dependency detected: " + artifactPath.getAbsolutePath() ); return true; } } } // obviously there was no new file detected. return false; } /** * @param classPathEntry entry to check * @param buildStartTime time build start * @return if any changes occurred */ private boolean hasNewFile( File classPathEntry, Date buildStartTime ) { if ( !classPathEntry.exists() ) { return false; } if ( classPathEntry.isFile() ) { return classPathEntry.lastModified() >= buildStartTime.getTime() && fileExtensions.contains( FileUtils.getExtension( classPathEntry.getName() ) ); } File[] children = classPathEntry.listFiles(); for ( File child : children ) { if ( hasNewFile( child, buildStartTime ) ) { return true; } } return false; } } ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException.javamaven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException0000644000175000017500000000467712051223462033403 0ustar miguelmiguelpackage org.apache.maven.plugin.compiler; /* * 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.MojoFailureException; import org.codehaus.plexus.compiler.CompilerMessage; import java.util.List; /** * @author Jason van Zyl * @version $Id: CompilationFailureException.java 1409891 2012-11-15 17:32:34Z 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 ( CompilerMessage 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 ) { StringBuilder sb = new StringBuilder(); sb.append( "Compilation failure" ); if ( messages.size() == 1 ) { sb.append( LS ); CompilerMessage compilerError = messages.get( 0 ); sb.append( compilerError ).append( LS ); } return sb.toString(); } } maven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java0000644000175000017500000001605712414207347032117 0ustar miguelmiguelpackage org.apache.maven.plugin.compiler; /* * 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.MojoExecutionException; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.plugins.annotations.ResolutionScope; 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 1629481 2014-10-05 09:27:03Z hboutemy $ * @since 2.0 */ @Mojo( name = "testCompile", defaultPhase = LifecyclePhase.TEST_COMPILE, threadSafe = true, requiresDependencyResolution = ResolutionScope.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 ( property = "maven.test.skip" ) private boolean skip; /** * The source directories containing the test-source to be compiled. */ @Parameter ( defaultValue = "${project.testCompileSourceRoots}", readonly = true, required = true ) private List compileSourceRoots; /** * Project test classpath. */ @Parameter ( defaultValue = "${project.testClasspathElements}", required = true, readonly = true ) private List classpathElements; /** * The directory where compiled test classes go. */ @Parameter ( defaultValue = "${project.build.testOutputDirectory}", required = true, readonly = true ) 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. * * @since 2.1 */ @Parameter ( property = "maven.compiler.testSource" ) private String testSource; /** * The -target argument for the test Java compiler. * * @since 2.1 */ @Parameter ( property = "maven.compiler.testTarget" ) 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. *

* * @since 2.1 */ @Parameter 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. *

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

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

* * @since 2.2 */ @Parameter ( defaultValue = "${project.build.directory}/generated-test-sources/test-annotations" ) 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; 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; // it's not defined if we get the ending with or without the dot '.' String defaultIncludePattern = "**/*" + ( inputFileEnding.startsWith( "." ) ? "" : "." ) + inputFileEnding; if ( testIncludes.isEmpty() && testExcludes.isEmpty() ) { testIncludes = Collections.singleton( defaultIncludePattern ); scanner = new SimpleSourceInclusionScanner( testIncludes, Collections.emptySet() ); } else { if ( testIncludes.isEmpty() ) { testIncludes.add( defaultIncludePattern ); } 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; } @Override protected boolean isTestCompile() { return true; } } maven-compiler-plugin-3.2/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java0000644000175000017500000000232112051247402030263 0ustar miguelmiguelpackage 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. */ /** * Compiles application test sources. * * @author Jason van Zyl * @version $Id: TestCompilerMojo.java 1409979 2012-11-15 20:22:26Z olamy $ * @since 2.0 * @deprecated package change since 3.0 */ @Deprecated public class TestCompilerMojo extends org.apache.maven.plugin.compiler.TestCompilerMojo { // no op only here for backward comp } maven-compiler-plugin-3.2/pom.xml0000644000175000017500000002663712415264255016457 0ustar miguelmiguel 4.0.0 org.apache.maven.plugins maven-plugins 25 ../maven-plugins/pom.xml maven-compiler-plugin 3.2 maven-plugin Apache 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-3.2 scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-compiler-plugin-3.2 http://svn.apache.org/viewvc/maven/plugins/tags/maven-compiler-plugin-3.2 JIRA http://jira.codehaus.org/browse/MCOMPILER apache.website scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.site.path} 2.0.9 3.2 2.4 1.8.0 2.7.0-01 2.0.4-04 2.2.0 Jan Sievers org.apache.maven.plugin-tools maven-plugin-annotations provided 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.apache.maven.shared maven-shared-utils 0.1 org.apache.maven.shared maven-shared-incremental 1.1 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.5.5 org.apache.maven.plugin-testing maven-plugin-testing-harness 2.0-alpha-1 test org.mockito mockito-core 1.9.5 test junit junit 4.8.1 test org.apache.rat apache-rat-plugin src/it/jdk16-annotation/src/main/resources/META-INF/services/javax.annotation.processing.Processor org.apache.maven.plugins maven-plugin-plugin ${mavenPluginPluginVersion} true mojo-descriptor process-classes descriptor maven-enforcer-plugin enforce-bytecode-version 1.5 org.apache.openjpa:openjpa org.codehaus.groovy:groovy-eclipse-batch run-its org.apache.maven.plugins maven-invoker-plugin integration-test 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-eclipse-batch ${groovy-eclipse-batch} test org.codehaus.groovy groovy-all ${groovyVersion} test org.apache.openjpa openjpa ${openJpaVersion} false plexus-snapshots Plexus Snapshot Repository https://oss.sonatype.org/content/repositories/plexus-snapshots