On 5/30/07, Stefan Bodewig <[EMAIL PROTECTED]> wrote:
On Tue, 29 May 2007, <[EMAIL PROTECTED]> wrote: > I am trying to add a single file to a jar.Where is the file? Inside a ZIP/JAR/WAR archive or in a plain directory on your disk? You use src for the former and dir in the directory case. > This works: > <zipfileset dir="${src}" prefix="WEB-INF" includes="web.xml" /> So it is in a directory. > This gives an error about not being able to access the file: > <zipfileset src="${src}/web.xml" prefix="WEB-INF" /> web.xml certainly is no valid ZIP archive, so this can't work. Why do you want to use src at all? Stefan
Maybe I'm doing this all backwards... I have a <jar> task and there are a bunch of <zipfileset>'s inside that point to the directories and files that get included in the jar. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
