You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by an...@apache.org on 2012/11/08 21:08:42 UTC

svn commit: r1407250 - in /maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/maven/ src/main/java/org/maven/test/

Author: andham
Date: Thu Nov  8 20:08:41 2012
New Revision: 1407250

URL: http://svn.apache.org/viewvc?rev=1407250&view=rev
Log:
[MCOMPILER-179] Added IT

Added:
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/invoker.properties   (with props)
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/pom.xml   (with props)
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java   (with props)
    maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/verify.groovy   (with props)

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/invoker.properties?rev=1407250&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/invoker.properties (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/invoker.properties Thu Nov  8 20:08:41 2012
@@ -0,0 +1,3 @@
+invoker.goals = clean compile
+invoker.buildResult = failure
+invoker.java.version = 1.6+
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/invoker.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/pom.xml?rev=1407250&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/pom.xml (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/pom.xml Thu Nov  8 20:08:41 2012
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.plugins.compiler.it</groupId>
+  <artifactId>mcompiler-179</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <version>@project.version@</version>
+          <configuration>
+            <source>1.6</source>
+            <target>1.6</target>
+            <compilerArgument>-Xlint:all</compilerArgument>
+            <compilerArguments>
+              <Werror />
+            </compilerArguments>
+            <showWarnings>true</showWarnings>
+            <showDeprecation>true</showDeprecation>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+</project>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java?rev=1407250&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java Thu Nov  8 20:08:41 2012
@@ -0,0 +1,16 @@
+package org.maven.test;
+
+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";
+    }
+}

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/src/main/java/org/maven/test/MyClass.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/verify.groovy?rev=1407250&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/verify.groovy (added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/verify.groovy Thu Nov  8 20:08:41 2012
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+def logFile = new File( basedir, 'build.log' )
+assert logFile.exists()
+content = logFile.text
+
+assert content.contains( '1 warning' )
+assert content.contains( '1 error' )

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/verify.groovy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-compiler-plugin/src/it/mcompiler-179/verify.groovy
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision