Hi,

It occurred to me that the way Ant reads property files in imported
build scripts is not very modular by default. As the manual explains, to
read a property file relative to the current script, you must do the
following:

<!-- imported.xml -->
<project name="imported" basedir="." default="...">
  <dirname property="imported.basedir" file="${ant.file.imported}"/>
  <property file="${imported.basedir}/imported.properties"/>
</project>

But on the other hand, the import task itself uses import paths relative
to the current build file. I would like to be able to do the same with
property files in imported build files, either like this:

  <import propertyfile="imported.properties"/>

Or somewhat more clumsy like this:

  <property file="imported.properties" scriptrelativepath="true"/>

Regards,
Sten Rosendahl ([EMAIL PROTECTED])
Front Capital Systems
Sungard Trading Systems

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to