ShaleRelease

HomePage | RecentChanges | Preferences


Shale 1.0.2

Shale 1.0.1

Test Build posted 20060319


Checklist

Script

# 20060319 wsmoak shale-release.sh

export SHALE_VERSION=1.0.2-SNAPSHOT

echo "======== Updating shale-release ========"
svn co https://svn.apache.org/repos/asf/struts/shale/trunk shale-release

cd shale-release
pwd

echo "======== Modifying build.properties ========"
cp build.properties.sample build.properties
echo "htmlunit.home=c:/java/htmlunit-1.6/" >> build.properties
echo "creator2.home=c:/Program Files/Sun/Creator2" >> build.properties
echo "tomcat50.home=c:/java/jakarta-tomcat-5.0.28" >> build.properties
echo "tomcat55.home=c:/java/apache-tomcat-5.5.15" >> build.properties
echo "jsfri.dir = c:/java/jsf-1_1_01" >> build.properties

ant download-dependencies copy-creator2 copy-jsf-ri

echo "======== Modifying build.properties for JSF RI ========"
echo "jsf.home = \${lib.dir}/jsf-ri" >> build.properties
echo "jsf-api.jar = \${jsf.home}/jsf-api.jar" >> build.properties
echo "jsf-impl.jar = \${jsf.home}/jsf-impl.jar" >> build.properties

echo "======== Building with JSF RI ========"
export JAVA_HOME=$JAVA_HOME_5
ant clean release

cd use-cases
pwd
echo "====== Running integration tests: Tomcat 5.0 JSF-RI $JAVA_HOME ======"
ant systest-tomcat50
echo "====== Running integration tests: Tomcat 5.5 JSF-RI $JAVA_HOME ======"
ant systest-tomcat55

export JAVA_HOME=$JAVA_HOME_4
echo "====== Running integration tests: Tomcat 5.0 JSF-RI $JAVA_HOME ======"
ant systest-tomcat50

cd ../
pwd

echo "======== Moving dist to dist-jsf-ri ========"
# Preserve the release artifacts built with the JSF RI.
# Until all apps have integration tests, play-test the apps manually.
mv dist dist-jsf-ri

echo "======== Modifying build.properties for MyFaces (default) ========"
# ... and put them back the way they were to begin with:
echo "jsf.home = \${lib.dir}/myfaces" >> build.properties
echo "jsf-api.jar = \${jsf.home}/myfaces-api.jar" >> build.properties
echo "jsf-impl.jar = \${jsf.home}/myfaces-impl.jar" >> build.properties

echo "======== Building with the default MyFaces JSF Implementation ========"
export JAVA_HOME=$JAVA_HOME_5
ant clean release

cd use-cases
pwd
export JAVA_HOME=$JAVA_HOME_5
echo "====== Running integration tests: Tomcat 5.0 MyFaces $JAVA_HOME ======"
ant systest-tomcat50
echo "====== Running integration tests: Tomcat 5.5 MyFaces $JAVA_HOME ======"
ant systest-tomcat55

export JAVA_HOME=$JAVA_HOME_4
echo "====== Running integration tests: Tomcat 5.0 MyFaces $JAVA_HOME ======"
ant systest-tomcat50

cd ../
pwd
export SHALE_VERSION=1.0.2-SNAPSHOT
export DIST_NAME=shale-framework-$SHALE_VERSION
pwd
ant release
cp dist/$DIST_NAME.zip /cygdrive/c/temp/
cd /cygdrive/c/temp/
rm -rf $DIST_NAME
unzip $DIST_NAME.zip
cd $DIST_NAME
echo "======================= releasing from the framework distribution ======="
cp build.properties.sample build.properties
echo "htmlunit.home=c:/java/htmlunit-1.6/" >> build.properties
ant download-dependencies release

echo "Done."

HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited March 22, 2006 7:39 pm by WendySmoak (diff)
Search: