Author: solomax
Date: Sun Feb 12 16:14:44 2012
New Revision: 1243273

URL: http://svn.apache.org/viewvc?rev=1243273&view=rev
Log:
build target producing binary bundles is added

Modified:
    incubator/openmeetings/trunk/singlewebapp/build.xml

Modified: incubator/openmeetings/trunk/singlewebapp/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/build.xml?rev=1243273&r1=1243272&r2=1243273&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/build.xml (original)
+++ incubator/openmeetings/trunk/singlewebapp/build.xml Sun Feb 12 16:14:44 2012
@@ -20,6 +20,8 @@
        <property name="screen.src.dir" value="${basedir}/src/red5-screenshare" 
/>
 
        <!-- hudson config -->
+       <!-- FIXME -->
+       <property name="version.number" value="2.0" />
        <property environment="env" />
 
        <property name="build.number.hudson" value="${env.BUILD_NUMBER}" />
@@ -136,21 +138,51 @@
                <fileset dir="${screenshare.lib}" includes="*.jar" />
        </path>
 
+       <!-- build artefacts -->
+       <target name="dist-bin" description="pack binary distribution" 
depends="dist">
+               <tstamp>
+                       <format property="build.time" pattern="dd-MM-yyyy_HHmm" 
/>
+               </tstamp>
+               <property name="archive.file.name" 
value="${dist.dir}/${project.distname}-${version.number}.r${svn.version}-${build.time}"
 />
+               
+               <tar longfile="gnu" compression="gzip" 
destfile="${archive.file.name}-src.tar.gz">
+                       <tarfileset dir="${basedir}">
+                               <include name=".settings/**" />
+                               <include name="docs/**" />
+                               <include name="lib/**" />
+                               <include name="openlaszlo/**" />
+                               <include name="${red5.server.dir}/**" />
+                               <include name="src/**" />
+                               <include name="test/**" />
+                               <include name="WebContent/**" />
+                               <include name="xdocs/**" />
+                               <include name="build.xml" />
+                               <include name="license.txt" />
+                       </tarfileset>
+               </tar>
+               <tar longfile="gnu" compression="gzip" 
destfile="${archive.file.name}.tar.gz">
+                       <tarfileset dir="${dist.dir}">
+                               <include name="red5/**" />
+                               <exclude name="red5/*.sh" />
+                       </tarfileset>
+                       <tarfileset dir="${dist.dir}" filemode="755" >
+                               <include name="red5/*.sh" />
+                       </tarfileset>
+               </tar>
+       </target>
+       
        <!-- build webapp -->
 
-       <target name="dist" description="binary distribution of OpenMeetings" 
depends="cleanForBinary, jar, compile.laszlo.main, compile.laszlo.main.as3, 
enhance, signWebStartJars">
-
-       </target>
+       <target name="dist" description="binary distribution of OpenMeetings"
+               depends="cleanForBinary, jar, compile.laszlo.main, 
compile.laszlo.main.as3, enhance, signWebStartJars"/>
 
        <!-- compiles the sources without the laszlo client -->
-       <target name="dist-test" description="binary distribution of 
OpenMeetings" depends="cleanForBinary, jar, signWebStartJars">
-
-       </target>
+       <target name="dist-test" description="binary distribution of 
OpenMeetings"
+               depends="cleanForBinary, jar, signWebStartJars"/>
 
        <!-- compiles the sources only with laszlo debug client -->
-       <target name="dist-debug" description="binary distribution of 
OpenMeetings" depends="cleanForBinary, jar, compile.laszlo.main.debug, 
compile.laszlo.main.debug.as3, signWebStartJars">
-
-       </target>
+       <target name="dist-debug" description="binary distribution of 
OpenMeetings"
+               depends="cleanForBinary, jar, compile.laszlo.main.debug, 
compile.laszlo.main.debug.as3, signWebStartJars"/>
 
        <target name="prepare.mkdir">
                <mkdir dir="${screen.out.dir}" />


Reply via email to