ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Corey Jewett ...@syntheticplayground.com>
Subject Re: Problem with metainf
Date Sat, 21 Feb 2004 02:22:45 GMT
metainf is a jar element not a separate task. Did you mean to terminate  
jar with the trailing slash?

Corey


On Friday, February 20, 2004, at 04:43 PM, Avery Marvin R wrote:

> My ant handbook tells me that this should work, but it doesn't. Here is
> my jar target script-
>
> 	<target name="jar" depends="init, compile">
> 		
> 		<jar basedir="${dir_classes}"
> destfile="${dir_jar}/${app.name}_batch.jar"
> manifest="${dir_metadata}/META-INF/MANIFEST.MF"/>
> 		<metainf dir="${dir_metadata}/META-INF">
> 			<include name="*.xml"/>
> 			<include name="*.xmi"/>
> 		</metainf>
> 		
> 	</target>
>
> When I run it I get the following
>
> ant jar
> .
> .
> .
> jar:
>       [jar] Building jar:
> D:\view_root\marvins_dev_vu\cisprod\codebase\j2ee\batch\jar\CIS_batch.j 
> ar
>
> BUILD FAILED
> D:\view_root\marvins_dev_vu\cisprod\codebase\j2ee\batch\build.xml:100:  
> Could
> not create task or type
>  of type: metainf.
>
> Ant could not find the task or a class this task relies upon.
> .
> .
> .
>
>
>
>
> What am I doing wrong??? I'm using ant 1.6.1. Thanks in advance!
>
> Marvin A


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


Mime
View raw message