ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <>
Subject [PATCH] resolve src attribute of ZIP <fileset>
Date Thu, 25 Jan 2001 10:05:12 GMT
Yes it is my designated patch day! Bear with me...

I noticed that when using the new <zip><fileset
src="..../"/></zip> (cool by the way!), the src attribute to the
<fileset> is passed as a String and is thus not resolved against the
project basedir. Instead it might be resolved against the VM's working
directory, wherever that may be. So I changed a couple classes to use
File instead of String and it seems to work better (the project resolves
it when setting the attribute, like you would expect).

(A suggestion: have the Ant startup script set the CWD to something
deliberately ridiculous, like /tmp, so that we find these problems
earlier rather than later and fix them...ideally no part of Ant's
behavior would be affected by the CWD. E.g. when running inside NetBeans
the CWD is something quite arbitrary, no relation to your Ant project at


Jesse Glick   <>
NetBeans, Open APIs  <>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR
View raw message