ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <>
Subject RE: War task
Date Tue, 24 Jan 2006 18:14:12 GMT
The error is correct - you have managed.class.path defined as a path,
not a fileset.  Move the id="managed.class.path" attribute to the
fileset directly, rather than wrapping it in a path.


-----Original Message-----
From: Sommers, Elizabeth [] 
Sent: Tuesday, January 24, 2006 1:09 PM
To: ''
Subject: War task

I am trying to build a war.  The files that should be included in the
are in a fileset defined by

<path id="managed.class.path">
    <fileset dir="${M2_REPO}">
      <include name="log4j/log4j/1.2.6/log4j-1.2.6.jar"/>
      <include name="c3p0/c3p0/0.9.0/c3p0-0.9.0.jar"/>
I can't figure out how to include this.

I am getting an error of 
 managed.class.path  doesn't denote a zipfileset or a fileset

My war target is 
<target name="war" description="Create payload webapp">
		<mkdir dir="${sys.dir}" />
		<delete file="${sys.dir}/${project.distname}.war" />
		<war warfile="${sys.dir}/${project.distname}.war"
			<lib refid="managed.class.path" />
			<lib dir="${sys.dir}">
				<include name="${project.distname}.jar"
			<webinf dir="docroot/WEB-INF">
				<include name="**/*" />
				<exclude name="**/web.xml" />
			<!-- enable for deploy to tomcat: -->
			<!--metainf dir="docroot/META-INF">
				<include name="**/*"/>
			<fileset dir="docroot">
				<include name="css/**/*.css" />
				<include name="images/**/*" />
				<include name="javascript/*.js" />
				<include name="*.jsp" />

Liz Sommers


To unsubscribe, e-mail:
For additional commands, e-mail:

This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message