On 8/27/07, dtayl <[EMAIL PROTECTED]> 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/

Reply via email to