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 dtayl <dt...@stanford.edu> on 2007/08/27 03:00:06 UTC

Getting value of defaultBranch from Ant?

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?

ciao
dtayl

Re: Getting value of defaultBranch from Ant?

Posted by Xavier Hanin <xa...@gmail.com>.
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

ciao
> dtayl
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/