Author: lfryc(a)redhat.com
Date: 2010-07-11 10:16:03 -0400 (Sun, 11 Jul 2010)
New Revision: 17918
Added:
root/tests/metamer/trunk/application/readme.txt
root/tests/metamer/trunk/release.sh
Removed:
root/tests/metamer/trunk/readme.txt
Modified:
root/tests/metamer/trunk/application/pom.xml
root/tests/metamer/trunk/ftest/ftest-source/pom.xml
root/tests/metamer/trunk/pom.xml
Log:
configured for release; added release.sh script
Modified: root/tests/metamer/trunk/application/pom.xml
===================================================================
--- root/tests/metamer/trunk/application/pom.xml 2010-07-11 13:53:50 UTC (rev 17917)
+++ root/tests/metamer/trunk/application/pom.xml 2010-07-11 14:16:03 UTC (rev 17918)
@@ -32,7 +32,6 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer</artifactId>
- <version>4.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Metamer: RichFaces Testing Application</name>
Copied: root/tests/metamer/trunk/application/readme.txt (from rev 17917,
root/tests/metamer/trunk/readme.txt)
===================================================================
--- root/tests/metamer/trunk/application/readme.txt (rev 0)
+++ root/tests/metamer/trunk/application/readme.txt 2010-07-11 14:16:03 UTC (rev 17918)
@@ -0,0 +1,48 @@
+Testapp is an application intended to test all RichFaces components on their own, inside
other JSF components and in various environments. It contains set of small use-cases
implemented using RichFaces components.
+
+
+1 Building and Running the application
+
+
+1.1. Requirements
+
+- Maven 2.1.0 or later
+- Tomcat 6, JBoss 6
+- JDK 1.6
+
+1.2 Optional Additional Software
+- Eclipse IDE + JBoss Tools (to explore and run the application in IDE).
+- You're free to use any other IDE also but we haven't tested an application in
other environments.
+
+
+1.3 Building the application for Tomcat
+
+To build a binary for Tomcat, you need to run
+
+ mvn clean package
+
+When you see the BUILD SUCCESSFUL message you can deploy the application on the server.
You can deploy it on the server by copying .war file from 'target' folder to
+the TOMCAT_HOME/webapps folder. Then, launch the startup.sh or startup.bat script from
TOMCAT_HOME/bin/ directory to start the server.
+
+
+1.4 Building the application for JEE6 containers
+
+To build a binary for JEE6 container, run
+
+ mvn clean package -P jee6
+
+When you see the BUILD SUCCESSFUL message you can deploy the application on the server.
You can deploy it on the server by copying .war file from 'target' folder to
+the JBOSS_HOME/server/default/deploy folder. Then, launch the run.sh or run.bat script
from JBOSS_HOME/bin/ directory to start the server.
+
+
+1.5 Building and running from Eclipse IDE
+
+In order to explore, run and deploy the application in Eclipse IDE you can use one of the
following options:
+
+ * Just import as maven project if using m2eclipse plugin.
+
+ * without m2eclipse - build it with the following command and import as an existing
project.
+
+ mvn clean install eclipse:clean eclipse:eclipse
+
+
Modified: root/tests/metamer/trunk/ftest/ftest-source/pom.xml
===================================================================
--- root/tests/metamer/trunk/ftest/ftest-source/pom.xml 2010-07-11 13:53:50 UTC (rev
17917)
+++ root/tests/metamer/trunk/ftest/ftest-source/pom.xml 2010-07-11 14:16:03 UTC (rev
17918)
@@ -31,7 +31,6 @@
<groupId>org.richfaces.tests</groupId>
<artifactId>metamer-ftest-source</artifactId>
- <version>4.0.0-SNAPSHOT</version>
<name>Metamer: RichFaces Testing Application - Functional Test
Source</name>
<dependencyManagement>
@@ -69,4 +68,4 @@
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
Modified: root/tests/metamer/trunk/pom.xml
===================================================================
--- root/tests/metamer/trunk/pom.xml 2010-07-11 13:53:50 UTC (rev 17917)
+++ root/tests/metamer/trunk/pom.xml 2010-07-11 14:16:03 UTC (rev 17918)
@@ -95,7 +95,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<richfaces.checkstyle.version>1</richfaces.checkstyle.version>
- <version.richfaces>4.0.0-SNAPSHOT</version.richfaces>
+ <version.richfaces>4.0.0.Alpha2</version.richfaces>
</properties>
<dependencyManagement>
@@ -126,6 +126,16 @@
</dependencyManagement>
<build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <arguments>-Dselenium.test.skip=true
-Dselenium.server.skip=true</arguments>
+ <
tagBase>https://svn.jboss.org/repos/qa/richfaces-selenium/tags</tag...
+ <
branchBase>https://svn.jboss.org/repos/qa/richfaces-selenium/branches&...
+ </configuration>
+ </plugin>
+ </plugins>
<pluginManagement>
<plugins>
<plugin>
Deleted: root/tests/metamer/trunk/readme.txt
===================================================================
--- root/tests/metamer/trunk/readme.txt 2010-07-11 13:53:50 UTC (rev 17917)
+++ root/tests/metamer/trunk/readme.txt 2010-07-11 14:16:03 UTC (rev 17918)
@@ -1,48 +0,0 @@
-Testapp is an application intended to test all RichFaces components on their own, inside
other JSF components and in various environments. It contains set of small use-cases
implemented using RichFaces components.
-
-
-1 Building and Running the application
-
-
-1.1. Requirements
-
-- Maven 2.1.0 or later
-- Tomcat 6, JBoss 6
-- JDK 1.6
-
-1.2 Optional Additional Software
-- Eclipse IDE + JBoss Tools (to explore and run the application in IDE).
-- You're free to use any other IDE also but we haven't tested an application in
other environments.
-
-
-1.3 Building the application for Tomcat
-
-To build a binary for Tomcat, you need to run
-
- mvn clean package
-
-When you see the BUILD SUCCESSFUL message you can deploy the application on the server.
You can deploy it on the server by copying .war file from 'target' folder to
-the TOMCAT_HOME/webapps folder. Then, launch the startup.sh or startup.bat script from
TOMCAT_HOME/bin/ directory to start the server.
-
-
-1.4 Building the application for JEE6 containers
-
-To build a binary for JEE6 container, run
-
- mvn clean package -P jee6
-
-When you see the BUILD SUCCESSFUL message you can deploy the application on the server.
You can deploy it on the server by copying .war file from 'target' folder to
-the JBOSS_HOME/server/default/deploy folder. Then, launch the run.sh or run.bat script
from JBOSS_HOME/bin/ directory to start the server.
-
-
-1.5 Building and running from Eclipse IDE
-
-In order to explore, run and deploy the application in Eclipse IDE you can use one of the
following options:
-
- * Just import as maven project if using m2eclipse plugin.
-
- * without m2eclipse - build it with the following command and import as an existing
project.
-
- mvn clean install eclipse:clean eclipse:eclipse
-
-
Added: root/tests/metamer/trunk/release.sh
===================================================================
--- root/tests/metamer/trunk/release.sh (rev 0)
+++ root/tests/metamer/trunk/release.sh 2010-07-11 14:16:03 UTC (rev 17918)
@@ -0,0 +1,19 @@
+#!/bin/bash
+RICHFACES_VERSION=`grep '<version.richfaces>' pom.xml | sed -r
's#.*>([^<]+)<.*#\1#'`
+
+echo "Project defines following version of RichFaces ${RICHFACES_VERSION}"
+echo $RICHFACES_VERSION | egrep -q '\-SNAPSHOT$' && { echo "The
project cannot depend on SNAPSHOT version, correct the version first and try again.";
exit 2; }
+echo "Is this version correct?"
+read -p 'Press ENTER to continue or Ctrl+C for exit...'
+read -p 'Enter release version: ' RELEASE
+read -p 'Enter new development version: ' DEVELOPMENT
+CONF="--batch-mode -Dtag=metamer-${RELEASE} -DreleaseVersion=${RELEASE}
-DdevelopmentVersion=${DEVELOPMENT}"
+echo "Configuration: ${CONF}"
+read -p 'Press ENTER to clean...'
+mvn release:clean clean
+read -p 'Press ENTER to dry run...'
+mvn release:prepare -DdryRun=true ${CONF} || exit 1
+read -p 'Press ENTER to clean...'
+mvn release:clean
+read -p 'Press ENTER to prepare...'
+mvn clean release:prepare ${CONF} || exit 1