referencing ant script location from within ant file
问题 I have a utility build script that gets called from a variety of project-specific build scripts on a build server. Everything works fine, until the relative directory structure changes. That is: trunk/ utilities/ imported.xml some_resource_file projectName/ importing.xml works just fine, but sometimes we need: trunk/ importing.xml utilities/ imported.xml some_resource_file projectName/ The problem is that imported.xml needs some_resource_file and currently gets to it by referring to ..