[
https://issues.apache.org/jira/browse/IVY-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888196#action_12888196
]
Jan Matèrne edited comment on IVY-334 at 7/14/10 1:02 AM:
----------------------------------------------------------
Ant 1.7 introduces an interface org.apache.tools.ant.types.ResourceCollection,
which could be implemented by some of the Ivy tasks.
E.g.
{code:title=IvyCachePath.java|borderStyle=solid}
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();
}
...
}
{code}
was (Author: jhm):
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.