Thanks Michael.

That's exactly the point I had missed. The [artifact] pattern is in fact a very 
nice flexibility option that allows to have artifact names differing from the 
module name and its default value is perfectly ok for my needs.

Best regards,

        John

-----Message d'origine-----
De : Partridge, Michael [mailto:michael.partri...@shps.com] 
Envoyé : jeudi, 29 janvier 2009 19:39
À : ivy-user@ant.apache.org
Objet : RE: Default pattern for [artifact]

You might do something like this in your ivysettings.xml:

<!--defines your repository layout, in effect-->
<property name="ivy.local.default.artifact.pattern"
value="[organisation]/[module]/[revision]/[organisation]-[artifact].[ext
]" /> 

<!--defines where ivy should look for artifacts to publish-->
<property name="ivy.publish.src.artifacts.pattern"
value="dist/[organisation]-[artifact].[ext]"/>

If you plan to publish multiple types of artifacts (jar, source,
javadoc), you'll need to use [type] in
ivy.publish.src.artifacts.pattern.

-----Original Message-----
From: Bonvin John [mailto:jbon...@vaudoise.ch] 
Sent: Thursday, January 29, 2009 7:00 AM
To: ivy-user@ant.apache.org
Subject: Default pattern for [artifact]

Hello all !

I'm new to Ivy and currently in the process of understanding + testing
it as a potential tool for managing our dependencies between modules. So
please forgive me if my question is too simple or betrays my
misunderstanding ;-).

The ivy doc says that the default name of an artifact is the module
name. If anything else is desired, it must be specified in the 'name'
attribute of the 'artifact' tag in the ivy file.

What if our artifacts (nearly) all share the same pattern for naming,
e.g. [artifact]=[organisation]-[module] instead of the default
[artifact]=[module] ? I'd like to avoid having to type twice, for each
of my modules, the organisation and the module in my ivy file. I'd
imagine there could be some place in the ivy settings file where this
pattern could be specified, but have found nothing in the ivy doc nor on
the net.

Thank you for your kind assistance.

        John
_Disclaimer 
Vaudoise.ch________________________________________________________________
Le présent courriel, y compris les pièces jointes, s'adresse exclusivement à la 
(aux) personne(s) ou à la société à laquelle (auxquelles) il est destiné et 
peut comporter des informations confidentielles et/ou protégées par la loi. 
Toute divulgation, reproduction ou utilisation de ces informations est 
interdite et peut être illégale. Si vous n'êtes pas destinataire de ce 
courriel, merci de le détruire immédiatement et d'en aviser l'expéditeur.
This e-mail, including attachments, is intended for the person(s) or company 
named and may contain confidential and/or legally privileged information. 
Unauthorized disclosure, copying or use of this information may be unlawful and 
is prohibited. If you are not the intended recipient, please delete this 
message and notify the sender.

Reply via email to