ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jake Beard" <>
Subject how to convert path composed of absolute paths to fileset?
Date Tue, 23 Dec 2008 17:20:35 GMT
Hi all,

I'm trying to do something which I think should be fairly simple, but
after having spent hours looking for a solution, the closest thing I
have found is to write a custom task. I feel that there must be a more
idiomatic way to fulfill this. What I am trying to do is, after
compiling a set of java files into classes, I want to take the
classpath, which is composed of absolute paths, and jar the files
referred to by those paths. Not conceptually difficult: just compile,
and jar the dependencies. Unfortunately, both jar and war/lib take a
fileset rather than a path. I've investigated the pathtofileset task
of antcontrib[0], but it seems to be unable to deal with absolute
paths. I haven't found anything else that attempts to resolve this. It
therefore seems like the best solution I am currently left with is to
role my own custom task, based on antcontrib's pathtofileset, that can
gracefully deal with absolute paths. If there's an easier, more
idiomatic way to do this that I am missing, I would greatly appreciate
if someone would guide me in the right direction.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message