ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Derricutt <m...@talios.com>
Subject Excluding empty dirs from jars?
Date Tue, 12 Feb 2002 02:15:54 GMT
How do I exclude empty directories in jars?

I have the following target:

	<target name="tdbase" depends="init">
		<javac
			srcdir="${src}"
			destdir="${build}"
			classpathref="projectlibs"
			deprecation="on"
			debug="on"
 
	includes="com/timedisciple/base/*,com/timedisciple/jdbc/*,com/timedisciple
/jrule/*"
		/>
		<jar jarfile="${lib}/tdbase.jar">
			<fileset dir="${build}" />
		</jar>
		<delete dir="${build}"/>		
	</target>


The result jar file seems to have empty base, jdbc, and jrule directories, 
which seem to be causing the jvm to crash when I later use this jar in a 
javac classpath...

Mark

                                   -- \m/ --
  "...if I seem super human I have been misunderstood." (c) Dream Theater
          mark@talios.com - ICQ: 1934853 JID: talios@myjabber.net

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


Mime
View raw message