ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Taylor <>
Subject Re: Getting value of defaultBranch from Ant?
Date Mon, 10 Sep 2007 21:29:48 GMT wrote:
> On 8/27/07, dtayl <> wrote:
>> Greetings -
>> I'm modifying our Ivy-based build system, to add support for
>> building/releasing from a branch. When the branch is created,
>> defaultBranch is set on the branch, so that artifacts are published to
>> the branch. Dependencies are generally resolved from fixed versions
>> bound during the release that the branch was created from (similar to
>> the scheme described in Mathias' survey).
>> The ant task that publishes a module integration also echoes the module
>> version to a script used to deploy that module. When publishing to a
>> branch, the script will need the branch name also. But I have not found
>> documentation of an ivy variable storing the value of defaultBranch. Is
>> there some way to get the value of defaultBranch from Ant?
> No, I don't think so. But what you can do is use an Ant property as
> defaultBranch, so that it's accessible from Ant too.
> Example:
> in Ant:
> <property name="ivy.default.branch" value="branchA" />
> in Ivy:
> defaultBranch="${ivy.default.branch}"
> Does it answer your needs?
> Xavier
Works like a charm.

Sorry for the delayed response.


View raw message