You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by David Taylor <dt...@stanford.edu> on 2007/09/10 23:29:48 UTC

Re: Getting value of defaultBranch from Ant?

xavier.hanin@gmail.com wrote:
> On 8/27/07, dtayl <dt...@stanford.edu> 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.

Thanks!
dtayl