Skip to main content

Source code file content

Revision: 11587

http://java.net/jira/browse/JAVASERVERFACES-2580
» Project Revision History

» Checkout URL

svn / trunk / TESTING_A_BUILD.txt

Size: 2202 bytes, 1 line
For testing the build with v2, simply run 

update build.properties to point to the correct directory
container.name=glassfish
container.home=/glassfish/home/directory
make sure that password.txt is found in container.home
set ANT_OPTS to be -Xms512m -Xmx786m -XX:MaxPermSize=786m
ant test.with.container.refresh
-or-
start glassfish (asadmin start-domain)
ant build.and.deploy # make sure that you'll actually test the changes
ant test

For testing the build with v3:
Quicklook tests:
ant build.and.debug
checkout v3
cd tests/quicklook
mvn -Dglassfish.home=/home/glassfish/dir test

JSF tests:
Be sure to install glassfish with a password on admin
make sure that password.txt is found in container.home
container.name=glassfishV3
container.home=/glassfish/home/directory
home may be one level down in standard distro (glassfish/glassfish)
ant test.with.container.refresh
-or-
start glassfish (asadmin start-domain)
ant main container.deploy # make sure that you'll actually test the changes
ant test


Testing V3 Trunk without relying on an RE build
----------------------------------------------------------

${MOJARRA_2.0_REPO} -> directory in which the Mojarra 2.0.x sources are checked out
${BUILD.NUMBER}     -> the build number that RE would use for the promotion
${BUILD.TYPE}       -> the build type RE would use for the promotion


cd ${MOJARRA_2.0_REPO}
ant -Dbuild.number=${BUILD.NUMBER} -Dbuild.type=${BUILD.TYPE} clean main
cd jsf-api && ant -Dbuild.number=${BUILD.NUMBER} -Dbuild.type=${BUILD.TYPE} mvn.deploy.promoted.local && cd ..
cd jsf-ri && ant -Dbuild.number=${BUILD.NUMBER} -Dbuild.type=${BUILD.TYPE} mvn.deploy.promoted.local && cd ..

This will produce the same result as what RE would produce so that the version strings, etc
can all be verified.

After running these steps you should be able to ls:

    ~/.m2/repository/com/sun/faces/jsf-api/2.0.0-${BUILD.NUMBER}/jsf-api-2.0.0-${BUILD.NUBMER}.jar
    ~/.m2/repository/com/sun/faces/jsf-impl/2.0.0-${BUILD.NUMBER}/jsf-impl-2.0.0-${BUILD.NUMBER}.jar


Update your v3/pom.xml to refer to the new build.
Build V3, and unpack the glassfish distribution (i.e. distributions/glassfish/target).
Run the quicklook tests per usual.
 
 
Close
loading
Please Confirm
Close