ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-395) Enhance <info/> task to access the 'publication', 'branch' and published artifacts as ant propeties.
Date Wed, 10 Feb 2010 20:19:27 GMT

    [ https://issues.apache.org/jira/browse/IVY-395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832172#action_12832172
] 

Maarten Coene commented on IVY-395:
-----------------------------------

Thanks for the patch Carl.

I see one problem: it is possible to define within 1 ivy.xml multiple artifacts with the same
name.
In your patch only one of these artifacts will be available as Ant properties.

Maybe you could change the properties to something like?
<property>.artifact.1.name="myartifact"
<property>.artifact.1.type="jar"
<property>.artifact.1.ext="jar"
<property>.artifact.1.confs="default,test"
<property>.artifact.2.name="myartifact"
<property>.artifact.2.type="sources"
<property>.artifact.2.ext="jar"
<property>.artifact.2.confs="source"
<property>.artifact.3.name=yourartifact

or

<property>.artifact.myartifact.1.type="jar"
<property>.artifact.myartifact.1.ext="jar"
<property>.artifact.myartifact.1.confs="default,test"
<property>.artifact.myartifact.2.type="sources"
<property>.artifact.myartifact.2.ext="jar"
<property>.artifact.myartifact.2.confs="source"
<property>.artifact.yourartifact.1.type=...


> Enhance <info/> task to access the 'publication', 'branch' and published artifacts
as ant propeties.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: IVY-395
>                 URL: https://issues.apache.org/jira/browse/IVY-395
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Ant
>    Affects Versions: 1.4.1
>            Reporter: paolo di tommaso
>         Attachments: ivy-395.patch
>
>
> The pubblication attribute on <info /> element in IVY file is very useful.
> When the attribute is not specified IVY set the attribute to the current timestamp. 
> It would be very useful to access to 'publication' attribute from ANT during artifacts
build using a ${ivy.publication} property. 
> Using ANT task <tstamp /> to simulate that can create incoherent  situation because
the two timestamps are not 'synchronized'
> Similarly, a property for the 'branch' attribute could be added.
> Access to the published artifacts declared in the ivy file as ant properties would also
be useful. This would allow a multi-project build system with a common build file define the
produced artifacts solely in the Ivy file and have the common build file retrieve the names
of the artifacts that it needs to create from that ivy file via the <info/> task.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message