Leif,
If the altrmi jars are missing, then the buildfile barfs at parse stage
as the taskdef is invalid. By moving the taskdef to another build file
and delatating to it, the barf does not happen, and thus a warning is
possible.
Thoughts?
- Paul
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/instrument-client/build.xml,v
retrieving revision 1.9
diff -r1.9 build.xml
64,68d63
<
< <taskdef name="altrmiproxies"
<
classname="org.apache.commons.altrmi.generator.ant.AltrmiProxyTask">
< <classpath refid="project.class.path" />
< </taskdef>
116d110
<
121,128d114
< <mkdir dir="${build.genjava}"/>
<
< <delete>
< <fileset dir="${build.genjava}"
includes="AltrmiGenerated*.java"/>
< </delete>
< <delete>
< <fileset dir="${build.classes}"
includes="AltrmiGenerated*.class"/>
< </delete>
130,136c116,117
< <altrmiproxies genname="InstrumentManagerClient"
< srcgendir="${build.genjava}"
< classgendir="${build.classes}"
<
interfaces="org.apache.avalon.excalibur.instrument.manager.interfaces.InstrumentManagerClient"
<
additionalfacades="org.apache.avalon.excalibur.instrument.manager.interfaces.InstrumentableDescriptor,org.apache.avalon.excalibur.instrument.manager.interfaces.InstrumentDescriptor,org.apache.avalon.excalibur.instrument.manager.interfaces.InstrumentSampleDescriptor">
< <classpath refid="project.class.path" />
< </altrmiproxies>
---
> <ant antfile="altrmiproxies.xml" target="altrmiproxies"/>
>
CVS command finished execution
<?xml version="1.0"?>
<project name="Excalibur Instrument Client - Altrmi bits" default="altrmiproxies" basedir=".">
<!-- Classpath for product -->
<path id="project.class.path">
<pathelement path="${java.class.path}"/>
<pathelement location="${build.classes}"/>
<pathelement location="${avalon-framework.jar}"/>
<pathelement location="${excalibur-instrument-manager-interfaces.jar}"/>
<pathelement location="${commons-altrmi-client-impl.jar}"/>
<pathelement location="${commons-altrmi-client-interfaces.jar}"/>
<pathelement location="${commons-altrmi-common.jar}"/>
<pathelement location="${commons-altrmi-generator.jar}"/>
<pathelement location="${junit.jar}"/>
<pathelement location="${checkstyle.jar}"/>
</path>
<taskdef name="altrmiproxies"
classname="org.apache.commons.altrmi.generator.ant.AltrmiProxyTask">
<classpath refid="project.class.path" />
</taskdef>
<!-- Generates the altrmi proxies used by the client. -->
<target name="altrmiproxies">
<mkdir dir="${build.genjava}"/>
<delete>
<fileset dir="${build.genjava}" includes="AltrmiGenerated*.java"/>
</delete>
<delete>
<fileset dir="${build.classes}" includes="AltrmiGenerated*.class"/>
</delete>
<altrmiproxies genname="InstrumentManagerClient"
srcgendir="${build.genjava}"
classgendir="${build.classes}"
interfaces="org.apache.avalon.excalibur.instrument.manager.interfaces.InstrumentManagerClient"
additionalfacades="org.apache.avalon.excalibur.instrument.manager.interfaces.InstrumentableDescriptor,org.apache.avalon.excalibur.instrument.manager.interfaces.InstrumentDescriptor,org.apache.avalon.excalibur.instrument.manager.interfaces.InstrumentSampleDescriptor">
<classpath refid="project.class.path" />
</altrmiproxies>
</target>
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>