ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ghadi Mahmoudi" <ghadi.mahmo...@cosens.de>
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


COSENS GmbH
Lerchenkamp 11
31137 Hildesheim
Tel.: +49 5121 17750-43
Fax: +49 5121 17750-49
E-Mail: ghadi.mahmoudi@cosens.de
www.cosens.de

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



-----Ursprüngliche Nachricht-----
Von: otakuj462@gmail.com [mailto:otakuj462@gmail.com] Im Auftrag von
Jake Beard
Gesendet: Dienstag, 23. Dezember 2008 18:21
An: user@ant.apache.org
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,

Jake

[0] http://ant-contrib.sourceforge.net/tasks/tasks/index.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message