You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2011/01/07 19:59:57 UTC
svn commit: r1056457 - in
/maven/plugins/trunk/maven-doap-plugin/src/it/doapfile: ./ pom.xml verify.bsh
Author: vsiveton
Date: Fri Jan 7 18:59:56 2011
New Revision: 1056457
URL: http://svn.apache.org/viewvc?rev=1056457&view=rev
Log:
o added IT
Added:
maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/
maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/pom.xml (with props)
maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/verify.bsh (with props)
Added: maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/pom.xml?rev=1056457&view=auto
==============================================================================
--- maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/pom.xml (added)
+++ maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/pom.xml Fri Jan 7 18:59:56 2011
@@ -0,0 +1,116 @@
+<?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 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.its.doap</groupId>
+ <artifactId>maven-it-plugin</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>maven-plugin</packaging>
+
+ <name>Test Plugin</name>
+ <description>
+ Tests the check of a simple plugin.
+ </description>
+ <url>http://maven.apache.org/plugins/maven-doap-plugin</url>
+ <inceptionYear>2011</inceptionYear>
+
+ <prerequisites>
+ <maven>2.2</maven>
+ </prerequisites>
+
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-doap-plugin/</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-doap-plugin/</developerConnection>
+ <url>http://svn.apache.org/viewvc/maven/plugins/trunk/maven-doap-plugin/</url>
+ </scm>
+ <issueManagement>
+ <system>jira</system>
+ <url>http://jira.codehaus.org/browse/MDOAP</url>
+ </issueManagement>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <organization>
+ <name>The Apache Software Foundation</name>
+ <url>http://www.apache.org/</url>
+ </organization>
+ <mailingLists>
+ <mailingList>
+ <name>Maven Announcements List</name>
+ <post>announce@maven.apache.org</post>
+ <subscribe>announce-subscribe@maven.apache.org</subscribe>
+ <unsubscribe>announce-unsubscribe@maven.apache.org</unsubscribe>
+ <archive>http://mail-archives.apache.org/mod_mbox/maven-announce/</archive>
+ <otherArchives>
+ <otherArchive>http://www.mail-archive.com/announce@maven.apache.org</otherArchive>
+ <otherArchive>http://www.nabble.com/Maven-Announcements-f15617.html</otherArchive>
+ <otherArchive>http://markmail.org/list/org.apache.maven.announce</otherArchive>
+ </otherArchives>
+ </mailingList>
+ </mailingLists>
+
+ <developers>
+ <developer>
+ <id>nobody</id>
+ <name>Nobody</name>
+ </developer>
+ </developers>
+
+ <properties>
+ <maven.test.skip>true</maven.test.skip>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-doap-plugin</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <doapFile>target/foo.rdf</doapFile>
+ <doapOptions>
+ <programmingLanguage>java</programmingLanguage>
+ <category>build-management</category>
+ <downloadPage>${project.url}/downloads</downloadPage>
+ </doapOptions>
+ <asfExtOptions>
+ <charter>World Domination</charter>
+ <chair>Nobody</chair>
+ </asfExtOptions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/pom.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/verify.bsh?rev=1056457&view=auto
==============================================================================
--- maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/verify.bsh (added)
+++ maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/verify.bsh Fri Jan 7 18:59:56 2011
@@ -0,0 +1,10 @@
+import java.io.*;
+
+File doapFile = new File( basedir, "target/foo.rdf" );
+System.out.println( "Checking for existence of " + doapFile );
+if ( !doapFile.isFile() )
+{
+ throw new FileNotFoundException( doapFile + " missing" );
+}
+
+return true;
Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/doapfile/verify.bsh
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision