Author: bentmann
Date: Tue Sep 23 14:50:26 2008
New Revision: 698366
URL: http://svn.apache.org/viewvc?rev=698366&view=rev
Log:
o Migrated core IT 0055 over to its corresponding plugin project
Added:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/pom.xml
(with props)
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java
(with props)
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java
(with props)
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
(with props)
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
(with props)
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/verify.bsh
(with props)
Modified:
maven/plugins/trunk/maven-compiler-plugin/pom.xml
Modified: maven/plugins/trunk/maven-compiler-plugin/pom.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/pom.xml?rev=698366&r1=698365&r2=698366&view=diff
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-compiler-plugin/pom.xml Tue Sep 23 14:50:26 2008
@@ -154,6 +154,7 @@
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<settingsFile>src/it/settings.xml</settingsFile>
<goals>
+ <goal>clean</goal>
<goal>test-compile</goal>
</goals>
</configuration>
Added:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/pom.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/pom.xml?rev=698366&view=auto
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/pom.xml
(added)
+++ maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/pom.xml
Tue Sep 23 14:50:26 2008
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.its.it0055</groupId>
+ <artifactId>maven-it-it0055</artifactId>
+ <version>1.0</version>
+ <packaging>jar</packaging>
+
+ <name>Maven Integration Test :: it0055</name>
+ <description>
+ Test that source includes/excludes with in the compiler plugin config.
+ This will test excludes and testExcludes...
+ </description>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.2</version>
+ <type>jar</type>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <excludes>
+ <exclude>**/PersonTwo.java</exclude>
+ </excludes>
+ <testExcludes>
+ <testExclude>**/PersonTwoTest.java</testExclude>
+ </testExcludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/pom.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java?rev=698366&view=auto
==============================================================================
---
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java
(added)
+++
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java
Tue Sep 23 14:50:26 2008
@@ -0,0 +1,16 @@
+package org.apache.maven.it0055;
+
+public class Person
+{
+ private String name;
+
+ public void setName( String name )
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+}
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/Person.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java?rev=698366&view=auto
==============================================================================
---
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java
(added)
+++
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java
Tue Sep 23 14:50:26 2008
@@ -0,0 +1,16 @@
+package org.apache.maven.it0055;
+
+public class PersonTwo
+{
+ private String name;
+
+ public void setName( String name )
+ {
+ this.name = name;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+}
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/main/java/org/apache/maven/it0055/PersonTwo.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java?rev=698366&view=auto
==============================================================================
---
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
(added)
+++
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
Tue Sep 23 14:50:26 2008
@@ -0,0 +1,16 @@
+package org.apache.maven.it0055;
+
+import junit.framework.TestCase;
+
+public class PersonTest
+ extends TestCase
+{
+ public void testPerson()
+ {
+ Person person = new Person();
+
+ person.setName( "foo" );
+
+ assertEquals( "foo", person.getName() );
+ }
+}
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java?rev=698366&view=auto
==============================================================================
---
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
(added)
+++
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
Tue Sep 23 14:50:26 2008
@@ -0,0 +1,16 @@
+package org.apache.maven.it0001;
+
+import junit.framework.TestCase;
+
+public class PersonTwoTest
+ extends TestCase
+{
+ public void testPerson()
+ {
+ Person person = new Person();
+
+ person.setName( "foo" );
+
+ assertEquals( "foo", person.getName() );
+ }
+}
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/verify.bsh
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/verify.bsh?rev=698366&view=auto
==============================================================================
---
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/verify.bsh
(added)
+++
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/verify.bsh
Tue Sep 23 14:50:26 2008
@@ -0,0 +1,47 @@
+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;
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-compiler-plugin/src/it/includes-excludes/verify.bsh
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision