[jboss-svn-commits] JBL Code SVN: r9228 - labs/jbossesb/trunk/product/install.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jan 31 16:34:00 EST 2007


Author: kurt.stam at jboss.com
Date: 2007-01-31 16:34:00 -0500 (Wed, 31 Jan 2007)
New Revision: 9228

Modified:
   labs/jbossesb/trunk/product/install/build.xml
Log:
making the install task work for both regular and bundle download.

Modified: labs/jbossesb/trunk/product/install/build.xml
===================================================================
--- labs/jbossesb/trunk/product/install/build.xml	2007-01-31 21:15:13 UTC (rev 9227)
+++ labs/jbossesb/trunk/product/install/build.xml	2007-01-31 21:34:00 UTC (rev 9228)
@@ -267,12 +267,23 @@
 		</copy>
 	</target>
 	
-	<target name="install" description="Installs JBossAS-4.0.GA with ejb3 and deploys JBossESB to it">
+	<target name="check.is.bundle">
+		<condition property="is.not.bundle" >
+			<not>
+	    		<available file="${org.jboss.esb.dist.lib}/../jboss-4.0.5.GA.zip" />
+			</not>
+		</condition>
+	</target>
+	
+	<target name="install" depends="install.jboss" description="Installs JBossAS-4.0.GA with ejb3 and deploys JBossESB to it">
+		<antcall target="deploy" />
+	</target>
+
+	<target name="install.jboss" unless="is.not.bundle" depends="check.is.bundle">
 		<echo>This task creates a ready-to-go JBossESB install deployed in /JBoss-4.0.5.GA (on the root
-		of your file system) if you have downloaded the bundle.  This task is here for the bundle distribution and will create a ready-to-go install,
-			if you already have JBossAS installed then simply run the deploy task.</echo>
+		of your file system) if you have downloaded the bundle.</echo>
 		<unzip src="${org.jboss.esb.dist.lib}/../jboss-4.0.5.GA.zip" dest="${org.jboss.esb.appserver.home}/../" />
-		<antcall target="deploy" />
 	</target>
 	
+	
 </project>




More information about the jboss-svn-commits mailing list