Reputation: 10243
consider the following example:
<project basedir="${env.DIR}">
...
</project>
Is it possible to access an environment variable in the project element along these lines?
Upvotes: 3
Views: 357
Reputation: 468
If you call your build file from Eclipse, to set the Base Directory property from the task that runs the ant build file you can:
${env_var.DIR}
Upvotes: 0