You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Jan Matèrne (JIRA)" <ji...@apache.org> on 2010/07/14 06:59:49 UTC
[jira] Commented: (IVY-334) Add extension for path- and
fileset-types to ivy
[ https://issues.apache.org/jira/browse/IVY-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888196#action_12888196 ]
Jan Matèrne commented on IVY-334:
---------------------------------
Ant 1.7 introduces an interface org.apache.tools.ant.types.ResourceCollection, which could be implemented by some of the Ivy tasks.
E.g.
public class IvyCachePath extends IvyCacheTask implements ResourceCollection {
String tmpPathId = "_noRealReference_" + System.currentTimeMillis();
public void init() {
getProject().getReference(tmpPathId) != null {
pathid = tmpPathId;
doExecute();
}
}
public isFilesystemOnly() {
init();
return true;
}
public Iterator iterator() {
return ((Path)getProject().getReference()).iterator();
}
public int size() {
init();
return ((Path)getProject().getReference()).size();
}
...
}
> Add extension for path- and fileset-types to ivy
> ------------------------------------------------
>
> Key: IVY-334
> URL: https://issues.apache.org/jira/browse/IVY-334
> Project: Ivy
> Issue Type: New Feature
> Components: Ant
> Affects Versions: 1.4
> Reporter: Maarten Coene
>
> As discussed in some other JIRA issue, it would be a good idea (if technically possible) to add path- en fileset extensions.
> A simple example which would be possible with this:
> <classpath>
> <ivypath file="ivy.xml" conf="compile" />
> <pathelement location="lib/helper.jar"/>
> </classpath>
> regards,
> Maarten
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.