ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <BBurg...@tiaa-cref.org>
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.

Ben

-----Original Message-----
From: Sommers, Elizabeth [mailto:SommersE@Pragmatics.com] 
Sent: Tuesday, January 24, 2006 1:09 PM
To: 'user@ant.apache.org'
Subject: War task


I am trying to build a war.  The files that should be included in the
lib
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="springframework/spring-web/1.2.5/spring-web-1.2.5.jar"/>
      <include
name="net/sourceforge/jexcelapi/jxl/2.5.7/jxl-2.5.7.jar"/>
      <include name="c3p0/c3p0/0.9.0/c3p0-0.9.0.jar"/>
	...
     </fileset>
</path>
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"
webxml="docroot/WEB-INF/web.xml">
			<lib refid="managed.class.path" />
			<lib dir="${sys.dir}">
				<include name="${project.distname}.jar"
/>
			</lib>
			<webinf dir="docroot/WEB-INF">
				<include name="**/*" />
				<exclude name="**/web.xml" />
			</webinf>
			<!-- enable for deploy to tomcat: -->
			<!--metainf dir="docroot/META-INF">
				<include name="**/*"/>
				</metainf-->
			<fileset dir="docroot">
				<include name="css/**/*.css" />
				<include name="images/**/*" />
				<include name="javascript/*.js" />
				<include name="*.jsp" />
			</fileset>
		</war>
	</target>


Thanks
Liz Sommers
sommers@pragmatics.com



____________________________ 
http://www.pragmatics.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



**************************************************************
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.
TIAA-CREF
**************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message