[jboss-cvs] JBossAS SVN: r57404 - in trunk/tools/etc/cruisecontrol: . jbossnative

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Oct 3 16:23:04 EDT 2006


Author: rrajesh
Date: 2006-10-03 16:23:03 -0400 (Tue, 03 Oct 2006)
New Revision: 57404

Added:
   trunk/tools/etc/cruisecontrol/jbossnative/
   trunk/tools/etc/cruisecontrol/jbossnative/build-windows.xml
   trunk/tools/etc/cruisecontrol/jbossnative/build.xml
   trunk/tools/etc/cruisecontrol/jbossnative/daemon-windows.xml
   trunk/tools/etc/cruisecontrol/jbossnative/daemon.xml
Log:
Build files for jbossnative builds

Added: trunk/tools/etc/cruisecontrol/jbossnative/build-windows.xml
===================================================================
--- trunk/tools/etc/cruisecontrol/jbossnative/build-windows.xml	2006-10-03 20:22:49 UTC (rev 57403)
+++ trunk/tools/etc/cruisecontrol/jbossnative/build-windows.xml	2006-10-03 20:23:03 UTC (rev 57404)
@@ -0,0 +1,21 @@
+<project name="JBossnative-builder">
+
+	<property name="jbossnative.version" value="1.2.0"/>
+	
+	<!-- Remote ant -->
+	<taskdef resource="org/jboss/ant/remoteant.properties">
+		<classpath>
+			<pathelement location="lib/jboss-remoteant.jar" />
+		</classpath>
+	</taskdef>
+	
+	<target name="buildJBossNative">
+		<remoteant machine="${remote.address}" port="${remote.port}">
+			<runtarget target="scpJBossNative">
+				<property name="jbossnative.version" value="${jbossnative.version}"/>
+				<property name="platform" value="${platform}"/>
+			</runtarget>
+		</remoteant>		
+	</target>
+
+</project>

Added: trunk/tools/etc/cruisecontrol/jbossnative/build.xml
===================================================================
--- trunk/tools/etc/cruisecontrol/jbossnative/build.xml	2006-10-03 20:22:49 UTC (rev 57403)
+++ trunk/tools/etc/cruisecontrol/jbossnative/build.xml	2006-10-03 20:23:03 UTC (rev 57404)
@@ -0,0 +1,30 @@
+<project name="JBossnative-builder">
+
+	<property name="jbossnative.version" value="1.2.0"/>
+	<property name="cc.os" value="unix"/>
+	
+	<!-- Remote ant -->
+	<taskdef resource="org/jboss/ant/remoteant.properties">
+		<classpath>
+			<pathelement location="lib/jboss-remoteant.jar" />
+		</classpath>
+	</taskdef>
+				
+    <pathconvert targetos="${cc.os}" property="jbossnative.tarball.src">
+                <path>
+                <fileset dir="." includes="jboss-native*gz"/>
+        </path>
+    </pathconvert>
+	
+	<target name="buildJBossNative">
+		<remoteant machine="${remote.address}" port="${remote.port}">
+		    <sendfile file="${jbossnative.tarball.src}" todir="tarballs"/>
+			<runtarget target="startJBossNative">
+				<property name="jbossnative.version" value="${jbossnative.version}"/>
+				<property name="target.os" value="${target.os}"/>
+				<property name="platform" value="${platform}"/>
+			</runtarget>
+		</remoteant>		
+	</target>
+
+</project>

Added: trunk/tools/etc/cruisecontrol/jbossnative/daemon-windows.xml
===================================================================
--- trunk/tools/etc/cruisecontrol/jbossnative/daemon-windows.xml	2006-10-03 20:22:49 UTC (rev 57403)
+++ trunk/tools/etc/cruisecontrol/jbossnative/daemon-windows.xml	2006-10-03 20:23:03 UTC (rev 57404)
@@ -0,0 +1,38 @@
+<project>
+
+	<property name="address" value=""/>
+	<property name="port" value="7070"/>
+		
+	<!-- Remote ant -->
+	<taskdef resource="org/jboss/ant/remoteant.properties">
+		<classpath>
+			<pathelement location="lib/jboss-remoteant.jar" />
+		</classpath>
+	</taskdef>
+
+	<target name="daemon">
+		<antserver address="${address}" port="${port}"/>
+	</target>
+	
+    <target name="buildNative">
+    	<delete dir="jbossnative"/>
+    	<delete dir="jbossnative-${jbossnative.version}-win32-src"/>
+    	<delete file="jbossnative-${jbossnative.version}-win32-src.zip"/>
+        <exec dir="." executable="cmd.exe" output="windows-build.log">
+                <arg line="/c daemonbuild.bat"/>
+        </exec>
+    </target>
+
+    <target name="scpJBossNative" depends="buildNative">
+    	<property name="jbossnative.version" value="${jbossnative.version}"/>
+    	<property name="platform" value="${platform}"/>
+        <scp file="jboss-native-${jbossnative.version}-win32-src/dist/jboss-native-${jbossnative.version}-${platform}-i686.zip" trust="yes"
+		todir="cruisecontrol at dev03.qa.atl.jboss.com:/home/cruisecontrol/work/jbossnative-builder/output/${platform}" keyfile="cc" passphrase="cruise"/>
+        <scp file="jboss-native-${jbossnative.version}-win32-src/dist/jboss-native-${jbossnative.version}-${platform}-amd64.zip" trust="yes"
+		todir="cruisecontrol at dev03.qa.atl.jboss.com:/home/cruisecontrol/work/jbossnative-builder/output/${platform}" keyfile="cc" passphrase="cruise"/>
+        <scp file="jboss-native-${jbossnative.version}-win32-src/dist/jboss-native-${jbossnative.version}-${platform}-ia64.zip" trust="yes"
+		todir="cruisecontrol at dev03.qa.atl.jboss.com:/home/cruisecontrol/work/jbossnative-builder/output/${platform}" keyfile="cc" passphrase="cruise"/>    	
+        <scp file="windows-build.log" trust="yes"
+		todir="cruisecontrol at dev03.qa.atl.jboss.com:/home/cruisecontrol/work/jbossnative-builder/output/${platform}" keyfile="cc" passphrase="cruise"/>     	
+    </target>
+</project>
\ No newline at end of file

Added: trunk/tools/etc/cruisecontrol/jbossnative/daemon.xml
===================================================================
--- trunk/tools/etc/cruisecontrol/jbossnative/daemon.xml	2006-10-03 20:22:49 UTC (rev 57403)
+++ trunk/tools/etc/cruisecontrol/jbossnative/daemon.xml	2006-10-03 20:23:03 UTC (rev 57404)
@@ -0,0 +1,92 @@
+<project>
+
+	<property name="address" value=""/>
+	<property name="port" value="7070"/>
+
+	<property name="work" value="${basedir}/work"/>
+
+    <property name="resource" value="tarballs"/>
+	<property name="target.os" value="unix"/>
+	
+	<property name="jbossnative-builder" value="../work/jbossnative-builder"/>
+	<property name="jbossnative.dist" value="${work}/jboss-native-${jbossnative.version}-${platform}"/>
+	<property name="jbossnative.tarball" value="jboss-native-${jbossnative.version}-${platform}.tar.gz"/>
+
+	<!-- Remote ant -->
+	<taskdef resource="org/jboss/ant/remoteant.properties">
+		<classpath>
+			<pathelement location="lib/jboss-remoteant.jar" />
+		</classpath>
+	</taskdef>
+		
+	<pathconvert targetos="${target.os}" property="jbossnative.src.tarball">
+        <path>
+            <fileset dir="${resource}" includes="jboss-native*gz"/>
+        </path>
+    </pathconvert>
+
+    <pathconvert targetos="${target.os}" property="jbossnative.build">
+        <path>
+            <dirset dir="${work}" includes="jboss-native*src"/>
+        </path>
+    </pathconvert>
+	
+	<target name="buildNative" if="buildlib">
+		<delete dir="${work}"/>
+		<mkdir dir="${work}"/>
+        <exec dir="${work}" executable="bash" output="${work}/${platform}-build.log">
+            <arg value="-c"/>
+            <arg value="gunzip -c ${jbossnative.src.tarball} | tar xvf -"/>
+        </exec>
+
+        <exec dir="${jbossnative.build}" executable="bash" output="${work}/${platform}-build.log" append="true">
+			<arg line="buildworld.sh"/>
+		</exec>
+	</target>
+
+    <target name="copyNativeLib" if="buildlib">
+
+		<mkdir dir="${jbossnative.dist}"/>
+    	<mkdir dir="${jbossnative.dist}/bin"/>
+		<mkdir dir="${jbossnative.dist}/bin/native"/>
+    	
+		<copy todir="${jbossnative.dist}/bin/native" flatten="true">
+	        <fileset dir="${jbossnative.build}/dist" includes="**/lib/*.*" excludes="**/lib/*.a,**/lib/*.la,**/lib/*.exp"/>
+	    </copy>
+		<delete>
+			<fileset dir="${resource}" includes="*.*"/>
+		</delete>
+    	
+    </target>
+
+	<target name="daemon">
+		<antserver address="${address}" port="${port}"/>
+	</target>
+
+	<condition property="buildlib">
+	   <not>
+	      <os family="windows"/>
+	   </not>
+	</condition>
+	
+	<target name="startJBossNative" depends="buildNative, copyNativeLib, packageJBossNative">
+		<property name="jbossnative.version" value="${jbossnative.version}"/>
+        <property name="target.os" value="${target.os}"/>
+        <property name="platform" value="${platform}"/>
+	</target>
+
+
+    <target name="packageJBossNative">
+        <tar destfile="${work}/${jbossnative.tarball}"
+                longfile="gnu"
+                compression="gzip">
+            <tarfileset dir="${work}">
+                   <include name="jboss-native-${jbossnative.version}-${platform}/**/*"/>
+            </tarfileset>
+		</tar>
+		<delete file="${jbossnative-builder}/output/${platform}/${jbossnative.tarball}"/>
+		<copy file="${work}/${jbossnative.tarball}" todir="${jbossnative-builder}/output/${platform}"/>
+    	<copy file="${work}/${platform}-build.log" todir="${jbossnative-builder}/output/${platform}"/>
+	</target>
+
+</project>




More information about the jboss-cvs-commits mailing list