Not sure, but why does it matter what the names are in the cache?

I would say that specifying a version for something is best practice anyway.

Also, what is the layout of your repository like? Surely that has revision
numbers in it! Otherwise how are you going to know what version of axis or
whatever you are dependent on?

On 6/8/07, Bhatia Saurabh <[EMAIL PROTECTED]> wrote:

U r right. Axis being an external jar, it doesnt have an ivy file, so when
ivy does a resolve from the rep to the cache, it changes its file-name.

The problem is however, also linked to my projects that do have an ivy
file in which for every dependency, I have specified the following:

<dependencies>
    <dependency org="ofac" name="OFACPool" rev="prod" changing="true"/>
</dependencies>

Now, when ivy does a resolve to the cache, it changes the filename to
OFACPool-prod.jar; I wanted to keep the filenames same as in the
repository since the revision part I would like to keep to myself and Ivy
and would have preferred to maintain the same file names.

Is there a way to do this ?

Thanks


-----Message d'origine-----
De: John Gill [mailto:[EMAIL PROTECTED]
Envoyé: jeudi, 7. juin 2007 14:37
À: [email protected]
Objet: Re: file name changes after resolve

What does the ivy.xml file look like for axis?

My guess is that it is expecting you to use [revision] in the pattern, and
wants to store in the cache with a revision. There is also a cache pattern
in the settings file. cacheArtifactPattern defaults to
[organisation]/[module]/[type]s/[artifact]-[revision].[ext] so if you have
no revision in your ivy.xml for axis, it will be as if it is
[organisation]/[module]/[type]s/[artifact]-.[ext] which is what you are
getting.

You really need a revision specified otherwise it all breaks down.

On 6/7/07, Bhatia Saurabh <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
>
>
> In my repository, I have the file names in their original form e.g.
> axis.jar.
>
> Resolve: file name changes in the local cache to axis-.jar
>
> Retrieve: Since Ivy picks up the files from the local cache, I have the
> files with names changed in my IDE as well in my lib directory.
>
>
>
> I also changed the ivy.properties file in the ivy distribution on my
> classpath to contain:
>
> ivy.retrieve.pattern = ${ivy.lib.dir}/[artifact].[ext]
>
> ivy.deliver.ivy.pattern = ${ivy.distrib.dir}/[type]s/[artifact].[ext]
>
> ivy.publish.src.artifacts.pattern =
> ${ivy.distrib.dir}/[type]s/[artifact].[ext]
>
>
>
> Still nothing seems to work. Looking for ideas.
>
>
>
> What should I change ?
>
>
>
> Thanks
>
>


--
Regards,
John Gill




--
Regards,
John Gill

Reply via email to