User: tobyallsopp
Date: 01/04/14 22:41:21
Modified: src/build build.xml
Log:
Modified AutoDeployer so that it can be configured to deploy RARs (inspired
by Patch #415321 from David Jencks).
- added jboss-deployer target to build.xml that builds
dist/external/jboss-deployer.jar which contains the classes required by
deployers that implement org.jboss.deployment.DeployerMBean.
- added a method to DeployerMBean: getDeployableFilter that returns a
java.io.FilenameFilter that AutoDeployer uses to decide what it can deploy
rather than using a hardcoded list of filename extensions.
- made J2eeDeployerMBean extend DeployerMBean and added an implementation
of getDeployableFilter to J2eeDeployer.
- updated JBossCX jar so that RARDeployer implements getDeployableFilter.
- added an AutoDeployer watching deploy/lib and using RARDeployer to
jboss.jcml.
- changed the JBossCX examples in jboss.jcml to use the Minerva resource
adapters bundled with JBoss instead of the BlackBox adapters.
- temporarily removed the Minerva XA resource adapter until Aaron fixes it.
- some minor cosmetic changesto jboss.jcml.
Revision Changes Path
1.61 +34 -0 jboss/src/build/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss/src/build/build.xml,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- build.xml 2001/04/15 05:12:12 1.60
+++ build.xml 2001/04/15 05:41:20 1.61
@@ -50,10 +50,12 @@
<property name="build.util.classes.dir" value="${build.dir}/util/classes/"/>
<property name="build.metadata.classes.dir"
value="${build.dir}/metadata/classes"/>
<property name="build.verifier.classes.dir"
value="${build.dir}/verifier/classes"/>
+ <property name="build.deployer.classes.dir"
value="${build.dir}/deployer/classes/"/>
<property name="verifier.classpath"
value="${build.verifier.classes.dir}"/>
<property name="util.classpath"
value="${build.util.classes.dir};${src.lib.dir}/ejb.jar;${lib.dir}/jmxri.jar"/>
+ <property name="deployer.classpath"
value="${build.deployer.classes.dir};${lib.dir}/jmxri.jar"/>
<!-- to use other xml parsers - add them to this list (yuck) - these jars get
put into jboss' main classpath - from whence everything else is loaded.
The xml.jar is only here to support the ejx editor app.
@@ -253,6 +255,7 @@
<mkdir dir="${dist.dir}/db"/>
<mkdir dir="${dist.dir}/db/hypersonic"/>
<mkdir dir="${dist.dir}/deploy"/>
+ <mkdir dir="${dist.dir}/deploy/lib"/>
<mkdir dir="${dist.dir}/log"/>
<mkdir dir="${dist.dir}/db"/>
<mkdir dir="${dist.dir}/db/jbossmq"/>
@@ -300,6 +303,9 @@
<copy todir="${dist.dir}/client">
<fileset dir="${src.client.dir}"/>
</copy>
+ <copy todir="${dist.dir}/deploy/lib">
+ <fileset dir="${etc.dir}/deploy"/>
+ </copy>
</target>
<!-- =================================================================== -->
@@ -459,6 +465,34 @@
includes="org/jboss/util/**,
org/jboss/logging/**,
org/jboss/monitor/**"
+ />
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Creates the JBoss Deployer lib. -->
+ <!-- -->
+ <!-- This is needed (in addition to jboss-util.jar) by modules that -->
+ <!-- implement a deployer. -->
+ <!-- =================================================================== -->
+ <target name="jboss-deployer" depends="init">
+
+ <mkdir dir="${build.deployer.classes.dir}"/>
+
+ <javac srcdir="${src.dir}"
+ destdir="${build.deployer.classes.dir}"
+ classpath="${deployer.classpath}"
+ debug="on"
+ deprecation="off"
+ optimize="off"
+ includes="org/jboss/deployment/DeployerMBean.java,
+ org/jboss/deployment/DeployerMBeanSupport.java,
+ org/jboss/deployment/DeploymentException.java"
+ />
+
+ <mkdir dir="${external.dir}"/>
+ <jar jarfile="${dist.dir}/external/jboss-deployer.jar"
+ basedir="${build.deployer.classes.dir}"
+ includes="org/jboss/deployment/**"
/>
</target>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development