maven-compiler-plugin-3.6.2/0000775000175000017500000000000013151645377015302 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/pom.xml0000664000175000017500000002516613135750543016623 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins maven-plugins 30 ../../pom/maven/maven-plugins/pom.xml maven-compiler-plugin 3.6.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.6.2 scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-compiler-plugin-3.6.2 http://svn.apache.org/viewvc/maven/plugins/tags/maven-compiler-plugin-3.6.2 JIRA https://issues.apache.org/jira/browse/MCOMPILER apache.website scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/components/${maven.site.path} 3.0 3.5 2.8.2 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.shared maven-shared-utils 3.1.0 org.apache.maven.shared maven-shared-incremental 1.1 org.ow2.asm asm 6.0_ALPHA com.thoughtworks.qdox qdox 2.0-M6 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.apache.maven.plugin-testing maven-plugin-testing-harness 2.1 test org.apache.maven maven-compat ${mavenVersion} test org.mockito mockito-core 1.9.5 test junit junit 4.12 test org.apache.rat apache-rat-plugin .java-version maven-enforcer-plugin 1.4.1 enforce-bytecode-version 1.6 org.ow2.asm:asm org.apache.maven.plugins maven-plugin-plugin 3.5 org.codehaus.plexus plexus-component-metadata 1.7 descriptors generate-metadata maven-plugin-plugin 3.5 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 true plexus-snapshots Plexus Snapshot Repository https://oss.sonatype.org/content/repositories/plexus-snapshots maven-compiler-plugin-3.6.2/src/0000775000175000017500000000000013151645376016070 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/0000775000175000017500000000000013151645377016505 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-260_customArguments/0000775000175000017500000000000013151645377023621 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-260_customArguments/pom.xml0000664000175000017500000000374012775526203025137 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler260 1.0-SNAPSHOT https://issues.apache.org/jira/browse/MCOMPILER-260 UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 1.6 1.6 -Xmaxwarns 7 -Xmaxerrs 7 maven-compiler-plugin-3.6.2/src/it/MCOMPILER-260_customArguments/src/0000775000175000017500000000000013151645377024410 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-260_customArguments/src/main/0000775000175000017500000000000013151645377025334 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-260_customArguments/src/main/java/0000775000175000017500000000000013151645377026255 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-260_customArguments/src/main/java/com/0000775000175000017500000000000013151645377027033 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-260_customArguments/src/main/java/com/foo/0000775000175000017500000000000013151645377027616 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-260_customArguments/src/main/java/com/foo/MyClass.java0000664000175000017500000000156012775526203032033 0ustar ebourgebourgpackage com.foo; /* * 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.6.2/src/it/MCOMPILER-298/0000775000175000017500000000000013151645377020354 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/invoker.properties0000664000175000017500000000150513113154342024131 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.8+ invoker.goals = test maven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/pom.xml0000664000175000017500000000374313113154342021661 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler298 1.0-SNAPSHOT https://issues.apache.org/jira/browse/MCOMPILER-298 UTF-8 junit junit 4.12 test org.apache.maven.plugins maven-compiler-plugin @project.version@ 1.8 1.8 true maven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/0000775000175000017500000000000013151645377021143 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/main/0000775000175000017500000000000013151645377022067 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/main/java/0000775000175000017500000000000013151645377023010 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/main/java/com/0000775000175000017500000000000013151645377023566 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/main/java/com/foo/0000775000175000017500000000000013151645377024351 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/main/java/com/foo/ParameterClass.java0000664000175000017500000000165213113154342030107 0ustar ebourgebourgpackage com.foo; /* * 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 ParameterClass { public void method( String parameterName ) { // nothing } } maven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/test/0000775000175000017500000000000013151645377022122 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/test/java/0000775000175000017500000000000013151645377023043 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/test/java/com/0000775000175000017500000000000013151645377023621 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/test/java/com/foo/0000775000175000017500000000000013151645377024404 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-298/src/test/java/com/foo/ParameterTest.java0000664000175000017500000000213713113154342030013 0ustar ebourgebourgpackage com.foo; /* * 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.junit.Assert.*; import org.junit.Test; public class ParameterTest { @Test public void testParameter() throws Exception { assertEquals( "parameterName", ParameterClass.class.getMethod( "method", String.class ).getParameters()[0].getName() ); } } maven-compiler-plugin-3.6.2/src/it/default/0000775000175000017500000000000013151645377020131 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default/verify.bsh0000664000175000017500000000255712406122142022122 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import 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.6.2/src/it/default/pom.xml0000664000175000017500000000365712105262664021451 0ustar ebourgebourg 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.6.2/src/it/default/src/0000775000175000017500000000000013151645376020717 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default/src/main/0000775000175000017500000000000013151645376021643 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default/src/main/java/0000775000175000017500000000000013151645377022565 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default/src/main/java/MyClass.java0000664000175000017500000000150512406122142024762 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class MyClass { } maven-compiler-plugin-3.6.2/src/it/default/src/test/0000775000175000017500000000000013151645376021676 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default/src/test/java/0000775000175000017500000000000013151645377022620 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default/src/test/java/MyTest.java0000664000175000017500000000157312406122142024674 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class MyTest extends TestCase { } maven-compiler-plugin-3.6.2/src/it/setup_module-transitive/0000775000175000017500000000000013151645377023400 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_module-transitive/invoker.properties0000664000175000017500000000151013106375630027160 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.9+ invoker.goals = install maven-compiler-plugin-3.6.2/src/it/setup_module-transitive/pom.xml0000664000175000017500000000363213106375630024711 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it ta2-plus 1.0-SNAPSHOT UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 org.apache.maven.plugins.compiler.it ta2 1.0-SNAPSHOT maven-compiler-plugin-3.6.2/src/it/setup_module-transitive/src/0000775000175000017500000000000013151645377024167 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_module-transitive/src/main/0000775000175000017500000000000013151645377025113 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_module-transitive/src/main/java/0000775000175000017500000000000013151645377026034 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_module-transitive/src/main/java/com/0000775000175000017500000000000013151645377026612 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_module-transitive/src/main/java/com/ta2/0000775000175000017500000000000013151645377027300 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_module-transitive/src/main/java/com/ta2/plus/0000775000175000017500000000000013151645377030263 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_module-transitive/src/main/java/com/ta2/plus/MyClass.java0000664000175000017500000000156513106375630032500 0ustar ebourgebourgpackage com.ta2.plus; /* * 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.6.2/src/it/setup_module-transitive/src/main/java/module-info.java0000664000175000017500000000157113106375630031111 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module ta2.plus { exports com.ta2.plus; }maven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/0000775000175000017500000000000013151645377020346 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/0000775000175000017500000000000013151645377024535 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/pom.xml0000664000175000017500000000235212414207347026044 0ustar ebourgebourg 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-processor maven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/src/0000775000175000017500000000000013151645377025324 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/src/main/0000775000175000017500000000000013151645377026250 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/0000775000175000017500000000000013151645377027171 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/0000775000175000017500000000000013151645377027760 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/0000775000175000017500000000000013151645377031110 5ustar ebourgebourg././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/Simple0000664000175000017500000000526412414207347032263 0ustar ebourgebourgpackage 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(); } } ././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/SimpleAnnotation.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-processor/src/main/java/org/issue/Simple0000664000175000017500000000210412414207347032251 0ustar ebourgebourgpackage 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 { } maven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/invoker.properties0000664000175000017500000000153112415042723024125 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.6+ invoker.goals=clean process-test-classes maven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/pom.xml0000664000175000017500000000335212413607762021662 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-157/annotation-user/0000775000175000017500000000000013151645377023474 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/pom.xml0000664000175000017500000000506612414207347025010 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-157/annotation-user/src/0000775000175000017500000000000013151645377024263 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/main/0000775000175000017500000000000013151645377025207 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/main/java/0000775000175000017500000000000013151645377026130 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/main/java/org/0000775000175000017500000000000013151645377026717 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/0000775000175000017500000000000013151645377030047 5ustar ebourgebourg././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/SimpleObject.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/main/java/org/issue/SimpleObjec0000664000175000017500000000155612414207347032165 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-157/annotation-user/src/test/0000775000175000017500000000000013151645377025242 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/test/java/0000775000175000017500000000000013151645377026163 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/test/java/org/0000775000175000017500000000000013151645377026752 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/0000775000175000017500000000000013151645377030102 5ustar ebourgebourg././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/SimpleTestObject.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-user/src/test/java/org/issue/SimpleTestO0000664000175000017500000000156212414207347032231 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-157/annotation-verify/0000775000175000017500000000000013151645377024022 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-verify/pom.xml0000664000175000017500000001037512414207347025335 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-157/annotation-verify/src/0000775000175000017500000000000013151645377024611 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-verify/src/main/0000775000175000017500000000000013151645377025535 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/0000775000175000017500000000000013151645377026456 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/org/0000775000175000017500000000000013151645377027245 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/org/issue/0000775000175000017500000000000013151645377030375 5ustar ebourgebourg././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/org/issue/SourcePathReadGoal.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-157/annotation-verify/src/main/java/org/issue/SourcePat0000664000175000017500000000736612414207347032231 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-284/0000775000175000017500000000000013151645377020347 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/verify.bsh0000664000175000017500000000240113007163012022323 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.io.*; import java.util.*; File mainClass = new File( basedir, "target/classes/com/foo/MyClass.class" ); if ( mainClass.isFile() ) { System.out.println( "Main class is present but was skipped: " + mainClass ); return false; } File testClass = new File( basedir, "target/test-classes/com/foo/MyTest.class" ); if ( testClass.isFile() ) { System.out.println( "Test class is present but was skipped: " + testClass ); return false; } return true; maven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/pom.xml0000664000175000017500000000367613007163012021655 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler284 1.0-SNAPSHOT https://issues.apache.org/jira/browse/MCOMPILER-284 UTF-8 junit junit 3.8.2 test org.apache.maven.plugins maven-compiler-plugin @project.version@ true true maven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/0000775000175000017500000000000013151645377021136 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/main/0000775000175000017500000000000013151645377022062 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/main/java/0000775000175000017500000000000013151645377023003 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/main/java/com/0000775000175000017500000000000013151645377023561 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/main/java/com/foo/0000775000175000017500000000000013151645377024344 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/main/java/com/foo/MyClass.java0000664000175000017500000000152713007163012026544 0ustar ebourgebourgpackage com.foo; /* * 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.6.2/src/it/MCOMPILER-284/src/test/0000775000175000017500000000000013151645377022115 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/test/java/0000775000175000017500000000000013151645377023036 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/test/java/com/0000775000175000017500000000000013151645377023614 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/test/java/com/foo/0000775000175000017500000000000013151645377024377 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-284/src/test/java/com/foo/MyTest.java0000664000175000017500000000167113007163012026451 0ustar ebourgebourgpackage com.foo; /* * 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 { private MyClass myClass = new MyClass(); } maven-compiler-plugin-3.6.2/src/it/test1/0000775000175000017500000000000013151645377017545 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/test1/pom.xml0000664000175000017500000000352212051250763021051 0ustar ebourgebourg 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.6.2/src/it/test1/src/0000775000175000017500000000000013151645377020334 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/test1/src/main/0000775000175000017500000000000013151645377021260 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/test1/src/main/java/0000775000175000017500000000000013151645377022201 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/test1/src/main/java/MyClass.java0000664000175000017500000000150512406122142024376 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class MyClass { } maven-compiler-plugin-3.6.2/src/it/MCOMPILER-228/0000775000175000017500000000000013151645377020345 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-228/invoker.properties0000664000175000017500000000157112414566015024134 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # https://bugs.openjdk.java.net/browse/JDK-8051958 invoker.java.version = 1.8.0_40+maven-compiler-plugin-3.6.2/src/it/MCOMPILER-228/pom.xml0000664000175000017500000000320713023107250021641 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.its mcompiler228 1.0-SNAPSHOT https://issues.apache.org/jira/browse/MCOMPILER-228 org.apache.maven.plugins maven-compiler-plugin @project.version@ 1.8 1.8 maven-compiler-plugin-3.6.2/src/it/MCOMPILER-228/src/0000775000175000017500000000000013151645377021134 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-228/src/main/0000775000175000017500000000000013151645377022060 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-228/src/main/java/0000775000175000017500000000000013151645377023001 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-228/src/main/java/example/0000775000175000017500000000000013151645377024434 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-228/src/main/java/example/FinalExample.java0000664000175000017500000000266212414566015027642 0ustar ebourgebourgpackage 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.6.2/src/it/setup_jar_classic/0000775000175000017500000000000013151645377022202 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_classic/invoker.properties0000664000175000017500000000151013106375630025762 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.9+ invoker.goals = install maven-compiler-plugin-3.6.2/src/it/setup_jar_classic/pom.xml0000664000175000017500000000327513106375630023516 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it ta2 1.0-SNAPSHOT UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 maven-compiler-plugin-3.6.2/src/it/setup_jar_classic/src/0000775000175000017500000000000013151645377022771 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_classic/src/main/0000775000175000017500000000000013151645377023715 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_classic/src/main/java/0000775000175000017500000000000013151645377024636 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_classic/src/main/java/com/0000775000175000017500000000000013151645377025414 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_classic/src/main/java/com/ta2/0000775000175000017500000000000013151645377026102 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_classic/src/main/java/com/ta2/MyClass.java0000664000175000017500000000156013106375630030312 0ustar ebourgebourgpackage com.ta2; /* * 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.6.2/src/it/mcompiler-21_methodname-change/0000775000175000017500000000000013151645377024340 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-21_methodname-change/invoker.properties0000664000175000017500000000165012406122142030113 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. 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.6.2/src/it/mcompiler-21_methodname-change/verify.groovy0000664000175000017500000000172112021437203027072 0ustar ebourgebourg /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'COMPILATION ERROR :' ) maven-compiler-plugin-3.6.2/src/it/mcompiler-21_methodname-change/pom.xml0000664000175000017500000000470112406122142025635 0ustar ebourgebourg 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.6.2/src/it/mcompiler-21_methodname-change/src/0000775000175000017500000000000013151645377025127 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-21_methodname-change/src/main/0000775000175000017500000000000013151645377026053 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-21_methodname-change/src/main/java/0000775000175000017500000000000013151645377026774 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-21_methodname-change/src/main/java/BeanA.java0000664000175000017500000000173412406122142030570 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * 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.6.2/src/it/mcompiler-21_methodname-change/src/main/java/BeanA2.java0000664000175000017500000000200212406122142030637 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * 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.6.2/src/it/MCOMPILER-270_release/0000775000175000017500000000000013151645377022042 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/invoker.properties0000664000175000017500000000146012752676401025634 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.9+ maven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/verify.groovy0000664000175000017500000000170412772024455024613 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def log = new File( basedir, 'build.log').text assert log.count( " --release" ) == 2 assert !( log =~ /\s-source\s/ ) assert !( log =~ /\s-target\s/ ) maven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/pom.xml0000664000175000017500000000367412752676401023367 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler270 1.0-SNAPSHOT https://issues.apache.org/jira/browse/MCOMPILER-270 UTF-8 junit junit 3.8.2 org.apache.maven.plugins maven-compiler-plugin @project.version@ 6 maven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/src/0000775000175000017500000000000013151645377022631 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/src/main/0000775000175000017500000000000013151645377023555 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/src/main/java/0000775000175000017500000000000013151645377024476 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/src/main/java/MyClass.java0000664000175000017500000000153412752676401026715 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class MyClass { } maven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/src/test/0000775000175000017500000000000013151645377023610 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/src/test/java/0000775000175000017500000000000013151645377024531 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-270_release/src/test/java/MyTest.java0000664000175000017500000000162512752676401026623 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class MyTest extends TestCase { } maven-compiler-plugin-3.6.2/src/it/MCOMPILER-192/0000775000175000017500000000000013151645377020345 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-192/invoker.properties0000664000175000017500000000152012406122142024114 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.goals = clean compile invoker.buildResult = failure maven-compiler-plugin-3.6.2/src/it/MCOMPILER-192/verify.groovy0000664000175000017500000000171412064565702023116 0ustar ebourgebourg /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'Usage: javac ' ) maven-compiler-plugin-3.6.2/src/it/MCOMPILER-192/pom.xml0000664000175000017500000000304712064565717021667 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-192/src/0000775000175000017500000000000013151645377021134 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-192/src/main/0000775000175000017500000000000013151645377022060 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-192/src/main/java/0000775000175000017500000000000013151645377023001 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-192/src/main/java/dummy/0000775000175000017500000000000013151645377024134 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-192/src/main/java/dummy/license.txt0000664000175000017500000000146312064565717026324 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ It's minemaven-compiler-plugin-3.6.2/src/it/MCOMPILER-192/src/main/java/dummy/HelloWorld.java0000664000175000017500000000166012064565717027056 0ustar ebourgebourgpackage 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.6.2/src/it/groovy-project-with-new-plexus-compiler/0000775000175000017500000000000013151645377026364 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/verify.groovy0000664000175000017500000000213712100052701031112 0ustar ebourgebourg /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ 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.6.2/src/it/groovy-project-with-new-plexus-compiler/pom.xml0000775000175000017500000000620013023107250027657 0ustar ebourgebourg 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.6.2/src/it/groovy-project-with-new-plexus-compiler/src/0000775000175000017500000000000013151645377027153 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/main/0000775000175000017500000000000013151645377030077 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/main/java/0000775000175000017500000000000013151645377031020 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/0000775000175000017500000000000013151645377031424 5ustar ebourgebourg././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/Helloable.groovymaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/Helloable0000775000175000017500000000152412406122142033221 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ interface Helloable { void sayHello() } ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyMain.groovymaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyMai0000775000175000017500000000160612406122142033247 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ class GroovyMain { static void main(String... args) { new GroovyHello().sayHello() } } ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyHello.groovymaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/main/groovy/GroovyHel0000775000175000017500000000162212406122142033247 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ class GroovyHello implements Helloable { void sayHello() { println("Hello World from Groovy!") } } maven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/test/0000775000175000017500000000000013151645377030132 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/test/java/0000775000175000017500000000000013151645377031053 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/test/groovy/0000775000175000017500000000000013151645377031457 5ustar ebourgebourg././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/test/groovy/GroovyTest.groovymaven-compiler-plugin-3.6.2/src/it/groovy-project-with-new-plexus-compiler/src/test/groovy/GroovyTes0000775000175000017500000000167712406122142033337 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.junit.Test import org.junit.Assert class GroovyTest { @Test void testMethod() { GroovyMain.main null Assert.assertTrue true } } maven-compiler-plugin-3.6.2/src/it/mcompiler-120/0000775000175000017500000000000013151645377020774 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-120/invoker.properties0000664000175000017500000000155412406122142024552 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.goals = clean compile invoker.buildResult = failure invoker.java.version = 1.6+ maven-compiler-plugin-3.6.2/src/it/mcompiler-120/verify.groovy0000664000175000017500000000215512465471175023552 0ustar ebourgebourg /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'Compilation failure' ) assert !content.contains( 'invalid flag' ) assert content.contains( 'unchecked call to add(E) as a member of the raw type ' ) // List or java.util.List maven-compiler-plugin-3.6.2/src/it/mcompiler-120/pom.xml0000664000175000017500000000421212463522302022273 0ustar ebourgebourg 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 true true true true true -Werror -Xlint:all,-options,-path true maven-compiler-plugin-3.6.2/src/it/mcompiler-120/src/0000775000175000017500000000000013151645376021562 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-120/src/main/0000775000175000017500000000000013151645376022506 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-120/src/main/java/0000775000175000017500000000000013151645376023427 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-120/src/main/java/org/0000775000175000017500000000000013151645376024216 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-120/src/main/java/org/maven/0000775000175000017500000000000013151645376025324 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-120/src/main/java/org/maven/test/0000775000175000017500000000000013151645377026304 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-120/src/main/java/org/maven/test/Main.java0000664000175000017500000000204612406122142030013 0ustar ebourgebourgpackage 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.6.2/src/it/mcompiler-135/0000775000175000017500000000000013151645377021002 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-135/invoker.properties0000664000175000017500000000151612406122142024556 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.goals = clean compile invoker.java.version = 1.6+ maven-compiler-plugin-3.6.2/src/it/mcompiler-135/pom.xml0000664000175000017500000000325212406122142022277 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-135 1.0-SNAPSHOT org.apache.maven.plugins maven-compiler-plugin @project.version@ true 1.6 1.6 true src/main/webapp maven-compiler-plugin-3.6.2/src/it/mcompiler-135/src/0000775000175000017500000000000013151645377021571 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-135/src/main/0000775000175000017500000000000013151645377022515 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-135/src/main/java/0000775000175000017500000000000013151645377023436 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-135/src/main/java/MyClass.java0000664000175000017500000000150512406122142025633 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class MyClass { } maven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/0000775000175000017500000000000013151645377024517 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/invoker.properties0000664000175000017500000000145613106375630030310 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 9+ maven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/verify.groovy0000664000175000017500000000200113106375630027253 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ buildLog = new File( basedir, 'build.log' ).text; assert buildLog.contains("[WARNING] * Required automodules detected. Please don't publish this project to a public artifact repository! *"); maven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/pom.xml0000664000175000017500000000371713106375630026034 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it automodules 1.0-SNAPSHOT UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 org.codehaus.plexus plexus-utils 2.0.4 maven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/src/0000775000175000017500000000000013151645377025306 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/src/main/0000775000175000017500000000000013151645377026232 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/src/main/java/0000775000175000017500000000000013151645377027153 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/src/main/java/org/0000775000175000017500000000000013151645377027742 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/src/main/java/org/maven/0000775000175000017500000000000013151645377031050 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/src/main/java/org/maven/test/0000775000175000017500000000000013151645377032027 5ustar ebourgebourg././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/src/main/java/org/maven/test/Main.javamaven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/src/main/java/org/maven/test/Main.j0000664000175000017500000000210013106375630033047 0ustar ebourgebourgpackage 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 org.codehaus.plexus.util.StringUtils; public class Main { /** * @param args */ public static void main(String[] args) { System.out.println( StringUtils.concatenate( args ) ); } }maven-compiler-plugin-3.6.2/src/it/automodules-transitive-module/src/main/java/module-info.java0000664000175000017500000000161413106375630032226 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module lib { requires plexus.utils; exports org.maven.test; }maven-compiler-plugin-3.6.2/src/it/non-english-warnings/0000775000175000017500000000000013151645377022554 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/non-english-warnings/invoker.properties0000664000175000017500000000164512406122142026333 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # 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.6.2/src/it/non-english-warnings/verify.bsh0000664000175000017500000000233312406122142024535 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import 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.6.2/src/it/non-english-warnings/pom.xml0000664000175000017500000000406012445277105024064 0ustar ebourgebourg 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 true true maven-compiler-plugin-3.6.2/src/it/non-english-warnings/src/0000775000175000017500000000000013151645377023343 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/non-english-warnings/src/main/0000775000175000017500000000000013151645377024267 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/non-english-warnings/src/main/java/0000775000175000017500000000000013151645377025210 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/non-english-warnings/src/main/java/MyClass.java0000664000175000017500000000200712406122142027403 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class 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.6.2/src/it/non-english-warnings/src/test/0000775000175000017500000000000013151645377024322 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/non-english-warnings/src/test/java/0000775000175000017500000000000013151645377025243 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/non-english-warnings/src/test/java/MyTest.java0000664000175000017500000000200612406122142027307 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class 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.6.2/src/it/mcompiler-182/0000775000175000017500000000000013151645377021004 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-182/invoker.properties0000664000175000017500000000165012406122142024557 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. 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.6.2/src/it/mcompiler-182/verify.groovy0000664000175000017500000000203012032630652023535 0ustar ebourgebourg /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ 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.6.2/src/it/mcompiler-182/pom.xml0000664000175000017500000000460412406122142022303 0ustar ebourgebourg 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.6.2/src/it/mcompiler-182/src/0000775000175000017500000000000013151645377021573 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-182/src/main/0000775000175000017500000000000013151645377022517 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-182/src/main/java/0000775000175000017500000000000013151645377023440 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-182/src/main/java/BeanA.java0000664000175000017500000000173412406122142025234 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * 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.6.2/src/it/mcompiler-182/src/main/java/BeanA2.java0000664000175000017500000000200212406122142025303 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * 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.6.2/src/it/MCOMPILER-129/0000775000175000017500000000000013151645377020345 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-129/invoker.properties0000664000175000017500000000150012261353370024122 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.goals = clean compilemaven-compiler-plugin-3.6.2/src/it/MCOMPILER-129/pom.xml0000664000175000017500000000354112445277105021660 0ustar ebourgebourg 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 -J-Duser.language=en_us maven-compiler-plugin-3.6.2/src/it/MCOMPILER-129/src/0000775000175000017500000000000013151645377021134 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-129/src/main/0000775000175000017500000000000013151645377022060 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-129/src/main/java/0000775000175000017500000000000013151645377023001 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-129/src/main/java/MyClass.java0000664000175000017500000000153212261353370025206 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class MyClass { } maven-compiler-plugin-3.6.2/src/it/extras/0000775000175000017500000000000013151645377020013 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/0000775000175000017500000000000013151645377022466 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/0000775000175000017500000000000013151645377023255 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/0000775000175000017500000000000013151645377024201 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/extras/0000775000175000017500000000000013151645377025507 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/extras/org/0000775000175000017500000000000013151645377026276 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/extras/org/apache/0000775000175000017500000000000013151645377027517 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/extras/org/apache/maven/0000775000175000017500000000000013151645377030625 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/extras/org/apache/maven/it0055/0000775000175000017500000000000013151645377031553 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/java/0000775000175000017500000000000013151645377025122 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/java/org/0000775000175000017500000000000013151645377025711 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/java/org/apache/0000775000175000017500000000000013151645377027132 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/java/org/apache/maven/0000775000175000017500000000000013151645377030240 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/main/java/org/apache/maven/it0055/0000775000175000017500000000000013151645377031166 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/0000775000175000017500000000000013151645377024234 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/extras/0000775000175000017500000000000013151645377025542 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/extras/org/0000775000175000017500000000000013151645377026331 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/extras/org/apache/0000775000175000017500000000000013151645377027552 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/extras/org/apache/maven/0000775000175000017500000000000013151645377030660 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/extras/org/apache/maven/it0055/0000775000175000017500000000000013151645377031606 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/java/0000775000175000017500000000000013151645377025155 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/java/org/0000775000175000017500000000000013151645377025744 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/java/org/apache/0000775000175000017500000000000013151645377027165 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/java/org/apache/maven/0000775000175000017500000000000013151645377030273 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/without-copy/src/test/java/org/apache/maven/it0055/0000775000175000017500000000000013151645377031221 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/0000775000175000017500000000000013151645377021736 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/0000775000175000017500000000000013151645377022525 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/0000775000175000017500000000000013151645377023451 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/extras/0000775000175000017500000000000013151645377024757 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/extras/org/0000775000175000017500000000000013151645377025546 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/extras/org/apache/0000775000175000017500000000000013151645377026767 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/extras/org/apache/maven/0000775000175000017500000000000013151645377030075 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/extras/org/apache/maven/it0055/0000775000175000017500000000000013151645377031023 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/java/0000775000175000017500000000000013151645377024372 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/java/org/0000775000175000017500000000000013151645377025161 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/java/org/apache/0000775000175000017500000000000013151645377026402 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/java/org/apache/maven/0000775000175000017500000000000013151645377027510 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/main/java/org/apache/maven/it0055/0000775000175000017500000000000013151645377030436 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/0000775000175000017500000000000013151645377023504 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/extras/0000775000175000017500000000000013151645377025012 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/extras/org/0000775000175000017500000000000013151645377025601 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/extras/org/apache/0000775000175000017500000000000013151645377027022 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/extras/org/apache/maven/0000775000175000017500000000000013151645377030130 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/extras/org/apache/maven/it0055/0000775000175000017500000000000013151645377031056 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/java/0000775000175000017500000000000013151645377024425 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/java/org/0000775000175000017500000000000013151645377025214 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/java/org/apache/0000775000175000017500000000000013151645377026435 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/java/org/apache/maven/0000775000175000017500000000000013151645377027543 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/extras/with-copy/src/test/java/org/apache/maven/it0055/0000775000175000017500000000000013151645377030471 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_module/0000775000175000017500000000000013151645377022046 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_module/invoker.properties0000664000175000017500000000151013106375630025626 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.9+ invoker.goals = install maven-compiler-plugin-3.6.2/src/it/setup_jar_module/pom.xml0000664000175000017500000000327513106375630023362 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it ta2 2.0-SNAPSHOT UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 maven-compiler-plugin-3.6.2/src/it/setup_jar_module/src/0000775000175000017500000000000013151645377022635 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_module/src/main/0000775000175000017500000000000013151645377023561 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_module/src/main/java/0000775000175000017500000000000013151645377024502 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_module/src/main/java/com/0000775000175000017500000000000013151645377025260 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_module/src/main/java/com/ta2/0000775000175000017500000000000013151645377025746 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_module/src/main/java/com/ta2/MyClass.java0000664000175000017500000000156013106375630030156 0ustar ebourgebourgpackage com.ta2; /* * 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.6.2/src/it/setup_jar_module/src/main/java/module-info.java0000664000175000017500000000155713106375630027563 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module ta2 { exports com.ta2; }maven-compiler-plugin-3.6.2/src/it/error-prone-compiler/0000775000175000017500000000000013151645377022567 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/error-prone-compiler/invoker.properties0000664000175000017500000000155413113607506026355 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.8+ invoker.goals = clean compile invoker.buildResult = failure maven-compiler-plugin-3.6.2/src/it/error-prone-compiler/verify.groovy0000664000175000017500000000200612463656711025337 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'Compilation failure' ) assert content.contains( '[DeadException] Exception created but not thrown' ) maven-compiler-plugin-3.6.2/src/it/error-prone-compiler/pom.xml0000664000175000017500000000466212214047155024101 0ustar ebourgebourg 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.6.2/src/it/error-prone-compiler/src/0000775000175000017500000000000013151645377023356 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/error-prone-compiler/src/main/0000775000175000017500000000000013151645377024302 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/error-prone-compiler/src/main/java/0000775000175000017500000000000013151645377025223 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/error-prone-compiler/src/main/java/MyClass.java0000664000175000017500000000166312463656711027446 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class MyClass { public static void main(String[] args) { // error: dead exception new Exception(); } } maven-compiler-plugin-3.6.2/src/it/error-prone-compiler/src/test/0000775000175000017500000000000013151645377024335 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/error-prone-compiler/src/test/java/0000775000175000017500000000000013151645377025256 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/error-prone-compiler/src/test/java/MyTest.java0000664000175000017500000000204012406122142027320 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; 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.6.2/src/it/automodules-library/0000775000175000017500000000000013151645377022510 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-library/invoker.properties0000664000175000017500000000145613106375630026301 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 9+ maven-compiler-plugin-3.6.2/src/it/automodules-library/verify.groovy0000664000175000017500000000200113075470363025250 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ buildLog = new File( basedir, 'build.log' ).text; assert buildLog.contains("[WARNING] * Required automodules detected. Please don't publish this project to a public artifact repository! *"); maven-compiler-plugin-3.6.2/src/it/automodules-library/pom.xml0000664000175000017500000000371713075470363024031 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it automodules 1.0-SNAPSHOT UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 org.codehaus.plexus plexus-utils 2.0.4 maven-compiler-plugin-3.6.2/src/it/automodules-library/src/0000775000175000017500000000000013151645377023277 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-library/src/main/0000775000175000017500000000000013151645377024223 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-library/src/main/java/0000775000175000017500000000000013151645377025144 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-library/src/main/java/org/0000775000175000017500000000000013151645377025733 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-library/src/main/java/org/maven/0000775000175000017500000000000013151645377027041 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-library/src/main/java/org/maven/test/0000775000175000017500000000000013151645377030020 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-library/src/main/java/org/maven/test/Main.java0000664000175000017500000000210013106375630031530 0ustar ebourgebourgpackage 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 org.codehaus.plexus.util.StringUtils; public class Main { /** * @param args */ public static void main(String[] args) { System.out.println( StringUtils.concatenate( args ) ); } }maven-compiler-plugin-3.6.2/src/it/automodules-library/src/main/java/module-info.java0000664000175000017500000000161413075470363030223 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module lib { requires plexus.utils; exports org.maven.test; }maven-compiler-plugin-3.6.2/src/it/jdk16-annotation/0000775000175000017500000000000013151645377021574 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/invoker.properties0000664000175000017500000000166612406122142025356 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # 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.6.2/src/it/jdk16-annotation/verify.bsh0000664000175000017500000000260012406122142023552 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import 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.6.2/src/it/jdk16-annotation/pom.xml0000664000175000017500000000371312406122142023073 0ustar ebourgebourg 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.6.2/src/it/jdk16-annotation/src/0000775000175000017500000000000013151645377022363 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/0000775000175000017500000000000013151645377023307 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/0000775000175000017500000000000013151645377024230 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/com/0000775000175000017500000000000013151645377025006 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/com/mycompany/0000775000175000017500000000000013151645377027022 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/0000775000175000017500000000000013151645377032034 5ustar ebourgebourg././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProvider.javamaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/Serv0000664000175000017500000000227712406122142032664 0ustar ebourgebourgpackage 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 ""; } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/ServiceProviderProcessor.javamaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/Serv0000664000175000017500000000612112406122142032654 0ustar ebourgebourgpackage 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()); } } } ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.javamaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/java/com/mycompany/jdk16annotation/App.0000664000175000017500000000175412406122142032542 0ustar ebourgebourgpackage 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.6.2/src/it/jdk16-annotation/src/main/resources/0000775000175000017500000000000013151645377025321 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/resources/META-INF/0000775000175000017500000000000013151645377026461 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/resources/META-INF/services/0000775000175000017500000000000013151645377030304 5ustar ebourgebourg././@LongLink0000644000000000000000000000017700000000000011610 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/resources/META-INF/services/javax.annotation.processing.Processormaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/main/resources/META-INF/services/javax.annot0000664000175000017500000000151112643777747032470 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. com.mycompany.jdk16annotation.ServiceProviderProcessor maven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/test/0000775000175000017500000000000013151645377023342 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/test/java/0000775000175000017500000000000013151645377024263 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/test/java/com/0000775000175000017500000000000013151645377025041 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/test/java/com/mycompany/0000775000175000017500000000000013151645377027055 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/0000775000175000017500000000000013151645377032067 5ustar ebourgebourg././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.javamaven-compiler-plugin-3.6.2/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppT0000664000175000017500000000277112406122142032643 0ustar ebourgebourgpackage 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.6.2/src/it/includes-excludes/0000775000175000017500000000000013151645377022125 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/verify.bsh0000664000175000017500000000415412406122142024111 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import 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.6.2/src/it/includes-excludes/pom.xml0000664000175000017500000000351212051250763023430 0ustar ebourgebourg 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.6.2/src/it/includes-excludes/src/0000775000175000017500000000000013151645377022714 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/0000775000175000017500000000000013151645377023640 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/java/0000775000175000017500000000000013151645377024561 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/java/org/0000775000175000017500000000000013151645377025350 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/java/org/apache/0000775000175000017500000000000013151645377026571 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/java/org/apache/maven/0000775000175000017500000000000013151645377027677 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/0000775000175000017500000000000013151645377030625 5ustar ebourgebourg././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.javamaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo0000664000175000017500000000202612406122142032466 0ustar ebourgebourgpackage 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; } } ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.javamaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.ja0000664000175000017500000000202312406122142032362 0ustar ebourgebourgpackage 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; } } maven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/0000775000175000017500000000000013151645377023673 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/java/0000775000175000017500000000000013151645377024614 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/java/org/0000775000175000017500000000000013151645377025403 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/java/org/apache/0000775000175000017500000000000013151645377026624 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/java/org/apache/maven/0000775000175000017500000000000013151645377027732 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/0000775000175000017500000000000013151645377030660 5ustar ebourgebourg././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.javamaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwo0000664000175000017500000000212712406122142032523 0ustar ebourgebourgpackage 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() ); } } ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.javamaven-compiler-plugin-3.6.2/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTes0000664000175000017500000000212412406122142032502 0ustar ebourgebourgpackage 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() ); } } maven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/0000775000175000017500000000000013151645377020341 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/0000775000175000017500000000000013151645377024530 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/pom.xml0000664000175000017500000000235612406122142026031 0ustar ebourgebourg 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-processor maven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/src/0000775000175000017500000000000013151645377025317 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/src/main/0000775000175000017500000000000013151645377026243 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/0000775000175000017500000000000013151645377027164 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/0000775000175000017500000000000013151645377027753 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/0000775000175000017500000000000013151645377031103 5ustar ebourgebourg././@LongLink0000644000000000000000000000020300000000000011576 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224AnnotationProcessor.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompi0000664000175000017500000000402412406122142032170 0ustar ebourgebourgpackage 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; } } ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompiler224.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-processor/src/main/java/org/issue/MCompi0000664000175000017500000000154412406122142032174 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-224/invoker.properties0000664000175000017500000000165512413340477024134 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. 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.6.2/src/it/MCOMPILER-224/verify.groovy0000664000175000017500000000324112413602750023100 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ 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.6.2/src/it/MCOMPILER-224/pom.xml0000664000175000017500000000311412406122142021633 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-224/annotation-user/0000775000175000017500000000000013151645377023467 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-user/pom.xml0000664000175000017500000000426012406122142024764 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-224/annotation-user/src/0000775000175000017500000000000013151645377024256 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-user/src/main/0000775000175000017500000000000013151645377025202 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-user/src/main/java/0000775000175000017500000000000013151645377026123 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/0000775000175000017500000000000013151645377026712 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/0000775000175000017500000000000013151645377030042 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/0000775000175000017500000000000013151645377031020 5ustar ebourgebourg././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/User.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-224/annotation-user/src/main/java/org/issue/user/User.j0000664000175000017500000000161212406122142032067 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-190/0000775000175000017500000000000013151645377020343 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-190/invoker.properties0000664000175000017500000000152012406122142024112 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.goals = clean compile invoker.buildResult = failure maven-compiler-plugin-3.6.2/src/it/MCOMPILER-190/pom.xml0000664000175000017500000000363512406122142021645 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-190/src/0000775000175000017500000000000013151645377021132 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-190/src/main/0000775000175000017500000000000013151645377022056 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-190/src/main/java/0000775000175000017500000000000013151645377022777 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-190/src/main/java/org/0000775000175000017500000000000013151645377023566 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-190/src/main/java/org/example/0000775000175000017500000000000013151645377025221 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-190/src/main/java/org/example/pce/0000775000175000017500000000000013151645377025770 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-190/src/main/java/org/example/pce/sample/0000775000175000017500000000000013151645377027251 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-190/src/main/java/org/example/pce/sample/Dummy.java0000664000175000017500000000167012406122142031171 0ustar ebourgebourgpackage 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.6.2/src/it/mcompiler-106/0000775000175000017500000000000013151645377021000 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-106/invoker.properties0000664000175000017500000000146212406122142024554 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.goals = clean compile maven-compiler-plugin-3.6.2/src/it/mcompiler-106/pom.xml0000664000175000017500000000307412445277105022314 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-106 1.0-SNAPSHOT org.apache.maven.plugins maven-compiler-plugin @project.version@ true maven-compiler-plugin-3.6.2/src/it/mcompiler-106/src/0000775000175000017500000000000013151645377021567 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-106/src/main/0000775000175000017500000000000013151645377022513 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-106/src/main/java/0000775000175000017500000000000013151645377023434 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-106/src/main/java/MyClass.java0000664000175000017500000000150512406122142025631 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class MyClass { } maven-compiler-plugin-3.6.2/src/it/automodules-manifest/0000775000175000017500000000000013151645377022652 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-manifest/invoker.properties0000664000175000017500000000145613106375630026443 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 9+ maven-compiler-plugin-3.6.2/src/it/automodules-manifest/verify.groovy0000664000175000017500000000176613106375630025427 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ buildLog = new File( basedir, 'build.log' ).text; assert !buildLog.contains("] Required automodules detected. Please don't publish this project to a public artifact repository!"); maven-compiler-plugin-3.6.2/src/it/automodules-manifest/pom.xml0000664000175000017500000000373613106375630024170 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it automodules 1.0-SNAPSHOT UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 org.apache.maven.plugins.compiler.it ta3 3.0-SNAPSHOT maven-compiler-plugin-3.6.2/src/it/automodules-manifest/src/0000775000175000017500000000000013151645377023441 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-manifest/src/main/0000775000175000017500000000000013151645377024365 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-manifest/src/main/java/0000775000175000017500000000000013151645377025306 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-manifest/src/main/java/org/0000775000175000017500000000000013151645377026075 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-manifest/src/main/java/org/maven/0000775000175000017500000000000013151645377027203 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-manifest/src/main/java/org/maven/test/0000775000175000017500000000000013151645377030162 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-manifest/src/main/java/org/maven/test/Main.java0000664000175000017500000000175713106375630031713 0ustar ebourgebourgpackage 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. */ public class Main { public static void main( String[] args ) { System.out.println( com.ta3.MyClass.class.getName() ); } } maven-compiler-plugin-3.6.2/src/it/automodules-manifest/src/main/java/module-info.java0000664000175000017500000000155013106375630030360 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module app { requires com.ta3; }maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/0000775000175000017500000000000013151645377023230 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/0000775000175000017500000000000013151645377027417 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/pom.xml0000664000175000017500000000271412652223252030725 0ustar ebourgebourg 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-processor org.apache.commons commons-lang3 3.4 maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/src/0000775000175000017500000000000013151645377030206 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/0000775000175000017500000000000013151645377031132 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/0000775000175000017500000000000013151645377032053 5ustar ebourgebourg././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/org/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/or0000775000175000017500000000000013151645377032414 5ustar ebourgebourg././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/org/issue/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/or0000775000175000017500000000000013151645377032414 5ustar ebourgebourg././@LongLink0000644000000000000000000000021300000000000011577 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/org/issue/SimpleAnnotationProcessor.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-processor/src/main/java/or0000664000175000017500000001107612652223252032410 0ustar ebourgebourgpackage 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.JavaFileObject; 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 ) { if ( annotations.isEmpty() ) { return true; } // assert that commons-lang3 is on the classpath try { getClass().getClassLoader().loadClass( "org.apache.commons.lang3.StringUtils" ); } catch ( ClassNotFoundException expected ) { throw new RuntimeException( "Expected org.apache.commons.lang3.StringUtils to be on the processorpath," + "because it is a declared dependency of the annotation processor." ); } // assert that commons-io is NOT on the classpath, as it is only a project dependency in "annotation-user" try { getClass().getClassLoader().loadClass( "org.apache.commons.io.IOUtils" ); throw new RuntimeException( "Expected a ClassNotFoundException because " + "org.apache.commons.io.IOUtils is not supposed to be on the processorpath." ); } catch ( ClassNotFoundException expected ) { // expected. } Filer filer = processingEnv.getFiler(); Elements elementUtils = processingEnv.getElementUtils(); Set elements = roundEnv.getElementsAnnotatedWith( annotations.iterator().next() ); for ( Element element : elements ) { Name name = element.getSimpleName(); PackageElement packageElement = elementUtils.getPackageOf( element ); try { Name packageName = packageElement.getQualifiedName(); FileObject resource = filer.createResource( StandardLocation.SOURCE_OUTPUT, packageName, name + ".txt", element ); Writer writer = resource.openWriter(); writer.write( name.toString() ); writer.close(); String className = name + "Companion"; JavaFileObject javaFile = filer.createSourceFile( packageName + "." + className, element ); Writer javaWriter = javaFile.openWriter(); javaWriter.append( "package " ).append( packageName ).append( ";\n\n" ); javaWriter.append( "public class " ).append( className ).append( " {\n" ); javaWriter.append( " public " ).append( className ).append( "() {\n" ); javaWriter.append( " System.out.println(\"Hey there!\");\n" ); javaWriter.append( " }\n}\n" ); javaWriter.close(); } catch ( IOException e ) { throw new RuntimeException( e ); } } return !elements.isEmpty(); } } maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/invoker.properties0000664000175000017500000000162212652221643027013 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.6+ invoker.goals=clean process-test-classes invoker.goals.2=process-test-classes maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/pom.xml0000664000175000017500000000343712643777747024570 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/0000775000175000017500000000000013151645377026356 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/pom.xml0000664000175000017500000000552012652223252027662 0ustar ebourgebourg 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-user commons-io commons-io 2.4 junit junit 4.10 test maven-compiler-plugin 1.6 1.6 org.issue.SimpleAnnotationProcessor org.issue annotation-processor 1.0-SNAPSHOT org.issue annotation-verify 1.0-SNAPSHOT verify-annotations read-source org.issue.SimpleObject org.issue.SimpleTestObject maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/0000775000175000017500000000000013151645377027145 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/0000775000175000017500000000000013151645377030071 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/0000775000175000017500000000000013151645377031012 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/0000775000175000017500000000000013151645377031601 5ustar ebourgebourg././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/iss0000775000175000017500000000000013151645377032320 5ustar ebourgebourg././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleObject.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/iss0000664000175000017500000000161012643777747032334 0ustar ebourgebourgpackage 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 { } ././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/issue/SimpleAnnotation.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/main/java/org/iss0000664000175000017500000000214312643777747032336 0ustar ebourgebourgpackage 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 { } maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/0000775000175000017500000000000013151645377030124 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/0000775000175000017500000000000013151645377031045 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/org/0000775000175000017500000000000013151645377031634 5ustar ebourgebourg././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/org/issue/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/org/iss0000775000175000017500000000000013151645377032353 5ustar ebourgebourg././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/org/issue/SimpleTestObject.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-user/src/test/java/org/iss0000664000175000017500000000161412643777747032373 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/0000775000175000017500000000000013151645377026704 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/pom.xml0000664000175000017500000001025612643777747030241 0ustar ebourgebourg 4.0.0 org.issue compiler-test 1.0-SNAPSHOT annotation-verify maven-plugin 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.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/src/0000775000175000017500000000000013151645377027473 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/src/main/0000775000175000017500000000000013151645377030417 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/src/main/java/0000775000175000017500000000000013151645377031340 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/src/main/java/org/0000775000175000017500000000000013151645377032127 5ustar ebourgebourg././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/src/main/java/org/issue/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/src/main/java/org/i0000775000175000017500000000000013151645377032300 5ustar ebourgebourg././@LongLink0000644000000000000000000000020100000000000011574 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/src/main/java/org/issue/SourcePathReadGoal.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-203-processorpath/annotation-verify/src/main/java/org/i0000664000175000017500000000754112643777747032325 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-268_modulepath/0000775000175000017500000000000013151645377022573 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/invoker.properties0000664000175000017500000000146012761350753026364 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.9+ maven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/verify.groovy0000664000175000017500000000160212772024455025341 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def log = new File( basedir, 'build.log').text assert log.count( " --module-path" ) == 2 maven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/pom.xml0000664000175000017500000000376312772024455024115 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler270 1.0-SNAPSHOT https://issues.apache.org/jira/browse/MCOMPILER-270 UTF-8 junit junit 3.8.2 test org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 9 maven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/0000775000175000017500000000000013151645377023362 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/main/0000775000175000017500000000000013151645377024306 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/main/java/0000775000175000017500000000000013151645377025227 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/main/java/com/0000775000175000017500000000000013151645377026005 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/main/java/com/foo/0000775000175000017500000000000013151645377026570 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/main/java/com/foo/MyClass.java0000664000175000017500000000156012761350753031005 0ustar ebourgebourgpackage com.foo; /* * 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.6.2/src/it/MCOMPILER-268_modulepath/src/main/java/module-info.java0000664000175000017500000000152312761350753030306 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module M.N { }maven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/test/0000775000175000017500000000000013151645377024341 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/test/java/0000775000175000017500000000000013151645377025262 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/test/java/com/0000775000175000017500000000000013151645377026040 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/test/java/com/foo/0000775000175000017500000000000013151645377026623 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-268_modulepath/src/test/java/com/foo/MyTest.java0000664000175000017500000000172512761350753030715 0ustar ebourgebourgpackage com.foo; /* * 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 { private MyClass myClass = new MyClass(); } maven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/0000775000175000017500000000000013151645377020352 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/invoker.properties0000664000175000017500000000146012406122142024124 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.6+ maven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/verify.groovy0000664000175000017500000000163312104534176023117 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def sourceFile = new File( basedir, 'target/generated-sources/org/issue/Person_.java') assert sourceFile.exists() maven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/pom.xml0000664000175000017500000000564012406122142021652 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-197/src/0000775000175000017500000000000013151645377021141 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/src/main/0000775000175000017500000000000013151645377022065 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/src/main/java/0000775000175000017500000000000013151645377023006 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/src/main/java/org/0000775000175000017500000000000013151645377023575 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/src/main/java/org/issue/0000775000175000017500000000000013151645377024725 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/src/main/java/org/issue/Person.java0000664000175000017500000000230512104534176027025 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-197/src/main/resources/0000775000175000017500000000000013151645377024077 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/src/main/resources/META-INF/0000775000175000017500000000000013151645377025237 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-197/src/main/resources/META-INF/persistence.xml0000664000175000017500000000276412406122142030274 0ustar ebourgebourg jdbc/ds jdbc/ds-non-jta org.issue.Person true maven-compiler-plugin-3.6.2/src/it/automodules-application/0000775000175000017500000000000013151645377023347 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-application/invoker.properties0000664000175000017500000000145613106375630027140 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 9+ maven-compiler-plugin-3.6.2/src/it/automodules-application/verify.groovy0000664000175000017500000000177213075470363026125 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ buildLog = new File( basedir, 'build.log' ).text; assert buildLog.contains("[INFO] Required automodules detected. Please don't publish this project to a public artifact repository!"); maven-compiler-plugin-3.6.2/src/it/automodules-application/pom.xml0000664000175000017500000000371713075470363024670 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it automodules 1.0-SNAPSHOT UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 org.codehaus.plexus plexus-utils 2.0.4 maven-compiler-plugin-3.6.2/src/it/automodules-application/src/0000775000175000017500000000000013151645377024136 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-application/src/main/0000775000175000017500000000000013151645377025062 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-application/src/main/java/0000775000175000017500000000000013151645377026003 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-application/src/main/java/org/0000775000175000017500000000000013151645377026572 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-application/src/main/java/org/maven/0000775000175000017500000000000013151645377027700 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-application/src/main/java/org/maven/test/0000775000175000017500000000000013151645377030657 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/automodules-application/src/main/java/org/maven/test/Main.java0000664000175000017500000000210213106375630032371 0ustar ebourgebourgpackage 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 org.codehaus.plexus.util.StringUtils; public class Main { /** * @param args */ public static void main(String[] args) { System.out.println( StringUtils.concatenate( args ) ); } } maven-compiler-plugin-3.6.2/src/it/automodules-application/src/main/java/module-info.java0000664000175000017500000000155513075470363031066 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module app { requires plexus.utils; }maven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/0000775000175000017500000000000013151645377021413 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/invoker.properties0000664000175000017500000000145613040731103025170 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 9+ maven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/bar/0000775000175000017500000000000013151645377022157 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/bar/pom.xml0000664000175000017500000000304413040731103023451 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it exportsto 1.0-SNAPSHOT bar org.apache.maven.plugins.compiler.it foo 1.0-SNAPSHOT maven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/bar/src/0000775000175000017500000000000013151645377022746 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/bar/src/main/0000775000175000017500000000000013151645377023672 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/bar/src/main/java/0000775000175000017500000000000013151645377024613 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/bar/src/main/java/module-info.java0000664000175000017500000000153413040731103027653 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module bar { requires foo; }maven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/foo/0000775000175000017500000000000013151645377022176 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/foo/pom.xml0000664000175000017500000000251613040731103023473 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it exportsto 1.0-SNAPSHOT foo maven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/foo/src/0000775000175000017500000000000013151645377022765 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/foo/src/main/0000775000175000017500000000000013151645377023711 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/foo/src/main/java/0000775000175000017500000000000013151645377024632 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/foo/src/main/java/foo/0000775000175000017500000000000013151645377025415 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/foo/src/main/java/foo/Foo.java0000664000175000017500000000153713040731103026765 0ustar ebourgebourgpackage foo; /* * 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 Foo {}maven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/foo/src/main/java/module-info.java0000664000175000017500000000154213040731103027671 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module foo { exports foo to bar; }maven-compiler-plugin-3.6.2/src/it/jdk9-exportsto/pom.xml0000664000175000017500000000356313040731103022713 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it exportsto 1.0-SNAPSHOT pom UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 foo bar maven-compiler-plugin-3.6.2/src/it/default-incremental-disable/0000775000175000017500000000000013151645377024031 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default-incremental-disable/invoker.properties0000664000175000017500000000152612406122142027606 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.goals = clean test-compile invoker.goals.2 = test-compile maven-compiler-plugin-3.6.2/src/it/default-incremental-disable/verify.groovy0000664000175000017500000000207012406122142026561 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ 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.6.2/src/it/default-incremental-disable/pom.xml0000664000175000017500000000401212110427075025326 0ustar ebourgebourg 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.6.2/src/it/default-incremental-disable/src/0000775000175000017500000000000013151645376024617 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default-incremental-disable/src/main/0000775000175000017500000000000013151645376025543 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default-incremental-disable/src/main/java/0000775000175000017500000000000013151645377026465 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default-incremental-disable/src/main/java/MyClass.java0000664000175000017500000000150512406122142030662 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class MyClass { } maven-compiler-plugin-3.6.2/src/it/default-incremental-disable/src/test/0000775000175000017500000000000013151645376025576 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default-incremental-disable/src/test/java/0000775000175000017500000000000013151645377026520 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/default-incremental-disable/src/test/java/MyTest.java0000664000175000017500000000157312406122142030574 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class MyTest extends TestCase { } maven-compiler-plugin-3.6.2/src/it/setup_jar_automodule/0000775000175000017500000000000013151645377022737 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_automodule/invoker.properties0000664000175000017500000000151013106375630026517 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 1.9+ invoker.goals = install maven-compiler-plugin-3.6.2/src/it/setup_jar_automodule/pom.xml0000664000175000017500000000411313106375630024243 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it ta3 3.0-SNAPSHOT UTF-8 org.apache.maven.plugins maven-compiler-plugin @project.version@ 9 org.apache.maven.plugins maven-jar-plugin 3.0.2 com.ta3 maven-compiler-plugin-3.6.2/src/it/setup_jar_automodule/src/0000775000175000017500000000000013151645376023525 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_automodule/src/main/0000775000175000017500000000000013151645377024452 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_automodule/src/main/java/0000775000175000017500000000000013151645377025373 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_automodule/src/main/java/com/0000775000175000017500000000000013151645377026151 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_automodule/src/main/java/com/ta3/0000775000175000017500000000000013151645377026640 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/setup_jar_automodule/src/main/java/com/ta3/MyClass.java0000664000175000017500000000156013106375630031050 0ustar ebourgebourgpackage com.ta3; /* * 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.6.2/src/it/mcompiler-179/0000775000175000017500000000000013151645377021012 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-179/invoker.properties0000664000175000017500000000155412406122142024570 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.goals = clean compile invoker.buildResult = failure invoker.java.version = 1.6+ maven-compiler-plugin-3.6.2/src/it/mcompiler-179/verify.groovy0000664000175000017500000000205312445524351023556 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text // messages differ per vendor assert content.contains( '[WARNING] COMPILATION WARNING :' ) assert content =~ /\d+ warnings?/ assert content.contains( '1 error' ) maven-compiler-plugin-3.6.2/src/it/mcompiler-179/pom.xml0000664000175000017500000000364612406122142022316 0ustar ebourgebourg 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.6.2/src/it/mcompiler-179/src/0000775000175000017500000000000013151645377021601 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-179/src/main/0000775000175000017500000000000013151645377022525 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-179/src/main/java/0000775000175000017500000000000013151645377023446 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-179/src/main/java/org/0000775000175000017500000000000013151645377024235 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-179/src/main/java/org/maven/0000775000175000017500000000000013151645377025343 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-179/src/main/java/org/maven/test/0000775000175000017500000000000013151645377026322 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java0000664000175000017500000000205112406122142030514 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-170/0000775000175000017500000000000013151645377020341 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/0000775000175000017500000000000013151645377022776 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/pom.xml0000664000175000017500000000316312406122142024274 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/0000775000175000017500000000000013151645377023565 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/0000775000175000017500000000000013151645377024511 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/0000775000175000017500000000000013151645377025432 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/0000775000175000017500000000000013151645377026221 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/0000775000175000017500000000000013151645377027442 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/0000775000175000017500000000000013151645377030550 5ustar ebourgebourg././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031440 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031440 5ustar ebourgebourg././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031440 5ustar ebourgebourg././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031417 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000257512406122142031431 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031417 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031417 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031417 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031417 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031417 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/0000775000175000017500000000000013151645377024544 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/0000775000175000017500000000000013151645377025465 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/0000775000175000017500000000000013151645377026254 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/0000775000175000017500000000000013151645377027475 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/0000775000175000017500000000000013151645377030603 5ustar ebourgebourg././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031473 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031473 5ustar ebourgebourg././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031473 5ustar ebourgebourg././@LongLink0000644000000000000000000000020100000000000011574 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plug0000664000175000017500000000270412406122142031456 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-170/mcompiler-170-3/0000775000175000017500000000000013151645377022775 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/pom.xml0000664000175000017500000000316312406122142024273 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/0000775000175000017500000000000013151645377023564 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/0000775000175000017500000000000013151645377024510 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/0000775000175000017500000000000013151645377025431 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/0000775000175000017500000000000013151645377026220 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/0000775000175000017500000000000013151645377027441 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/0000775000175000017500000000000013151645377030547 5ustar ebourgebourg././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031437 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031437 5ustar ebourgebourg././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031437 5ustar ebourgebourg././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031416 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000257512406122142031430 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031416 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031416 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031416 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031416 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031416 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/0000775000175000017500000000000013151645377024543 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/0000775000175000017500000000000013151645377025464 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/0000775000175000017500000000000013151645377026253 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/0000775000175000017500000000000013151645377027474 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/0000775000175000017500000000000013151645377030602 5ustar ebourgebourg././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031472 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031472 5ustar ebourgebourg././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031472 5ustar ebourgebourg././@LongLink0000644000000000000000000000020100000000000011574 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plug0000664000175000017500000000270412406122142031455 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-170/invoker.properties0000664000175000017500000000152312406122142024113 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.goals = clean compile -T4 invoker.maven.version = 3.0+ maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/0000775000175000017500000000000013151645377022774 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/pom.xml0000664000175000017500000000316312406122142024272 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/0000775000175000017500000000000013151645377023563 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/0000775000175000017500000000000013151645377024507 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/0000775000175000017500000000000013151645377025430 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/0000775000175000017500000000000013151645377026217 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/0000775000175000017500000000000013151645377027440 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/0000775000175000017500000000000013151645377030546 5ustar ebourgebourg././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031436 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031436 5ustar ebourgebourg././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031436 5ustar ebourgebourg././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031415 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000257512406122142031427 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031415 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031415 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031415 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031415 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031415 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/0000775000175000017500000000000013151645377024542 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/0000775000175000017500000000000013151645377025463 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/0000775000175000017500000000000013151645377026252 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/0000775000175000017500000000000013151645377027473 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/0000775000175000017500000000000013151645377030601 5ustar ebourgebourg././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031471 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031471 5ustar ebourgebourg././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031471 5ustar ebourgebourg././@LongLink0000644000000000000000000000020100000000000011574 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plug0000664000175000017500000000270412406122142031454 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-170/mcompiler-170-1/0000775000175000017500000000000013151645377022773 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/pom.xml0000664000175000017500000000316312406122142024271 0ustar ebourgebourg 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.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/0000775000175000017500000000000013151645377023562 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/0000775000175000017500000000000013151645377024506 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/0000775000175000017500000000000013151645377025427 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/0000775000175000017500000000000013151645377026216 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/0000775000175000017500000000000013151645377027437 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/0000775000175000017500000000000013151645377030545 5ustar ebourgebourg././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031435 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031435 5ustar ebourgebourg././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000775000175000017500000000000013151645377031435 5ustar ebourgebourg././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App6.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031414 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000257512406122142031426 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App3.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031414 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App4.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031414 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App7.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031414 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App5.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031414 0ustar ebourgebourgpackage 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!" ); } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plugins/compiler/it/App2.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/main/java/org/apache/maven/plug0000664000175000017500000000260112406122142031414 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/0000775000175000017500000000000013151645377024541 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/0000775000175000017500000000000013151645377025462 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/0000775000175000017500000000000013151645377026251 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/0000775000175000017500000000000013151645377027472 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/0000775000175000017500000000000013151645377030600 5ustar ebourgebourg././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031470 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031470 5ustar ebourgebourg././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/maven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plug0000775000175000017500000000000013151645377031470 5ustar ebourgebourg././@LongLink0000644000000000000000000000020100000000000011574 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plug0000664000175000017500000000270412406122142031453 0ustar ebourgebourgpackage 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.6.2/src/it/MCOMPILER-170/pom.xml0000664000175000017500000000313112445277105021647 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler-170 1.0-SNAPSHOT pom org.apache.maven.plugins maven-compiler-plugin @project.version@ mcompiler-170-1 mcompiler-170-2 mcompiler-170-3 mcompiler-170-4 maven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/0000775000175000017500000000000013151645377024372 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/invoker.properties0000664000175000017500000000145612772024455030167 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. invoker.java.version = 9+ maven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/verify.groovy0000664000175000017500000000227212774534673027156 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def log = new File( basedir, 'build.log').text //requires adding custom toolchains... //assert log.count( "[INFO] Toolchain in maven-compiler-plugin: JDK" ) == 1 assert log.count( "[INFO] Changes detected - recompiling the module!" ) == 3 assert new File( basedir, 'target/classes/com/foo/MyClass.class' ).bytes[7] == 50 assert new File( basedir, 'target/classes/module-info.class' ).bytes[7] == 53 maven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/pom.xml0000664000175000017500000000544112773024036025703 0ustar ebourgebourg 4.0.0 org.apache.maven.plugins.compiler.it mcompiler270 1.0-SNAPSHOT https://issues.apache.org/jira/browse/MCOMPILER-270 UTF-8 junit junit 3.8.2 test org.apache.maven.plugins maven-compiler-plugin @project.version@ default-compile 9 9 base-compile compile module-info.java 1.6 1.6 maven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/0000775000175000017500000000000013151645376025160 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/main/0000775000175000017500000000000013151645376026104 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/0000775000175000017500000000000013151645377027026 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/com/0000775000175000017500000000000013151645376027603 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/com/foo/0000775000175000017500000000000013151645377030367 5ustar ebourgebourg././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/com/foo/MyClass.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/com/foo/MyClass.j0000664000175000017500000000156012772024455032113 0ustar ebourgebourgpackage com.foo; /* * 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.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/main/java/module-info.java0000664000175000017500000000152312772024455032104 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ module M.N { }maven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/test/0000775000175000017500000000000013151645376026137 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/0000775000175000017500000000000013151645376027060 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/0000775000175000017500000000000013151645376027636 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/0000775000175000017500000000000013151645377030422 5ustar ebourgebourg././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.javamaven-compiler-plugin-3.6.2/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.ja0000664000175000017500000000172512772024455032164 0ustar ebourgebourgpackage com.foo; /* * 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 { private MyClass myClass = new MyClass(); } maven-compiler-plugin-3.6.2/src/it/settings.xml0000664000175000017500000000376212462662101021063 0ustar ebourgebourg it-repo true local.central @localRepositoryUrl@ true true false true plexus-snapshots Plexus Snapshot Repository https://oss.sonatype.org/content/repositories/plexus-snapshots local.central @localRepositoryUrl@ true true maven-compiler-plugin-3.6.2/src/it/mcompiler-21_class-remove/0000775000175000017500000000000013151645377023374 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-21_class-remove/invoker.properties0000664000175000017500000000165012406122142027147 0ustar ebourgebourg# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. 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.6.2/src/it/mcompiler-21_class-remove/verify.groovy0000664000175000017500000000172112027444154026137 0ustar ebourgebourg /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text assert content.contains( 'COMPILATION ERROR :' ) maven-compiler-plugin-3.6.2/src/it/mcompiler-21_class-remove/pom.xml0000664000175000017500000000425212406122142024672 0ustar ebourgebourg 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.6.2/src/it/mcompiler-21_class-remove/src/0000775000175000017500000000000013151645377024163 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-21_class-remove/src/main/0000775000175000017500000000000013151645377025107 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-21_class-remove/src/main/java/0000775000175000017500000000000013151645377026030 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/it/mcompiler-21_class-remove/src/main/java/BeanA.java0000664000175000017500000000173412406122142027624 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * 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.6.2/src/it/mcompiler-21_class-remove/src/main/java/BeanA2.java0000664000175000017500000000200212406122142027673 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * 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.6.2/src/site/0000775000175000017500000000000013151645377017035 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/site/xdoc/0000775000175000017500000000000013151645377017772 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/site/xdoc/download.xml.vm0000664000175000017500000001135412541114656022741 0ustar ebourgebourg 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.6.2/src/site/site.xml0000664000175000017500000000410712772564052020523 0ustar ebourgebourg maven-compiler-plugin-3.6.2/src/site/resources/0000775000175000017500000000000013151645377021047 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/site/resources/download.cgi0000664000175000017500000000166412336141343023335 0ustar ebourgebourg#!/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.6.2/src/site/apt/0000775000175000017500000000000013151645377017621 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/site/apt/index.apt.vm0000664000175000017500000001036413007177740022055 0ustar ebourgebourg ------ 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#. <> * 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. 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.6.2/src/site/apt/examples/0000775000175000017500000000000013151645377021437 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/site/apt/examples/set-compiler-source-and-target.apt.vm0000664000175000017500000000621113002725700030473 0ustar ebourgebourg ------ Setting the -source and -target of the Java Compiler ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Setting the <<<-source>>> and <<<-target>>> of the Java Compiler Sometimes when you may need to compile a certain project to a different version than what you are currently using. The <<>> can accept such command using <<<-source>>> and <<<-target>>>. The Compiler Plugin can also be configured to provide these options during compilation. For example, if you want to use the Java 8 language features (<<<-source 1.8>>>) and also want the compiled classes to be compatible with JVM 1.8 (<<<-target 1.8>>>), you can either add the two following properties, which are the default property names for the plugin parameters: +----- [...] 1.8 1.8 [...] +----- or configure the plugin directly: +----- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} 1.8 1.8 [...] [...] +----- <> 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://www.mojohaus.org/animal-sniffer/animal-sniffer-maven-plugin/}Animal Sniffer Maven Plugin}} to verify your code doesn't use unintended APIs. In the same way, setting the <<>> option does not guarantee that your code actually compiles on a JDK with the specified version. To compile your code with a specific JDK version, different than the one used to launch Maven, refer to the {{{../examples/compile-using-different-jdk.html}Compile Using A Different JDK}} example. maven-compiler-plugin-3.6.2/src/site/apt/examples/pass-compiler-arguments.apt.vm0000664000175000017500000000344712545027201027341 0ustar ebourgebourg ------ Pass Compiler Arguments ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Pass Compiler Arguments Sometimes, you need to pass other compiler arguments that are not handled by the Compiler Plugin itself but is supported by the <<>> selected. For such arguments, use the Compiler Plugin's <<>> parameter The following example passes compiler arguments to the <<>> compiler: +----- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} -verbose -Xlint:all,-options,-path [...] [...] +----- maven-compiler-plugin-3.6.2/src/site/apt/examples/compile-using-different-jdk.apt.vm0000664000175000017500000001002413003140536030027 0ustar ebourgebourg ------ Compiling Sources Using A Different JDK ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Compiling Sources Using A Different JDK * Using Maven Toolchains The preferable way to use a different JDK is to use the toolchains mechanism. During the build of a project, Maven, without toolchains, will use the JDK to perform various steps, like compiling the Java sources, generate the Javadoc, run unit tests or sign JARs. Each of those plugins need a tool of the JDK to operate: <<>>, <<>>, <<>>, etc. A toolchains is a way to specify the path to the JDK to use for all of those plugins in a centralized manner, independant from the one running Maven itself. To set this up, refer to the {{{/guides/mini/guide-using-toolchains.html}Guide to Using Toolchains}}, which makes use of the {{{/plugins/maven-toolchains-plugin/}Maven Toolchains Plugin}}. With the maven-toolchains-plugin you configure 1 default JDK toolchain for all related maven-plugins. Since maven-compiler-plugin 3.6.0 when using with Maven 3.3.1+ it is also possible to give the plugin its own toolchain, which can be useful in case of different JDK calls per execution block (e.g. the test sources require a different compiler compared to the main sources). * Configuring the Compiler Plugin Outside of a toolchains, it is still possible to tell the Compiler Plugin the specific JDK to use during compilation. Note that such configuration will be specific to this plugin, and will not affect others. 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.6.2/src/site/apt/examples/module-info.apt.vm0000664000175000017500000001242613066254710025001 0ustar ebourgebourg ------ Older projects with module-info ------ Robert Scholte ------ 2016-09-27 ------ ~~ 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 Older projects with module-info For projects that want to be compatible with older versions of Java (i.e 1.8 or below), but also want to provide a <<>> for Java 9 projects must be aware that they need to call <<>> twice: the <<>> must be compiled with <<>>, while the rest of the sources must be compiled with a lower version of <<>>/<<>>. The preferred way to do this is by having 2 execution blocks are described below. JDK 9 only supports compilations for Java 6 and above, so projects wanting to be compatible with Java 5 or below need to use two different JDKs. With {{{/guides/mini/guide-using-toolchains.html}toolchains}} it is quite easy to achieve this. Be aware that you will need at least Maven 3.3.1 to specify a custom jdkToolchain in your plugin configuration. You could add a jdkToolchain to do base-compile execution-block as well referring to JDK 5. +------- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} default-compile 9 9 base-compile compile module-info.java [1.5,9) 1.5 1.5 [...] [...] +------- In case you want the project to be Java 6 compatible, the easiest to do this is to use Java 9 for both execution blocks. You can use the maven-toolchain-plugin to specify the shared JDK (supported since Maven 2.0.9) or a custom jdkToolchain (supported since Maven 3.3.1) and refer to the JDK 9 installation on your system. Or simply use Java 9 as the runtime for Maven by setting <<>>. +------- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} default-compile 9 base-compile compile module-info.java 9 6 [...] [...] +------- maven-compiler-plugin-3.6.2/src/site/apt/examples/compile-with-memory-enhancements.apt.vm0000664000175000017500000000327411753015777031152 0ustar ebourgebourg ------ Compile Using Memory Allocation Enhancements ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Compile Using Memory Allocation Enhancements The Compiler Plugin accepts configurations for <<>> and <<>>. You can follow the example below to set the initial memory size to 128MB and the maximum memory usage to 512MB: +----- [...] [...] org.apache.maven.plugins maven-compiler-plugin ${project.version} true 128m 512m [...] [...] +-----maven-compiler-plugin-3.6.2/src/site/apt/usage.apt.vm0000664000175000017500000000442511753015777022062 0ustar ebourgebourg ------ Usage ------ Edwin Punzalan ------ 2006-07-05 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Usage * Compiling Your Java Sources The goals for the Compiler Plugin are bound to their respective phases in the build lifecycle. So to compile your sources, you need only to tell maven until which lifecycle to execute. The following will compile your sources: +----- mvn compile +----- To compile your test sources, you'll do: +----- mvn test-compile +----- The above command will execute both <<>> and <<>> since the <<>> phase happens a few phases before the <<>> phase. * Configuring Your Compiler Plugin Since the Compiler Plugin executes automatically during their phases, you don't have to put <<>> unlike many other plugins. However, you should specify the version of the Compiler Plugin. +----- ... org.apache.maven.plugins maven-compiler-plugin ${project.version} ... +----- <>: Maven 3.0 will issue warnings if you do not specify the version of a plugin. maven-compiler-plugin-3.6.2/src/site/apt/non-javac-compilers.apt.vm0000664000175000017500000000542213003140470024576 0ustar ebourgebourg ------ Using Non-Javac Compilers ------ Edwin Punzalan ------ 2006-07-19 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Using Non-Javac Compilers Contrary to this plugin's name, the Compiler Plugin does not compile the sources of your project by itself. To compile, the Compiler Plugin uses another class to compile them. The parameter <<>> determines which class will be used. Currently, the Compiler Plugin is bundled with the <<>> compiler artifact with artifactId <<>>, which can be seen as one of the dependencies declared inside the Compiler Plugin's POM. {{{http://codehaus-plexus.github.io/plexus-compiler/}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.6.2/src/site/fml/0000775000175000017500000000000013151645377017613 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/site/fml/faq.fml0000664000175000017500000000355211317134314021051 0ustar ebourgebourg How do I add my generated sources to the compile path of Maven, when using Modello?

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

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

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

maven-compiler-plugin-3.6.2/src/main/0000775000175000017500000000000013151645376017014 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/main/java/0000775000175000017500000000000013151645376017735 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/main/java/org/0000775000175000017500000000000013151645376020524 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/main/java/org/apache/0000775000175000017500000000000013151645376021745 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/0000775000175000017500000000000013151645376023053 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/0000775000175000017500000000000013151645377024352 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/CompilationFailureException.java0000664000175000017500000000257512051247402032654 0ustar ebourgebourgpackage org.apache.maven.plugin; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import org.codehaus.plexus.compiler.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.6.2/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java0000664000175000017500000000232112051247402030433 0ustar ebourgebourgpackage org.apache.maven.plugin; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * 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.6.2/src/main/java/org/apache/maven/plugin/CompilerMojo.java0000664000175000017500000000230012051247402027570 0ustar ebourgebourgpackage org.apache.maven.plugin; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * 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.6.2/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java0000664000175000017500000000276312051247402031271 0ustar ebourgebourgpackage org.apache.maven.plugin; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * 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.6.2/src/main/java/org/apache/maven/plugin/compiler/0000775000175000017500000000000013151645377026164 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/0000775000175000017500000000000013151645377027451 5ustar ebourgebourg././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ProjectAnalyzer.javamaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ProjectAnalyzer.ja0000664000175000017500000001525613106375630033102 0ustar ebourgebourgpackage org.apache.maven.plugin.compiler.module; /* * 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.FileInputStream; import java.io.IOException; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; import java.util.jar.JarFile; import java.util.jar.Manifest; import org.apache.maven.plugin.compiler.module.ProjectAnalyzerResult.ModuleNameSource; import org.codehaus.plexus.component.annotations.Component; import org.codehaus.plexus.component.annotations.Requirement; import org.codehaus.plexus.logging.AbstractLogEnabled; /** * Maps artifacts to modules and analyzes the type of required modules * * @author Robert Scholte * @since 3.7.0 */ @Component( role = ProjectAnalyzer.class ) public class ProjectAnalyzer extends AbstractLogEnabled { @Requirement( hint = "asm" ) private ModuleInfoParser asmParser; @Requirement( hint = "reflect" ) private ModuleInfoParser reflectParser; public ProjectAnalyzerResult analyze( ProjectAnalyzerRequest request ) throws IOException { ProjectAnalyzerResult result = new ProjectAnalyzerResult(); Map pathElements = new LinkedHashMap( request.getDependencyArtifacts().size() ); JavaModuleDescriptor baseModuleDescriptor = request.getBaseModuleDescriptor(); Map availableNamedModules = new HashMap(); Map moduleNameSources = new HashMap(); // start from root result.setBaseModuleDescriptor( baseModuleDescriptor ); // collect all modules from path for ( File file : request.getDependencyArtifacts() ) { JavaModuleDescriptor descriptor = extractDescriptor( file ); if ( descriptor != null ) { availableNamedModules.put( descriptor.name(), descriptor ); } if ( descriptor == null || descriptor.isAutomatic() ) { Manifest manifest = extractManifest( file ); String modulename = null; if ( manifest != null ) { modulename = manifest.getMainAttributes().getValue( "Automatic-Module-Name" ); } if ( modulename != null ) { moduleNameSources.put( modulename, ModuleNameSource.MANIFEST ); } else if ( descriptor != null ) { moduleNameSources.put( descriptor.name(), ModuleNameSource.FILENAME ); } } else { moduleNameSources.put( descriptor.name(), ModuleNameSource.MODULEDESCRIPTOR ); } pathElements.put( file, descriptor ); } result.setPathElements( pathElements ); result.setModuleNameSources( moduleNameSources ); if ( baseModuleDescriptor != null ) { Set requiredNamedModules = new HashSet(); Set requiredUnnamedModules = new HashSet(); select( baseModuleDescriptor, Collections.unmodifiableMap( availableNamedModules ), requiredNamedModules, requiredUnnamedModules ); result.setRequiredNormalModules( requiredNamedModules ); result.setRequiredAutomaticModules( requiredUnnamedModules ); } return result; } private JavaModuleDescriptor extractDescriptor( File file ) throws IOException { JavaModuleDescriptor moduleDescriptor; if ( file.isFile() || new File( file, "module-info.class" ).exists() ) { moduleDescriptor = reflectParser.getModuleDescriptor( file ); if ( moduleDescriptor == null ) { moduleDescriptor = asmParser.getModuleDescriptor( file ); } } else { moduleDescriptor = null; } return moduleDescriptor; } private Manifest extractManifest( File file ) throws IOException { Manifest manifest; if ( file.isFile() ) { JarFile jarFile = null; try { jarFile = new JarFile( file ); manifest = jarFile.getManifest(); } finally { jarFile.close(); } } else if ( new File( file, "META-INF/MANIFEST.MF" ).exists() ) { manifest = new Manifest( new FileInputStream( new File( file, "META-INF/MANIFEST.MF" ) ) ); } else { manifest = null; } return manifest; } private void select( JavaModuleDescriptor module, Map availableModules, Set namedModules, Set unnamedModules ) { for ( JavaModuleDescriptor.JavaRequires requires : module.requires() ) { String requiresName = requires.name(); JavaModuleDescriptor requiredModule = availableModules.get( requiresName ); if ( requiredModule != null && !requiredModule.isAutomatic() ) { if ( namedModules.add( requiresName ) ) { select( requiredModule, availableModules, namedModules, unnamedModules ); } } else { unnamedModules.add( requiresName ); } } } } ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/JavaModuleDescriptor.javamaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/JavaModuleDescript0000664000175000017500000000767313075470363033132 0ustar ebourgebourgpackage org.apache.maven.plugin.compiler.module; /* * 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.Collections; import java.util.HashSet; import java.util.Set; /** * Simple representation of a Module containing info required by this plugin. * It will provide only methods matching Java 9 ModuleDescriptor, so once Java 9 is required, we can easily switch * * @author Robert Scholte * @since 3.7.0 * */ public class JavaModuleDescriptor { private String name; private boolean automatic; private Set requires = new HashSet(); private Set exports = new HashSet(); public String name() { return name; } public boolean isAutomatic() { return automatic; } public Set requires() { return Collections.unmodifiableSet( requires ); } public Set exports() { return Collections.unmodifiableSet( exports ); } public static JavaModuleDescriptor.Builder newModule( String name ) { return new Builder( name ).setAutomatic( false ); } public static Builder newAutomaticModule( String name ) { return new Builder( name ).setAutomatic( true ); } /** * A JavaModuleDescriptor Builder * * @author Robert Scholte * @since 3.7.0 */ public static final class Builder { private JavaModuleDescriptor jModule; private Builder( String name ) { jModule = new JavaModuleDescriptor(); jModule.name = name; } private Builder setAutomatic( boolean isAutomatic ) { jModule.automatic = isAutomatic; return this; } public Builder requires( String name ) { JavaRequires requires = new JavaRequires( name ); jModule.requires.add( requires ); return this; } public Builder exports( String source ) { JavaExports exports = new JavaExports( source ); jModule.exports.add( exports ); return this; } public JavaModuleDescriptor build() { return jModule; } } /** * Represents Module.Requires * * @author Robert Scholte * @since 3.7.0 */ public static class JavaRequires { private final String name; private JavaRequires( String name ) { this.name = name; } public String name() { return name; } } /** * Represents Module.Exports * * @author Robert Scholte * @since 3.7.0 * */ public static class JavaExports { private final String source; private JavaExports( String source ) { this.source = source; } public String source() { return source; } } } ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ProjectAnalyzerResult.javamaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ProjectAnalyzerRes0000664000175000017500000000620213106375630033152 0ustar ebourgebourgpackage org.apache.maven.plugin.compiler.module; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.io.File; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; /** * Holds the results of the project analyzer * * @author Robert Scholte * @since 3.7.0 */ public class ProjectAnalyzerResult { /** * Source of the modulename */ public enum ModuleNameSource { FILENAME, MANIFEST, MODULEDESCRIPTOR } private JavaModuleDescriptor baseModuleDescriptor; /** * Ordered map, respects the classpath order */ private Map pathElements; private Map moduleNameSources = new HashMap(); private Set requiredNormalModules = new HashSet(); private Set requiredAutomaticModules = new HashSet(); public void setBaseModuleDescriptor( JavaModuleDescriptor baseModuleDescriptor ) { this.baseModuleDescriptor = baseModuleDescriptor; } public JavaModuleDescriptor getBaseModuleDescriptor() { return baseModuleDescriptor; } public void setPathElements( Map pathElements ) { this.pathElements = pathElements; } /** * Ordered map, respects the classpath order */ public Map getPathElements() { return pathElements; } public void setModuleNameSources( Map moduleNameSources ) { this.moduleNameSources = moduleNameSources; } public ModuleNameSource getModuleNameSource( String name ) { return moduleNameSources.get( name ); } public void setRequiredNormalModules( Set requiredNormalModules ) { this.requiredNormalModules = requiredNormalModules; } public Set getRequiredNormalModules() { return requiredNormalModules; } public void setRequiredAutomaticModules( Set requiredAutomaticModules ) { this.requiredAutomaticModules = requiredAutomaticModules; } public Set getRequiredAutomaticModules() { return requiredAutomaticModules; } } ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/AsmModuleInfoParser.javamaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/AsmModuleInfoParse0000664000175000017500000000740413106401537033062 0ustar ebourgebourgpackage org.apache.maven.plugin.compiler.module; /* * 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.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.jar.JarEntry; import java.util.jar.JarFile; import org.codehaus.plexus.component.annotations.Component; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassVisitor; //import org.objectweb.asm.ModuleVisitor; import org.objectweb.asm.Opcodes; /** * Extract information from module with ASM * * @author Robert Scholte * @since 3.6 */ @Component( role = ModuleInfoParser.class, hint = "asm" ) public class AsmModuleInfoParser implements ModuleInfoParser { @Override public Type getType() { return Type.CLASS; } @Override public JavaModuleDescriptor getModuleDescriptor( File modulePath ) throws IOException { final JavaModuleDescriptorWrapper wrapper = new JavaModuleDescriptorWrapper(); InputStream in = getModuleInfoClass( modulePath ); if ( in != null ) { ClassReader reader = new ClassReader( in ); reader.accept( new ClassVisitor( Opcodes.ASM6 ) { // REQUIRES ASM 6.0_ALPHA2 // @Override // public ModuleVisitor visitModule( String name, int arg1, String arg2 ) // { // wrapper.builder = JavaModuleDescriptor.newModule( name ); // // return new ModuleVisitor( Opcodes.ASM6 ) // { // @Override // public void visitRequire( String module, int access, String version ) // { // wrapper.builder.requires( module ); // } // }; // } }, 0 ); in.close(); } else { wrapper.builder = JavaModuleDescriptor.newAutomaticModule( null ); } return wrapper.builder.build(); } private InputStream getModuleInfoClass( File modulePath ) throws FileNotFoundException, IOException { InputStream in; if ( modulePath.isDirectory() ) { in = new FileInputStream( new File( modulePath, "module-info.class" ) ); } else { // JarFile jarFile = new JarFile( modulePath ); JarEntry moduleInfo = jarFile.getJarEntry( "/module-info.class" ); if ( moduleInfo != null ) { in = jarFile.getInputStream( moduleInfo ); } else { in = null; } } return in; } private static class JavaModuleDescriptorWrapper { private JavaModuleDescriptor.Builder builder; } } ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ModuleInfoParser.javamaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ModuleInfoParser.j0000664000175000017500000000310113075470363033031 0ustar ebourgebourgpackage org.apache.maven.plugin.compiler.module; /* * 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; /** * Extract information from the module-info file * * @author Robert Scholte * @since 3.6.0 */ public interface ModuleInfoParser { /** * Defines the type of parser, i.e. using the source or the class files */ public enum Type { SOURCE, CLASS } /** * What kind of file does the parser use * * @return the type */ Type getType(); /** * Extracts the name from the module-info file * * @param modulePath * @return * @throws IOException */ JavaModuleDescriptor getModuleDescriptor( File modulePath ) throws IOException; }././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/QDoxModuleInfoParser.javamaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/QDoxModuleInfoPars0000664000175000017500000000515513075470363033061 0ustar ebourgebourgpackage org.apache.maven.plugin.compiler.module; /* * 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 org.codehaus.plexus.component.annotations.Component; import com.thoughtworks.qdox.JavaProjectBuilder; import com.thoughtworks.qdox.model.JavaModuleDescriptor; /** * Extract information from module with QDox * * @author Robert Scholte * @since 3.6.1 */ @Component( role = ModuleInfoParser.class, hint = "qdox" ) public class QDoxModuleInfoParser implements ModuleInfoParser { @Override public Type getType() { return Type.SOURCE; } @Override public org.apache.maven.plugin.compiler.module.JavaModuleDescriptor getModuleDescriptor( File modulePath ) throws IOException { File moduleDescriptor = new File( modulePath, "module-info.java" ); org.apache.maven.plugin.compiler.module.JavaModuleDescriptor.Builder builder; if ( moduleDescriptor.exists() ) { JavaModuleDescriptor descriptor = new JavaProjectBuilder().addSourceFolder( modulePath ).getDescriptor(); builder = org.apache.maven.plugin.compiler.module.JavaModuleDescriptor.newModule( descriptor.getName() ); for ( JavaModuleDescriptor.JavaRequires requires : descriptor.getRequires() ) { builder.requires( requires.getModule().getName() ); } for ( JavaModuleDescriptor.JavaExports exports : descriptor.getExports() ) { builder.exports( exports.getSource().getName() ); } } else { builder = org.apache.maven.plugin.compiler.module.JavaModuleDescriptor.newAutomaticModule( null ); } return builder.build(); } } ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ProjectAnalyzerRequest.javamaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ProjectAnalyzerReq0000664000175000017500000000344013075470363033155 0ustar ebourgebourgpackage org.apache.maven.plugin.compiler.module; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import java.io.File; import java.util.Collection; /** * Contains all information required to analyze the project * * @author Robert Scholte * @since 3.7.0 */ public class ProjectAnalyzerRequest { private JavaModuleDescriptor baseModuleDescriptor; private Collection dependencyArtifacts; public JavaModuleDescriptor getBaseModuleDescriptor() { return baseModuleDescriptor; } public ProjectAnalyzerRequest setBaseModuleDescriptor( JavaModuleDescriptor baseModuleDescriptor ) { this.baseModuleDescriptor = baseModuleDescriptor; return this; } public Collection getDependencyArtifacts() { return dependencyArtifacts; } public ProjectAnalyzerRequest setDependencyArtifacts( Collection dependencyArtifacts ) { this.dependencyArtifacts = dependencyArtifacts; return this; } } ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ReflectModuleInfoParser.javamaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/module/ReflectModuleInfoP0000664000175000017500000001122513075470363033057 0ustar ebourgebourgpackage org.apache.maven.plugin.compiler.module; /* * 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.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Set; import org.codehaus.plexus.component.annotations.Component; /** * This class is could be replaced with a Java 9 MultiRelease implementation * * @author Robert Scholte * @since 3.7.0 */ @Component( role = ModuleInfoParser.class, hint = "reflect" ) public class ReflectModuleInfoParser implements ModuleInfoParser { @Override public Type getType() { return Type.CLASS; } @Override public JavaModuleDescriptor getModuleDescriptor( File modulePath ) throws IOException { JavaModuleDescriptor moduleDescriptor = null; try { // Use Java9 code to get moduleName, don't try to do it better with own implementation Class moduleFinderClass = Class.forName( "java.lang.module.ModuleFinder" ); java.nio.file.Path path = modulePath.toPath(); Method ofMethod = moduleFinderClass.getMethod( "of", java.nio.file.Path[].class ); Object moduleFinderInstance = ofMethod.invoke( null, new Object[] { new java.nio.file.Path[] { path } } ); Method findAllMethod = moduleFinderClass.getMethod( "findAll" ); Set moduleReferences = (Set) findAllMethod.invoke( moduleFinderInstance ); Object moduleReference = moduleReferences.iterator().next(); Method descriptorMethod = moduleReference.getClass().getMethod( "descriptor" ); Object moduleDescriptorInstance = descriptorMethod.invoke( moduleReference ); JavaModuleDescriptor.Builder builder = getBuilder( moduleDescriptorInstance ); Method requiresMethod = moduleDescriptorInstance.getClass().getMethod( "requires" ); Set requires = (Set) requiresMethod.invoke( moduleDescriptorInstance ); for ( Object requiresInstance : requires ) { Method nameMethod = requiresInstance.getClass().getMethod( "name" ); String name = (String) nameMethod.invoke( requiresInstance ); builder.requires( name ); } moduleDescriptor = builder.build(); } catch ( ClassNotFoundException e ) { // do nothing } catch ( NoSuchMethodException e ) { e.printStackTrace(); } catch ( SecurityException e ) { // do nothing } catch ( IllegalAccessException e ) { // do nothing } catch ( IllegalArgumentException e ) { // do nothing } catch ( InvocationTargetException e ) { // do nothing } return moduleDescriptor; } private JavaModuleDescriptor.Builder getBuilder( Object moduleDescriptorInstance ) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException { JavaModuleDescriptor.Builder builder; Method nameMethod = moduleDescriptorInstance.getClass().getMethod( "name" ); String name = (String) nameMethod.invoke( moduleDescriptorInstance ); Method isAutomaticMethod = moduleDescriptorInstance.getClass().getMethod( "isAutomatic" ); boolean automatic = (Boolean) isAutomaticMethod.invoke( moduleDescriptorInstance ); if ( automatic ) { builder = JavaModuleDescriptor.newAutomaticModule( name ); } else { builder = JavaModuleDescriptor.newModule( name ); } return builder; } } maven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/DependencyCoordinate.java0000664000175000017500000001075712643777747033143 0ustar ebourgebourgpackage 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. */ /** * Simple representation of Maven-coordinates of a dependency. * * @author Andreas Gudian * @since 3.4 */ public class DependencyCoordinate { private String groupId; private String artifactId; private String version; private String classifier; private String type = "jar"; public String getGroupId() { return groupId; } public void setGroupId( String groupId ) { this.groupId = groupId; } public String getArtifactId() { return artifactId; } public void setArtifactId( String artifactId ) { this.artifactId = artifactId; } public String getVersion() { return version; } public void setVersion( String version ) { this.version = version; } public String getClassifier() { return classifier; } public void setClassifier( String classifier ) { this.classifier = classifier; } public String getType() { return type; } public void setType( String type ) { this.type = type; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ( ( artifactId == null ) ? 0 : artifactId.hashCode() ); result = prime * result + ( ( classifier == null ) ? 0 : classifier.hashCode() ); result = prime * result + ( ( groupId == null ) ? 0 : groupId.hashCode() ); result = prime * result + ( ( type == null ) ? 0 : type.hashCode() ); result = prime * result + ( ( version == null ) ? 0 : version.hashCode() ); return result; } @Override public boolean equals( Object obj ) { if ( this == obj ) { return true; } if ( obj == null ) { return false; } if ( getClass() != obj.getClass() ) { return false; } DependencyCoordinate other = (DependencyCoordinate) obj; if ( artifactId == null ) { if ( other.artifactId != null ) { return false; } } else if ( !artifactId.equals( other.artifactId ) ) { return false; } if ( classifier == null ) { if ( other.classifier != null ) { return false; } } else if ( !classifier.equals( other.classifier ) ) { return false; } if ( groupId == null ) { if ( other.groupId != null ) { return false; } } else if ( !groupId.equals( other.groupId ) ) { return false; } if ( type == null ) { if ( other.type != null ) { return false; } } else if ( !type.equals( other.type ) ) { return false; } if ( version == null ) { if ( other.version != null ) { return false; } } else if ( !version.equals( other.version ) ) { return false; } return true; } @Override public String toString() { return groupId + ":" + artifactId + ( version != null ? ":" + version : "" ) + ( classifier != null ? ":" + classifier : "" ) + ( type != null ? "." + type : "" ); } } ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/CompilationFailureException.javamaven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/CompilationFailureExcepti0000664000175000017500000000455512655433514033224 0ustar ebourgebourgpackage 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 * @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 the 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.6.2/src/main/java/org/apache/maven/plugin/compiler/TestCompilerMojo.java0000664000175000017500000003127313106375630032264 0ustar ebourgebourgpackage 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 java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.compiler.module.ModuleInfoParser; import org.apache.maven.plugins.annotations.Component; 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; /** * Compiles application test sources. * * @author Jason van Zyl * @version $Id: TestCompilerMojo.java 1795232 2017-05-15 19:03:52Z rfscholte $ * @since 2.0 */ @Mojo( name = "testCompile", defaultPhase = LifecyclePhase.TEST_COMPILE, threadSafe = true, requiresDependencyResolution = ResolutionScope.TEST ) public class TestCompilerMojo extends AbstractCompilerMojo { protected static final String PS = System.getProperty( "path.separator" ); /** * 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; /** * 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; /** * the -release argument for the test Java compiler * * @since 3.6 */ @Parameter ( property = "maven.compiler.testRelease" ) private String testRelease; /** *

* 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; @Parameter( defaultValue = "${project.compileClasspathElements}", readonly = true ) private List compilePath; @Parameter( defaultValue = "${project.testClasspathElements}", readonly = true ) private List testPath; @Component private Map moduleInfoParsers; private List classpathElements; private List modulepathElements; public void execute() throws MojoExecutionException, CompilationFailureException { if ( skip ) { getLog().info( "Not compiling test sources" ); return; } super.execute(); } protected List getCompileSourceRoots() { return compileSourceRoots; } protected List getClasspathElements() { return classpathElements; } @Override protected List getModulepathElements() { return modulepathElements; } protected File getOutputDirectory() { return outputDirectory; } @Override protected void preparePaths( Set sourceFiles ) { File mainOutputDirectory = new File( getProject().getBuild().getOutputDirectory() ); boolean hasMainModuleDescriptor = new File( mainOutputDirectory, "module-info.class" ).exists(); boolean hasTestModuleDescriptor = false; // Go through the source files to respect includes/excludes for ( File sourceFile : sourceFiles ) { // @todo verify if it is the root of a sourcedirectory? if ( "module-info.java".equals( sourceFile.getName() ) ) { hasTestModuleDescriptor = true; break; } } List testScopedElements = new ArrayList( testPath ); testScopedElements.removeAll( compilePath ); if ( release != null ) { if ( Integer.valueOf( release ) < 9 ) { modulepathElements = Collections.emptyList(); classpathElements = testPath; return; } } else if ( Double.valueOf( getTarget() ) < Double.valueOf( MODULE_INFO_TARGET ) ) { modulepathElements = Collections.emptyList(); classpathElements = testPath; return; } if ( hasTestModuleDescriptor ) { modulepathElements = testPath; classpathElements = Collections.emptyList(); if ( hasMainModuleDescriptor ) { // maybe some extra analysis required } else { // very odd // Means that main sources must be compiled with -modulesource and -Xmodule: // However, this has a huge impact since you can't simply use it as a classpathEntry // due to extra folder in between throw new UnsupportedOperationException( "Can't compile test sources " + "when main sources are missing a module descriptor" ); } } else { if ( hasMainModuleDescriptor ) { modulepathElements = compilePath; classpathElements = testScopedElements; if ( compilerArgs == null ) { compilerArgs = new ArrayList(); } String moduleName = getModuleName( mainOutputDirectory ); compilerArgs.add( "--patch-module" ); StringBuilder addReadsValue = new StringBuilder( moduleName ) .append( '=' ) .append( mainOutputDirectory ) .append( PS ); for ( String root : compileSourceRoots ) { addReadsValue.append( root ).append( PS ); } compilerArgs.add( addReadsValue.toString() ); compilerArgs.add( "--add-reads" ); compilerArgs.add( moduleName + "=ALL-UNNAMED" ); } else { modulepathElements = Collections.emptyList(); classpathElements = testPath; } } } private String getModuleName( File mainOutputDirectory ) { String moduleName = null; Map exceptionMap = new LinkedHashMap( moduleInfoParsers.size() ); List parserKeys = Arrays.asList( "reflect", "asm" ); // The class format is still changing, for that reason provide multiple strategies to parse module-info for ( String parserKey: parserKeys ) { ModuleInfoParser parser = moduleInfoParsers.get( parserKey ); try { moduleName = parser.getModuleDescriptor( mainOutputDirectory ).name(); if ( moduleName != null ) { break; } } catch ( Exception e ) { exceptionMap.put( parserKey, e ); } } if ( moduleName == null ) { getLog().error( "Failed to parse module-info:" ); for ( Map.Entry exception : exceptionMap.entrySet() ) { getLog().error( "With " + exception.getKey() + ": " + exception.getValue().getMessage() ); } throw new RuntimeException( "Failed to parse module-info" ); } return moduleName; } 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; } @Override protected String getRelease() { return testRelease == null ? release : testRelease; } 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.6.2/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java0000664000175000017500000003132513106375630031422 0ustar ebourgebourgpackage 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 java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.maven.artifact.Artifact; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.compiler.module.JavaModuleDescriptor; import org.apache.maven.plugin.compiler.module.ModuleInfoParser; import org.apache.maven.plugin.compiler.module.ProjectAnalyzer; import org.apache.maven.plugin.compiler.module.ProjectAnalyzerRequest; import org.apache.maven.plugin.compiler.module.ProjectAnalyzerResult; import org.apache.maven.plugins.annotations.Component; 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.apache.maven.project.MavenProject; import org.apache.maven.shared.utils.StringUtils; import org.apache.maven.shared.utils.logging.MessageUtils; import org.codehaus.plexus.compiler.util.scan.SimpleSourceInclusionScanner; import org.codehaus.plexus.compiler.util.scan.SourceInclusionScanner; import org.codehaus.plexus.compiler.util.scan.StaleSourceScanner; /** * Compiles application sources * * @author Jason van Zyl * @version $Id: CompilerMojo.java 1795232 2017-05-15 19:03:52Z rfscholte $ * @since 2.0 */ @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; /** * 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; @Parameter( defaultValue = "${project.compileClasspathElements}", readonly = true, required = true ) private List compilePath; @Parameter private boolean allowPartialRequirements; @Component( hint = "qdox" ) private ModuleInfoParser moduleInfoParser; @Component private ProjectAnalyzer projectAnalyzer; private List classpathElements; private List modulepathElements; protected List getCompileSourceRoots() { return compileSourceRoots; } protected List getClasspathElements() { return classpathElements; } @Override protected List getModulepathElements() { return modulepathElements; } 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 ); } } @Override protected void preparePaths( Set sourceFiles ) { assert compilePath != null; JavaModuleDescriptor moduleDescriptor = null; boolean hasModuleDescriptor = false; for ( File sourceFile : sourceFiles ) { if ( "module-info.java".equals( sourceFile.getName() ) ) { try { moduleDescriptor = moduleInfoParser.getModuleDescriptor( sourceFile.getParentFile() ); } catch ( IOException e ) { getLog().warn( "Failed to parse module-info.java: " + e.getMessage() ); } hasModuleDescriptor = true; break; } } if ( hasModuleDescriptor ) { // For now only allow named modules. Once we can create a graph with ASM we can specify exactly the modules // and we can detect if auto modules are used. In that case, MavenProject.setFile() should not be used, so // you cannot depend on this project and so it won't be distributed. modulepathElements = new ArrayList( compilePath.size() ); classpathElements = new ArrayList( compilePath.size() ); ProjectAnalyzerResult analyzerResult; try { Collection dependencyArtifacts = getCompileClasspathElements( getProject() ); ProjectAnalyzerRequest analyzerRequest = new ProjectAnalyzerRequest() .setBaseModuleDescriptor( moduleDescriptor ) .setDependencyArtifacts( dependencyArtifacts ); analyzerResult = projectAnalyzer.analyze( analyzerRequest ); if ( !analyzerResult.getRequiredAutomaticModules().isEmpty() ) { boolean filenameBased = false; for ( String automodule : analyzerResult.getRequiredAutomaticModules() ) { filenameBased = ProjectAnalyzerResult.ModuleNameSource.FILENAME.equals( analyzerResult.getModuleNameSource( automodule ) ); if ( filenameBased ) { final String message = "Required automodules detected. " + "Please don't publish this project to a public artifact repository!"; if ( moduleDescriptor.exports().isEmpty() ) { // application getLog().info( message ); } else { // library writeBoxedWarning( message ); } break; } } } for ( Map.Entry entry : analyzerResult.getPathElements().entrySet() ) { if ( !allowPartialRequirements ) { modulepathElements.add( entry.getKey().getPath() ); } else if ( entry.getValue() == null ) { classpathElements.add( entry.getKey().getPath() ); } else if ( analyzerResult.getRequiredNormalModules().contains( entry.getValue().name() ) ) { modulepathElements.add( entry.getKey().getPath() ); } else if ( analyzerResult.getRequiredAutomaticModules().contains( entry.getValue().name() ) ) { modulepathElements.add( entry.getKey().getPath() ); } else { classpathElements.add( entry.getKey().getPath() ); } } } catch ( IOException e ) { getLog().warn( e.getMessage() ); } // if ( !classpathElements.isEmpty() ) // { // if ( compilerArgs == null ) // { // compilerArgs = new ArrayList(); // } // compilerArgs.add( "--add-reads" ); // compilerArgs.add( moduleDescriptor.name() + "=ALL-UNNAMED" ); // // if ( !modulepathElements.isEmpty() ) // { // compilerArgs.add( "--add-reads" ); // compilerArgs.add( "ALL-MODULE-PATH=ALL-UNNAMED" ); // } // } } else { classpathElements = compilePath; modulepathElements = Collections.emptyList(); } } private List getCompileClasspathElements( MavenProject project ) { List list = new ArrayList( project.getArtifacts().size() + 1 ); list.add( new File( project.getBuild().getOutputDirectory() ) ); for ( Artifact a : project.getArtifacts() ) { list.add( a.getFile() ); } return list; } 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; } @Override protected String getRelease() { return release; } protected String getCompilerArgument() { return compilerArgument; } protected Map getCompilerArguments() { return compilerArguments; } protected File getGeneratedSourcesDirectory() { return generatedSourcesDirectory; } private void writeBoxedWarning( String message ) { String line = StringUtils.repeat( "*", message.length() + 4 ); getLog().warn( line ); getLog().warn( "* " + MessageUtils.buffer().strong( message ) + " *" ); getLog().warn( line ); } } maven-compiler-plugin-3.6.2/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java0000664000175000017500000015342213113377416033113 0ustar ebourgebourgpackage 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 java.io.File; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.DefaultArtifact; import org.apache.maven.artifact.handler.ArtifactHandler; import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager; import org.apache.maven.artifact.resolver.ArtifactResolutionRequest; import org.apache.maven.artifact.resolver.ArtifactResolutionResult; import org.apache.maven.artifact.resolver.ResolutionErrorHandler; import org.apache.maven.artifact.versioning.VersionRange; 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.repository.RepositorySystem; 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; /** * 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 1796958 2017-05-30 23:23:58Z olamy $ * @since 2.0 */ public abstract class AbstractCompilerMojo extends AbstractMojo { static final String DEFAULT_SOURCE = "1.5"; static final String DEFAULT_TARGET = "1.5"; // Used to compare with older targets static final String MODULE_INFO_TARGET = "1.9"; // ---------------------------------------------------------------------- // 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; /** * Indicates whether the build will continue even if there are compilation warnings. * * @since 3.6 */ @Parameter( property = "maven.compiler.failOnWarning", defaultValue = "false" ) private boolean failOnWarning; /** * 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 generate metadata for reflection on method parameters. * @since 3.6.2 */ @Parameter( property = "maven.compiler.parameters", defaultValue = "false" ) private boolean parameters; /** * 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 = DEFAULT_SOURCE ) protected String source; /** * The -target argument for the Java compiler. */ @Parameter( property = "maven.compiler.target", defaultValue = DEFAULT_TARGET ) protected String target; /** * The -release argument for the Java compiler, supported since Java9 * * @since 3.6 */ @Parameter( property = "maven.compiler.release" ) protected String release; /** * 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; /** *

* Classpath elements to supply as annotation processor path. If specified, the compiler will detect annotation * processors only in those classpath elements. If omitted, the default classpath is used to detect annotation * processors. The detection itself depends on the configuration of {@code annotationProcessors}. *

*

* Each classpath element is specified using their Maven coordinates (groupId, artifactId, version, classifier, * type). Transitive dependencies are added automatically. Example: *

* *
     * <configuration>
     *   <annotationProcessorPaths>
     *     <path>
     *       <groupId>org.sample</groupId>
     *       <artifactId>sample-annotation-processor</artifactId>
     *       <version>1.2.3</version>
     *     </path>
     *     <!-- ... more ... -->
     *   </annotationProcessorPaths>
     * </configuration>
     * 
* * @since 3.5 */ @Parameter private List annotationProcessorPaths; /** *

* 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; /** *

* Specify the requirements for this jdk toolchain. * This overrules the toolchain selected by the maven-toolchain-plugin. *

* note: requires at least Maven 3.3.1 * * @since 3.6 */ @Parameter private Map jdkToolchain; // ---------------------------------------------------------------------- // 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( defaultValue = "${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; /** * Resolves the artifacts needed. */ @Component private RepositorySystem repositorySystem; /** * Artifact handler manager. */ @Component private ArtifactHandlerManager artifactHandlerManager; /** * Throws an exception on artifact resolution errors. */ @Component private ResolutionErrorHandler resolutionErrorHandler; protected abstract SourceInclusionScanner getSourceInclusionScanner( int staleMillis ); protected abstract SourceInclusionScanner getSourceInclusionScanner( String inputFileEnding ); protected abstract List getClasspathElements(); protected abstract List getModulepathElements(); protected abstract List getCompileSourceRoots(); protected abstract void preparePaths( Set sourceFiles ); protected abstract File getOutputDirectory(); protected abstract String getSource(); protected abstract String getTarget(); protected abstract String getRelease(); protected abstract String getCompilerArgument(); protected abstract Map getCompilerArguments(); protected abstract File getGeneratedSourcesDirectory(); protected final MavenProject getProject() { return project; } @Override 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 maven-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; } // ---------------------------------------------------------------------- // Create the compiler configuration // ---------------------------------------------------------------------- CompilerConfiguration compilerConfiguration = new CompilerConfiguration(); compilerConfiguration.setOutputLocation( getOutputDirectory().getAbsolutePath() ); 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.setParameters( parameters ); compilerConfiguration.setVerbose( verbose ); compilerConfiguration.setShowWarnings( showWarnings ); compilerConfiguration.setFailOnWarning( failOnWarning ); compilerConfiguration.setShowDeprecation( showDeprecation ); compilerConfiguration.setSourceVersion( getSource() ); compilerConfiguration.setTargetVersion( getTarget() ); compilerConfiguration.setReleaseVersion( getRelease() ); compilerConfiguration.setProc( proc ); File generatedSourcesDirectory = getGeneratedSourcesDirectory(); compilerConfiguration.setGeneratedSourcesDirectory( generatedSourcesDirectory != null ? generatedSourcesDirectory.getAbsoluteFile() : null ); 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.setProcessorPathEntries( resolveProcessorPathEntries() ); compilerConfiguration.setSourceEncoding( encoding ); 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 ); preparePaths( sources ); incrementalBuildHelperRequest = new IncrementalBuildHelperRequest().inputFiles( sources ); // CHECKSTYLE_OFF: LineLength if ( ( compiler.getCompilerOutputStyle().equals( CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES ) && !canUpdateTarget ) || isDependencyChanged() || isSourceChanged( compilerConfiguration, compiler ) || incrementalBuildHelper.inputFileTreeChanged( incrementalBuildHelperRequest ) ) // CHECKSTYLE_ON: LineLength { 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 ); } preparePaths( compilerConfiguration.getSourceFiles() ); } 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; } } // Dividing pathElements of classPath and modulePath is based on sourceFiles compilerConfiguration.setClasspathEntries( getClasspathElements() ); compilerConfiguration.setModulepathEntries( getModulepathElements() ); Map effectiveCompilerArguments = getCompilerArguments(); String effectiveCompilerArgument = getCompilerArgument(); if ( ( effectiveCompilerArguments != null ) || ( effectiveCompilerArgument != null ) || ( compilerArgs != null ) ) { 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 ) ) { compilerConfiguration.addCompilerCustomArgument( key + "=" + value, null ); } else { compilerConfiguration.addCompilerCustomArgument( key, value ); } } } if ( !StringUtils.isEmpty( effectiveCompilerArgument ) ) { compilerConfiguration.addCompilerCustomArgument( effectiveCompilerArgument, null ); } if ( compilerArgs != null ) { for ( String arg : compilerArgs ) { compilerConfiguration.addCompilerCustomArgument( arg, null ); } } } // ---------------------------------------------------------------------- // Dump configuration // ---------------------------------------------------------------------- if ( getLog().isDebugEnabled() ) { getLog().debug( "Classpath:" ); for ( String s : getClasspathElements() ) { getLog().debug( " " + s ); } if ( !getModulepathElements().isEmpty() ) { getLog().debug( "Modulepath:" ); for ( String s : getModulepathElements() ) { 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 ( getLog().isDebugEnabled() && 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() || rootFile.getAbsoluteFile().equals( compilerConfiguration.getGeneratedSourcesDirectory() ) ) { 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() { Date buildStartTime = null; try { Method getRequestMethod = session.getClass().getMethod( "getRequest" ); Object mavenExecutionRequest = getRequestMethod.invoke( session ); Method getStartTimeMethod = mavenExecutionRequest.getClass().getMethod( "getStartTime" ); buildStartTime = (Date) getStartTimeMethod.invoke( mavenExecutionRequest ); } catch ( Exception e ) { getLog().debug( "unable to get start time for the current build: " + e.getMessage() ); } if ( buildStartTime == null ) { return new Date(); } return buildStartTime; } 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 ( jdkToolchain != null ) { // Maven 3.3.1 has plugin execution scoped Toolchain Support try { Method getToolchainsMethod = toolchainManager.getClass().getMethod( "getToolchains", MavenSession.class, String.class, Map.class ); @SuppressWarnings( "unchecked" ) List tcs = (List) getToolchainsMethod.invoke( toolchainManager, session, "jdk", jdkToolchain ); if ( tcs != null && tcs.size() > 0 ) { tc = tcs.get( 0 ); } } catch ( NoSuchMethodException e ) { // ignore } catch ( SecurityException e ) { // ignore } catch ( IllegalAccessException e ) { // ignore } catch ( IllegalArgumentException e ) { // ignore } catch ( InvocationTargetException e ) { // ignore } } if ( tc == 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(); List pathElements = new ArrayList(); pathElements.addAll( getClasspathElements() ); pathElements.addAll( getModulepathElements() ); for ( String pathElement : pathElements ) { // ProjectArtifacts are artifacts which are available in the local project // that's the only ones we are interested in now. File artifactPath = new File( pathElement ); 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; } private List resolveProcessorPathEntries() throws MojoExecutionException { if ( annotationProcessorPaths == null || annotationProcessorPaths.isEmpty() ) { return null; } try { Set requiredArtifacts = new LinkedHashSet(); for ( DependencyCoordinate coord : annotationProcessorPaths ) { ArtifactHandler handler = artifactHandlerManager.getArtifactHandler( coord.getType() ); Artifact artifact = new DefaultArtifact( coord.getGroupId(), coord.getArtifactId(), VersionRange.createFromVersionSpec( coord.getVersion() ), Artifact.SCOPE_RUNTIME, coord.getType(), coord.getClassifier(), handler, false ); requiredArtifacts.add( artifact ); } ArtifactResolutionRequest request = new ArtifactResolutionRequest() .setArtifact( requiredArtifacts.iterator().next() ) .setResolveRoot( true ) .setResolveTransitively( true ) .setArtifactDependencies( requiredArtifacts ) .setLocalRepository( session.getLocalRepository() ) .setRemoteRepositories( project.getRemoteArtifactRepositories() ); ArtifactResolutionResult resolutionResult = repositorySystem.resolve( request ); resolutionErrorHandler.throwErrors( request, resolutionResult ); List elements = new ArrayList( resolutionResult.getArtifacts().size() ); for ( Object resolved : resolutionResult.getArtifacts() ) { elements.add( ( (Artifact) resolved ).getFile().getAbsolutePath() ); } return elements; } catch ( Exception e ) { throw new MojoExecutionException( "Resolution of annotationProcessorPath dependencies failed: " + e.getLocalizedMessage(), e ); } } } maven-compiler-plugin-3.6.2/src/test/0000775000175000017500000000000013151645376017047 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/java/0000775000175000017500000000000013151645376017770 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/java/org/0000775000175000017500000000000013151645376020557 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/java/org/apache/0000775000175000017500000000000013151645376022000 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/java/org/apache/maven/0000775000175000017500000000000013151645376023106 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/java/org/apache/maven/plugin/0000775000175000017500000000000013151645376024404 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/java/org/apache/maven/plugin/compiler/0000775000175000017500000000000013151645376026216 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/java/org/apache/maven/plugin/compiler/CompilerMojoTestCase.java0000664000175000017500000004351713035514741033116 0ustar ebourgebourgpackage 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.artifact.handler.ArtifactHandler; 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 { private String source = AbstractCompilerMojo.DEFAULT_SOURCE; private String target = AbstractCompilerMojo.DEFAULT_TARGET; @Override protected void setUp() throws Exception { super.setUp(); String javaSpec = System.getProperty( "java.specification.version" ); if ( "9".equals( javaSpec ) ) { source = "6"; target = "6"; } } /** * 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" ); } } /** * Tests that setting 'skipMain' to true skips compilation of the main Java source files, but that test Java source * files are still compiled. * @throws Exception */ public void testCompileSkipMain() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-skip-main/plugin-config.xml" ); setVariableValueToObject( compileMojo, "skipMain", true ); compileMojo.execute(); File testClass = new File( compileMojo.getOutputDirectory(), "TestSkipMainCompile0.class" ); assertFalse( testClass.exists() ); TestCompilerMojo testCompileMojo = getTestCompilerMojo( compileMojo, "target/test-classes/unit/compiler-skip-main/plugin-config.xml" ); testCompileMojo.execute(); testClass = new File( testCompileMojo.getOutputDirectory(), "TestSkipMainCompile0Test.class" ); assertTrue( testClass.exists() ); } /** * Tests that setting 'skip' to true skips compilation of the test Java source files, but that main Java source * files are still compiled. * @throws Exception */ public void testCompileSkipTest() throws Exception { CompilerMojo compileMojo = getCompilerMojo( "target/test-classes/unit/compiler-skip-test/plugin-config.xml" ); compileMojo.execute(); File testClass = new File( compileMojo.getOutputDirectory(), "TestSkipTestCompile0.class" ); assertTrue( testClass.exists() ); TestCompilerMojo testCompileMojo = getTestCompilerMojo( compileMojo, "target/test-classes/unit/compiler-skip-test/plugin-config.xml" ); setVariableValueToObject( testCompileMojo, "skip", true ); testCompileMojo.execute(); testClass = new File( testCompileMojo.getOutputDirectory(), "TestSkipTestCompile0Test.class" ); assertFalse( testClass.exists() ); } 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, "compilePath", Collections.EMPTY_LIST ); setVariableValueToObject( mojo, "session", getMockMavenSession() ); setVariableValueToObject( mojo, "project", getMockMavenProject() ); setVariableValueToObject( mojo, "mojoExecution", getMockMojoExecution() ); setVariableValueToObject( mojo, "source", source ); setVariableValueToObject( mojo, "target", target ); 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(); Artifact junitArtifact = mock( Artifact.class ); ArtifactHandler handler = mock( ArtifactHandler.class ); when( handler.isAddedToClasspath() ).thenReturn( true ); when( junitArtifact.getArtifactHandler() ).thenReturn( handler ); File artifactFile; String localRepository = System.getProperty( "localRepository" ); if ( localRepository != null ) { artifactFile = new File( 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( '!' ) ); artifactFile = new File( URI.create( junitURI ) ); } when ( junitArtifact.getFile() ).thenReturn( artifactFile ); testClasspathList.add( artifactFile.getAbsolutePath() ); testClasspathList.add( compilerMojo.getOutputDirectory().getPath() ); String testSourceRoot = testPom.getParent() + "/src/test/java"; setVariableValueToObject( mojo, "compileSourceRoots", Collections.singletonList( testSourceRoot ) ); MavenProject project = getMockMavenProject(); project.setArtifacts( Collections.singleton( junitArtifact ) ); project.getBuild().setOutputDirectory( new File( buildDir, "classes" ).getAbsolutePath() ); setVariableValueToObject( mojo, "project", project ); setVariableValueToObject( mojo, "compilePath", Collections.EMPTY_LIST ); setVariableValueToObject( mojo, "testPath", testClasspathList ); setVariableValueToObject( mojo, "session", getMockMavenSession() ); setVariableValueToObject( mojo, "mojoExecution", getMockMojoExecution() ); setVariableValueToObject( mojo, "source", source ); setVariableValueToObject( mojo, "target", target ); return mojo; } private MavenProject getMockMavenProject() { MavenProject mp = new MavenProject(); mp.getBuild().setDirectory( "target" ); mp.getBuild().setOutputDirectory( "target/classes" ); mp.getBuild().setSourceDirectory( "src/main/java" ); mp.getBuild().setTestOutputDirectory( "target/test-classes" ); 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.6.2/src/test/java/org/apache/maven/plugin/compiler/stubs/0000775000175000017500000000000013151645376027356 5ustar ebourgebourg././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/java/org/apache/maven/plugin/compiler/stubs/DebugEnabledLog.javamaven-compiler-plugin-3.6.2/src/test/java/org/apache/maven/plugin/compiler/stubs/DebugEnabledLog.jav0000664000175000017500000000216212051223437033010 0ustar ebourgebourgpackage 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; } } ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/java/org/apache/maven/plugin/compiler/stubs/CompilerManagerStub.javamaven-compiler-plugin-3.6.2/src/test/java/org/apache/maven/plugin/compiler/stubs/CompilerManagerStub0000664000175000017500000000270512051223437033174 0ustar ebourgebourgpackage 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.6.2/src/test/java/org/apache/maven/plugin/compiler/stubs/CompilerStub.java0000664000175000017500000001013512051223437032615 0ustar ebourgebourgpackage 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]; } } maven-compiler-plugin-3.6.2/src/test/resources/0000775000175000017500000000000013151645376021061 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/0000775000175000017500000000000013151645376022040 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/0000775000175000017500000000000013151645376027743 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/plugin-config.xml0000664000175000017500000000300610702764542033221 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-one-output-file-test2/src/main/java javac true ${basedir}/target/test/unit/compiler-one-output-file-test2/target/classes ${basedir}/target/test/unit/compiler-one-output-file-test2/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/0000775000175000017500000000000013151645376030532 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/0000775000175000017500000000000013151645376031456 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/0000775000175000017500000000000013151645376032377 5ustar ebourgebourg././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestCompile4.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/Tes0000664000175000017500000000163111123544663033050 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile4 { public TestCompile4() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestCompile3.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/Tes0000664000175000017500000000163111123544663033050 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile3 { public TestCompile3() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/TestCompile2.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/main/java/Tes0000664000175000017500000000163111123544663033050 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile2 { public TestCompile2() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/0000775000175000017500000000000013151645376031511 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/0000775000175000017500000000000013151645376032432 5ustar ebourgebourg././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestCompile2TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/Tes0000664000175000017500000000174011123544663033104 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile2TestCase extends TestCase { public void testCompile2() { TestCompile2 test = new TestCompile2(); } }././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestCompile3TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/Tes0000664000175000017500000000174011123544663033104 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile3TestCase extends TestCase { public void testCompile3() { TestCompile3 test = new TestCompile3(); } }././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/TestCompile4TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test2/src/test/java/Tes0000664000175000017500000000174011123544663033104 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile4TestCase extends TestCase { public void testCompile4() { TestCompile4 test = new TestCompile4(); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/0000775000175000017500000000000013151645376025540 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/plugin-config.xml0000664000175000017500000000272510702764542031025 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-fail-test/src/main/java javac true ${basedir}/target/test/unit/compiler-fail-test/target/classes ${basedir}/target/test/unit/compiler-fail-test/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/src/0000775000175000017500000000000013151645376026327 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/src/main/0000775000175000017500000000000013151645376027253 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/src/main/java/0000775000175000017500000000000013151645376030174 5ustar ebourgebourg././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/src/main/java/TestCompile0.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/src/main/java/TestCompile0.ja0000664000175000017500000000163111123544663033013 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile0 { public TestCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/src/test/0000775000175000017500000000000013151645376027306 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/src/test/java/0000775000175000017500000000000013151645376030227 5ustar ebourgebourg././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fail-test/src/test/java/TestCompile0Tes0000664000175000017500000000174011123544663033132 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile0Test extends TestCase { public void testCompile0Test() { TestCompile0 test = new TestCompile0(); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/0000775000175000017500000000000013151645376027661 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/plugin-config.xml0000664000175000017500000000300310702764542033134 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-one-output-file-test/src/main/java javac true ${basedir}/target/test/unit/compiler-one-output-file-test/target/classes ${basedir}/target/test/unit/compiler-one-output-file-test/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/0000775000175000017500000000000013151645376030450 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/main/0000775000175000017500000000000013151645376031374 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/0000775000175000017500000000000013151645377032316 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCompile4.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/Test0000664000175000017500000000163111123544663033152 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile4 { public TestCompile4() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCompile3.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/Test0000664000175000017500000000163111123544663033152 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile3 { public TestCompile3() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/TestCompile2.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/main/java/Test0000664000175000017500000000163111123544663033152 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile2 { public TestCompile2() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/test/0000775000175000017500000000000013151645376031427 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/0000775000175000017500000000000013151645377032351 5ustar ebourgebourg././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCompile2TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/Test0000664000175000017500000000174011123544663033206 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile2TestCase extends TestCase { public void testCompile2() { TestCompile2 test = new TestCompile2(); } }././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCompile3TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/Test0000664000175000017500000000174011123544663033206 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile3TestCase extends TestCase { public void testCompile3() { TestCompile3 test = new TestCompile3(); } }././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/TestCompile4TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-one-output-file-test/src/test/java/Test0000664000175000017500000000174011123544663033206 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile4TestCase extends TestCase { public void testCompile4() { TestCompile4 test = new TestCompile4(); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-empty-source-test/0000775000175000017500000000000013151645376027261 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-empty-source-test/plugin-config.xml0000664000175000017500000000277210552574413032547 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-empty-source-test/src/main/java javac true ${basedir}/target/test/unit/compiler-empty-source-test/target/classes ${basedir}/target/test/unit/compiler-empty-source-test/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/0000775000175000017500000000000013151645376030245 5ustar ebourgebourg././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/plugin-config.xmlmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/plugin-config.xm0000664000175000017500000000433210552574413033351 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-includes-excludes-test/src/main/java javac true ${basedir}/target/test/unit/compiler-includes-excludes-test/target/classes ${basedir}/target/test/unit/compiler-includes-excludes-test/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/0000775000175000017500000000000013151645376031034 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/0000775000175000017500000000000013151645376031760 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/0000775000175000017500000000000013151645376032701 5ustar ebourgebourg././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/TestCompile4.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/Te0000664000175000017500000000163111123544663033167 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile4 { public TestCompile4() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/TestCompile3.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/Te0000664000175000017500000000163111123544663033167 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile3 { public TestCompile3() { System.out.println( "Woo Hoo!" ); } }././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/TestCompile2.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/main/java/Te0000664000175000017500000000163111123544663033167 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile2 { public TestCompile2() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/0000775000175000017500000000000013151645376032013 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/0000775000175000017500000000000013151645376032734 5ustar ebourgebourg././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/TestCompile2TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/Te0000664000175000017500000000174011123544663033223 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile2TestCase extends TestCase { public void testCompile2() { TestCompile2 test = new TestCompile2(); } }././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/TestCompile3TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/Te0000664000175000017500000000174011123544663033223 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile3TestCase extends TestCase { public void testCompile3() { TestCompile3 test = new TestCompile3(); } }././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/TestCompile4TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-includes-excludes-test/src/test/java/Te0000664000175000017500000000174011123544663033223 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile4TestCase extends TestCase { public void testCompile4() { TestCompile4 test = new TestCompile4(); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/0000775000175000017500000000000013151645376025573 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/plugin-config.xml0000664000175000017500000000272513007163012031042 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-skip-test/src/main/java javac true ${basedir}/target/test/unit/compiler-skip-test/target/classes ${basedir}/target/test/unit/compiler-skip-test/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/src/0000775000175000017500000000000013151645376026362 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/src/main/0000775000175000017500000000000013151645376027306 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/src/main/java/0000775000175000017500000000000013151645376030227 5ustar ebourgebourg././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/src/main/java/TestSkipTestCompile0.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/src/main/java/TestSkipTestCom0000664000175000017500000000165113007163012033200 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestSkipTestCompile0 { public TestSkipTestCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/src/test/0000775000175000017500000000000013151645376027341 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/src/test/java/0000775000175000017500000000000013151645376030262 5ustar ebourgebourg././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/src/test/java/TestSkipTestCompile0Test.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-test/src/test/java/TestSkipTestCom0000664000175000017500000000200013007163012033220 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestSkipTestCompile0Test extends TestCase { public void testSkipTestCompile0Test() { TestSkipTestCompile0 test = new TestSkipTestCompile0(); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/0000775000175000017500000000000013151645376025566 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/plugin-config.xml0000664000175000017500000000412112261262107031033 0ustar ebourgebourg maven-compiler-plugin true ${basedir} 64m 128m true true ${basedir}/target/test-classes/unit/compiler-fork-test/src/main/java javac true javac ${basedir}/target/test/unit/compiler-fork-test/target/classes ${basedir}/target/test/unit/compiler-fork-test/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/src/0000775000175000017500000000000013151645376026355 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/src/main/0000775000175000017500000000000013151645376027301 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/src/main/java/0000775000175000017500000000000013151645376030222 5ustar ebourgebourg././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/src/main/java/TestCompile1.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/src/main/java/TestCompile1.ja0000664000175000017500000000163111123544663033042 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile1 { public TestCompile1() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/src/test/0000775000175000017500000000000013151645376027334 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/src/test/java/0000775000175000017500000000000013151645376030255 5ustar ebourgebourg././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/src/test/java/TestCompile1TestCase.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-fork-test/src/test/java/TestCompile1Tes0000664000175000017500000000174011123544663033161 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile1TestCase extends TestCase { public void testCompile1() { TestCompile1 test = new TestCompile1(); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/0000775000175000017500000000000013151645376027147 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/plugin-config.xml0000664000175000017500000000300010702764542032417 0ustar ebourgebourg maven-compiler-plugin false ${basedir}/target/test-classes/unit/compiler-fail-test/src/main/java javac true ${basedir}/target/test/unit/compiler-fail-test/target/classes ${basedir}/target/test/unit/compiler-fail-test/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/src/0000775000175000017500000000000013151645376027736 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/src/main/0000775000175000017500000000000013151645376030662 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/src/main/java/0000775000175000017500000000000013151645376031603 5ustar ebourgebourg././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/src/main/java/TestCompile0.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/src/main/java/TestComp0000664000175000017500000000163111123544663033257 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile0 { public TestCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/src/test/0000775000175000017500000000000013151645376030715 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/src/test/java/0000775000175000017500000000000013151645376031636 5ustar ebourgebourg././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-failonerror-test/src/test/java/TestComp0000664000175000017500000000174011123544663033313 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile0Test extends TestCase { public void testCompile0Test() { TestCompile0 test = new TestCompile0(); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/0000775000175000017500000000000013151645376025706 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/plugin-config.xml0000664000175000017500000000273010552574413031166 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-basic-test/src/main/java javac true ${basedir}/target/test/unit/compiler-basic-test/target/classes ${basedir}/target/test/unit/compiler-basic-test/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/src/0000775000175000017500000000000013151645376026475 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/src/main/0000775000175000017500000000000013151645376027421 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/src/main/java/0000775000175000017500000000000013151645376030342 5ustar ebourgebourg././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.j0000664000175000017500000000163111123544663033020 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile0 { public TestCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/src/test/0000775000175000017500000000000013151645376027454 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/src/test/java/0000775000175000017500000000000013151645376030375 5ustar ebourgebourg././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Te0000664000175000017500000000174011123544663033115 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile0Test extends TestCase { public void testCompile0Test() { TestCompile0 test = new TestCompile0(); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/0000775000175000017500000000000013151645376025540 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/plugin-config.xml0000664000175000017500000000272513007163012031007 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-skip-main/src/main/java javac true ${basedir}/target/test/unit/compiler-skip-main/target/classes ${basedir}/target/test/unit/compiler-skip-main/target maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/src/0000775000175000017500000000000013151645376026327 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/src/main/0000775000175000017500000000000013151645376027253 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/src/main/java/0000775000175000017500000000000013151645377030175 5ustar ebourgebourg././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/src/main/java/TestSkipMainCompile0.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/src/main/java/TestSkipMainCom0000664000175000017500000000165113007163012033112 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestSkipMainCompile0 { public TestSkipMainCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/src/test/0000775000175000017500000000000013151645376027306 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/src/test/java/0000775000175000017500000000000013151645376030227 5ustar ebourgebourg././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/src/test/java/TestSkipMainCompile0Test.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-skip-main/src/test/java/TestSkipMainCom0000664000175000017500000000171113007163012033142 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestSkipMainCompile0Test extends TestCase { public void testSkipMainCompile0Test() { } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/0000775000175000017500000000000013151645377025562 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/plugin-config.xml0000664000175000017500000000366312105262637031045 0ustar ebourgebourg maven-compiler-plugin ${basedir}/target/test-classes/unit/compiler-args-test/src/main/java javac true ${basedir}/target/test/unit/compiler-args-test/target/classes ${basedir}/target/test/unit/compiler-args-test/target value1 value2 key1=value1 -Xlint allowed_in_XML_element_names]]> param value maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/src/0000775000175000017500000000000013151645376026350 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/src/main/0000775000175000017500000000000013151645376027274 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/src/main/java/0000775000175000017500000000000013151645376030215 5ustar ebourgebourg././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/src/main/java/TestCompile0.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/src/main/java/TestCompile0.ja0000664000175000017500000000163111123544663033034 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ public class TestCompile0 { public TestCompile0() { System.out.println( "Woo Hoo!" ); } }maven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/src/test/0000775000175000017500000000000013151645376027327 5ustar ebourgebourgmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/src/test/java/0000775000175000017500000000000013151645376030250 5ustar ebourgebourg././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/src/test/java/TestCompile0Test.javamaven-compiler-plugin-3.6.2/src/test/resources/unit/compiler-args-test/src/test/java/TestCompile0Tes0000664000175000017500000000174011123544663033153 0ustar ebourgebourg/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import junit.framework.TestCase; public class TestCompile0Test extends TestCase { public void testCompile0Test() { TestCompile0 test = new TestCompile0(); } }