java - In an ant build script, can I reference a path in a different build file? -
i have path id in 1 build file. have build file requires path containing same jars defined in first build file. instead of duplicating jars in second build file, can reference path defined in first build file second build file? can't import first build file using import tag various reasons. there other options?
you set path jars environment variable, , environment variables in second build file.
i not sure how export environment variables ant, here's how import them:
<property environment="env" /> <condition property="hostname" value="${env.targethostname}"> <isset property="env.targethostname" /> </condition> (targethostname being environment variable set previously)
Comments
Post a Comment