You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2012/03/18 02:00:02 UTC
svn commit: r1302042 - in
/maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128:
./ pom.xml verify.groovy
Author: rfscholte
Date: Sun Mar 18 01:00:02 2012
New Revision: 1302042
URL: http://svn.apache.org/viewvc?rev=1302042&view=rev
Log:
IT for MRELEASE-128
Added:
maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/
maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/pom.xml
maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/verify.groovy
Added: maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/pom.xml
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/pom.xml?rev=1302042&view=auto
==============================================================================
--- maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/pom.xml (added)
+++ maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/pom.xml Sun Mar 18 01:00:02 2012
@@ -0,0 +1,56 @@
+<?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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugin.release.its</groupId>
+ <artifactId>mrelease-128</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <description>
+ SCM properties being replaced during release:perform
+ </description>
+
+ <scm>
+ <connection>scm:dummy|${scm.custom.path}/nul</connection>
+ <developerConnection>scm:dummy|${scm.custom.path}/nul</developerConnection>
+ </scm>
+
+ <properties>
+ <scm.custom.path>my/path</scm.custom.path>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>@project.version@</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.its.release</groupId>
+ <artifactId>maven-scm-provider-dummy</artifactId>
+ <version>1.0</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/verify.groovy
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/verify.groovy?rev=1302042&view=auto
==============================================================================
--- maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/verify.groovy (added)
+++ maven/release/trunk/maven-release-plugin/src/it/projects/prepare/MRELEASE-128/verify.groovy Sun Mar 18 01:00:02 2012
@@ -0,0 +1,30 @@
+
+/*
+ * 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.
+ */
+
+File pomXmlTag = new File( basedir, 'pom.xml.tag' )
+assert pomXmlTag.exists()
+assert 1 == pomXmlTag.getText().count("<connection>scm:dummy|${scm.custom.path}/nul</connection>")
+assert 1 == pomXmlTag.getText().count("<developerConnection>scm:dummy|${scm.custom.path}/nul</developerConnection>")
+
+
+File pomXmlNext = new File( basedir, 'pom.xml.next' )
+assert pomXmlNext.exists()
+assert 1 == pomXmlNext.getText().count("<connection>scm:dummy|${scm.custom.path}/nul</connection>")
+assert 1 == pomXmlNext.getText().count("<developerConnection>scm:dummy|${scm.custom.path}/nul</developerConnection>")