Author: chris.laprun(a)jboss.com
Date: 2008-02-13 20:28:51 -0500 (Wed, 13 Feb 2008)
New Revision: 9963
Added:
modules/portlet/trunk/build/distrib/
modules/portlet/trunk/build/distrib/README.txt
modules/portlet/trunk/build/distrib/distrib.xml
Log:
- Started distribution build.
Added: modules/portlet/trunk/build/distrib/README.txt
===================================================================
--- modules/portlet/trunk/build/distrib/README.txt (rev 0)
+++ modules/portlet/trunk/build/distrib/README.txt 2008-02-14 01:28:51 UTC (rev 9963)
@@ -0,0 +1,15 @@
+
+JBoss Portlet Container
+LGPL Licensed (See
http://www.gnu.org/copyleft/lesser.html for details on the product
usage)
+
+JBoss Portlet Container is the next generation portlet container on which future versions
of JBoss
+Portal will be based. It provides a standard-compliant implementation of the JSR-286
Portlet 2.0
+specification. It has been developed with reusability in mind so that advanced users, who
don't require
+a full-fledged portal, can leverage the portlet management services it provides in their
own applications.
+JBoss Portlet Container is available through the business-friendly LGPL open source
license.
+
+This distribution also contains a simple portal built on top of JBoss Portlet Container.
This simple
+portal can be run on Tomcat 6.x and JBoss Application Server 4.2.x.
+
+INSTALLATION AND RUNNING:
+For installation, please refer to the user guide available in the 'docs'
directory
\ No newline at end of file
Property changes on: modules/portlet/trunk/build/distrib/README.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: modules/portlet/trunk/build/distrib/distrib.xml
===================================================================
--- modules/portlet/trunk/build/distrib/distrib.xml (rev 0)
+++ modules/portlet/trunk/build/distrib/distrib.xml 2008-02-14 01:28:51 UTC (rev 9963)
@@ -0,0 +1,162 @@
+<project default="all" name="JBoss Portlet Container">
+
+ <property name="source.dir" value="../.."/>
+ <property name="docs.dir" value="${source.dir}/docs"/>
+ <property name="release.version" value="2.0.B1"/>
+
+ <!-- -->
+ <property name="pc.release.name"
value="jboss-pc-${release.version}"/>
+ <property name="pc.release.name.src"
value="${pc.release.name}-src"/>
+ <property name="pc.release.name.as42"
value="${pc.release.name}-jbossas42"/>
+ <property name="pc.release.name.tomcat6"
value="${pc.release.name}-tomcat6"/>
+
+ <!-- -->
+ <property name="pc.build.src"
value="output/${pc.release.name.src}"/>
+ <property name="pc.build.bin.as42"
value="output/${pc.release.name.as42}"/>
+ <property name="pc.build.bin.tomcat6"
value="output/${pc.release.name.tomcat6}"/>
+
+ <property environment="env"/>
+
+ <!-- Clean -->
+ <target name="clean">
+ <delete dir="output"/>
+ </target>
+
+ <!-- Build and compress everything -->
+ <target name="all" depends="licenses,build,package,zip"
description="do everything - build source, doc, distro"/>
+
+ <!-- Licenses -->
+ <target name="licenses" unless="no-doc">
+ <!--<fileset id="thirdparty-licenses"
dir="../thirdparty/licenses">
+ <include name="apache-2.0.txt"/>
+ <include name="bsd.txt"/>
+ <include name="cddl.txt"/>
+ <include name="cpl-1.0/txt"/>
+ <include name="gpl.txt"/>
+ <include name="lgpl.txt"/>
+ <include name="oswego.txt"/>
+ <include name="public-domain.txt"/>
+ <include name="sun-jaf.txt"/>
+ </fileset>-->
+ <mkdir dir="output/docs/licenses"/>
+ <!--<concat
destfile="output/docs/licenses/thirdparty-licenses.txt">
+ <fileset refid="thirdparty-licenses"/>
+ </concat>-->
+ <copy todir="output/docs/licenses">
+ <!--<fileset refid="thirdparty-licenses"/>-->
+ <fileset dir="../licences" includes="JBossEULA.txt"/>
+ </copy>
+ </target>
+
+ <!-- Build JBoss Portlet Container (currently only builds docs as maven build is
assumed -->
+ <target name="build" depends="doc.build"/>
+
+ <!-- Build JBoss Portlet Container documentation -->
+ <target name="doc.build" unless="no-doc">
+ <sequential>
+ <ant dir="${docs.dir}/user-guide"
antfile="build.xml"/>
+ </sequential>
+ </target>
+
+ <!-- Package the different distributions -->
+ <target name="package">
+
+ <!-- Create the output directory -->
+ <mkdir dir="output"/>
+
+ <antcall target="package-src"/>
+ <antcall target="package-as42"/>
+ <antcall target="package-tomcat6"/>
+ </target>
+
+ <!--
+ | JBoss Portlet Container source distribution
+ -->
+ <target name="package-src" description="package source
distribution">
+ <antcall target="__package-distrib">
+ <param name="todir" value="${pc.build.src}"/>
+ </antcall>
+ <copy todir="${pc.build.src}">
+ <fileset dir="${source.dir}" includes="**/*"
+
excludes="**/target/**,**/.svn/*,**/*.iml,**/*.ipr,**/*.iws,results.txt"/>
+ </copy>
+ </target>
+
+ <!--
+ | JBoss Portlet Container binary distribution for AS 4.2.x
+ -->
+ <target name="package-as42" description="package AS
binary">
+ <antcall target="__package-binary">
+ <param name="bin.dir" value="${pc.build.bin.as42}"/>
+ </antcall>
+ <copy todir="${pc.build.bin.as42}/simple-portal">
+ <fileset dir="${source.dir}/test/target/portal/as42/simple-portal"
includes="**/*"/>
+ </copy>
+ </target>
+
+ <!--
+ | JBoss Portlet Container binary distribution for Tomcat 6.x
+ -->
+ <target name="package-tomcat6" description="package Tomcat
binary">
+ <antcall target="__package-binary">
+ <param name="bin.dir"
value="${pc.build.bin.tomcat6}"/>
+ </antcall>
+ <copy todir="${pc.build.bin.tomcat6}/simple-portal">
+ <fileset dir="${source.dir}/test/target/portal/tomcat"
includes="**/*"/>
+ </copy>
+ </target>
+
+ <!-- Compress packages -->
+ <target name="zip" unless="no-zip">
+ <antcall target="__zip">
+ <param name="release.name"
value="${pc.release.name.src}"/>
+ </antcall>
+ <antcall target="__zip">
+ <param name="release.name"
value="${pc.release.name.as42}"/>
+ </antcall>
+ <antcall target="__zip">
+ <param name="release.name"
value="${pc.release.name.tomcat6}"/>
+ </antcall>
+ </target>
+
+ <!--
+ | Internal tasks
+ -->
+ <target name="__package-binary">
+ <antcall target="__package-distrib">
+ <param name="todir" value="${bin.dir}"/>
+ </antcall>
+ <mkdir dir="${bin.dir}/lib"/>
+ <copy todir="${bin.dir}/lib" flatten="true">
+ <fileset dir="${source.dir}" includes="**/target/*.jar"
excludes="**/*sources.jar"/>
+ </copy>
+ </target>
+
+ <target name="__package-distrib">
+ <mkdir dir="${todir}"/>
+ <antcall target="__package-doc">
+ <param name="todir" value="${todir}/docs"/>
+ </antcall>
+ </target>
+
+ <target name="__package-doc" unless="no-doc">
+ <sequential>
+ <mkdir dir="${todir}"/>
+ <mkdir dir="${todir}/user-guide"/>
+ <copy todir="${todir}/user-guide">
+ <fileset dir="${docs.dir}/user-guide/build/en/"/>
+ </copy>
+ <copy file="README.txt" todir="${todir}"/>
+ <!--<copy todir="${todir}/docs/licenses">
+ <fileset dir="output/docs/licenses"/>
+ </copy>-->
+ </sequential>
+ </target>
+
+ <target name="__zip">
+ <tar destfile="output/${release.name}.tar.gz"
compression="gzip">
+ <tarfileset prefix="${release.name}" filemode="775"
dir="output/${release.name}"/>
+ </tar>
+ <checksum file="output/${release.name}.tar.gz"/>
+ </target>
+</project>
Property changes on: modules/portlet/trunk/build/distrib/distrib.xml
___________________________________________________________________
Name: svn:executable
+ *