Author: olamy Date: Tue Jan 8 23:16:28 2013 New Revision: 1430625 URL: http://svn.apache.org/viewvc?rev=1430625&view=rev Log: [MDOAP-38] add it test.
Added: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/ maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/invoker.properties (with props) maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/pom.xml (with props) maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/verify.groovy (with props) Modified: maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java Added: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/invoker.properties URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/invoker.properties?rev=1430625&view=auto ============================================================================== --- maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/invoker.properties (added) +++ maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/invoker.properties Tue Jan 8 23:16:28 2013 @@ -0,0 +1 @@ +invoker.buildResult = failure \ No newline at end of file Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/invoker.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/invoker.properties ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/pom.xml?rev=1430625&view=auto ============================================================================== --- maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/pom.xml (added) +++ maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/pom.xml Tue Jan 8 23:16:28 2013 @@ -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 Tests the check of a simple plugin Tests the check of a simple plugin Tests the check of a simple plugin. + </description> + <url>http://maven.apache.org/plugins/maven-doap-plugin</url> + <inceptionYear>2009</inceptionYear> + + <prerequisites> + <maven>2.0.6</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>annou...@maven.apache.org</post> + <subscribe>announce-subscr...@maven.apache.org</subscribe> + <unsubscribe>announce-unsubscr...@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> + <doapOptions> + <programmingLanguage>java</programmingLanguage> + <category>build-management</category> + <downloadPage>${project.url}/downloads</downloadPage> + <shortdesc>${project.description}</shortdesc> + </doapOptions> + <asfExtOptions> + <charter>World Domination</charter> + <chair>Nobody</chair> + </asfExtOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/pom.xml ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/verify.groovy URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/verify.groovy?rev=1430625&view=auto ============================================================================== --- maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/verify.groovy (added) +++ maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/verify.groovy Tue Jan 8 23:16:28 2013 @@ -0,0 +1,24 @@ + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT 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( 'The <doapOptions><shortdesc/></doapOptions> first is too long maximum words number is 10.' ) Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/verify.groovy ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-doap-plugin/src/it/MDOAP-38/verify.groovy ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Modified: maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java?rev=1430625&r1=1430624&r2=1430625&view=diff ============================================================================== --- maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java (original) +++ maven/plugins/trunk/maven-doap-plugin/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java Tue Jan 8 23:16:28 2013 @@ -2641,7 +2641,8 @@ public class DoapMojo break; case SHORT_DESC_TOO_LONG: errorMessages.add( - "The " + toConfiguration( tags, value ) + " parameter is too long maximum length is 10." ); + "The " + toConfiguration( tags, value ) + " first is too long maximum words number is 10." ); + break; default: throw new IllegalArgumentException( "Unknown errorId=" + errorId ); }