ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ghadi Mahmoudi" <>
Subject AW: how to convert path composed of absolute paths to fileset?
Date Tue, 23 Dec 2008 18:14:05 GMT
I interested in a similar task, which is able to compile java sources
and then build a jar form the resulted classes (in addition to other
optional resources). The class path filed of the manifest should be also
automatically generated....
I there a solution? 

M.Sc. Ghadi Mahmoudi
System Engineer

Lerchenkamp 11
31137 Hildesheim
Tel.: +49 5121 17750-43
Fax: +49 5121 17750-49

Sitz der Gesellschaft: Hildesheim 
Handelsregister: Amtsgericht Hildesheim HRB 3620
Geschäftsführer: Dr. Hamed Amor

-----Ursprüngliche Nachricht-----
Von: [] Im Auftrag von
Jake Beard
Gesendet: Dienstag, 23. Dezember 2008 18:21
Betreff: how to convert path composed of absolute paths to fileset?

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. Thanks,



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

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

View raw message