Author: objectiser
Date: 2011-06-03 09:32:51 -0400 (Fri, 03 Jun 2011)
New Revision: 1367
Modified:
trunk/distribution/src/main/release/install/build.xml
Log:
Automatically detect app server version (5 or 6) instead of passing in on the command
line.
Modified: trunk/distribution/src/main/release/install/build.xml
===================================================================
--- trunk/distribution/src/main/release/install/build.xml 2011-06-03 13:13:14 UTC (rev
1366)
+++ trunk/distribution/src/main/release/install/build.xml 2011-06-03 13:32:51 UTC (rev
1367)
@@ -7,9 +7,16 @@
<property file="${org.jboss.soa.bpel.deployment.properties}"/>
<property file="../version.properties" />
- <property name="as.version" value="5" />
+ <property name="server.dir"
value="${org_jboss_as_home}/server/${org_jboss_as_config}"/>
- <property name="server.dir"
value="${org_jboss_as_home}/server/${org_jboss_as_config}"/>
+ <condition property="as.version" value="6" >
+ <available file="${server.dir}/deployers/weld.deployer"/>
+ </condition>
+
+ <condition property="as.version" value="5" >
+ <available file="${server.dir}/deployers"/>
+ </condition>
+
<property name="conf.dir" value="${server.dir}/conf"/>
<property name="deploy.dir" value="${server.dir}/deploy"/>
<property name="deployers.dir"
value="${server.dir}/deployers"/>
Show replies by date