ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: weirdness with "multi-project" tutorial
Date Sun, 09 Dec 2007 14:31:18 GMT
On Dec 9, 2007 3:32 AM, Phillip Rhodes <mindcrime@cpphacker.co.uk> wrote:

> Hi all, I've noticed what seems to be a discrepancy with the
> multi-project tutorial.  If I do a "publish-local" in one of
> the projects (say, "sizewhere" the place where the artifacts
> are published looks like this:
>
> multi-project/repository/local/org.apache.ivy.example/sizewhere
>
> note that the organisation is part of the path that gets created.
>
> But, in the common.xml, in the "clean-local" task, the "delete"
> doesn't specify the organisation as part of the path, so nothing
> is ever deleted on a "clean-local" (since the actual path that it's
> trying to delete doesn't exist):
>
>  <target name="clean-local" description="--> cleans the local repository
> for the current module">
>          <delete dir="${ivy.local.default.root}/${ant.project.name}"/>
> </target>
>
> I modified my copy of common.xml as follows and this seems to work.  Not
> sure if this was what was intended to be in the tutorial or not, but
> this works:
>
>  <target name="clean-local" description="--> cleans the local repository
> for the current module">
>          <ivy:info file="${basedir}/ivy.xml" />
>          <delete
> dir="${ivy.local.default.root}/${ivy.organisation}/${ant.project.name}"/>
> </target>
>
You're absolutely right, good catch!

Could you open an issue in JIRA for that?

Xavier

>
>
>
> TTYL,
>
>
> --
> Phillip Rhodes
> Chief Architect - OpenQabal
> https://openqabal.dev.java.net
>



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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message