ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Gordon" <>
Subject RE: ant custom selectors
Date Tue, 22 Apr 2003 13:43:11 GMT



They're very easy to write - just subclass, override isSelected
and setParameters.

In your case you'd probably want to stream through the file looking through
comments for the sequence "@include" or whatever string you'd like to
determine what goes in what jar.

Then your fileset which you'd use jar would look like

<fileset id="clientjar.fileset" dir="${build.dir}">
  <include name="**/*.class"/>
  <custom classname="">
    <param name="javabasedir" value="${java.src}"/>
    <param name="include" value="swinggui,client,common"/>

You can then reference the fileset with a refid of clietjar.fileset in your
jar task.

Word of warning, early versions of ANT don't call setProject on the selector
when it's created - I think it's fixed in the latest.


-----Original Message-----
From: Hanasaki JiJi []
Sent: 22 April 2003 14:23
To: Tim Gordon
Subject: ant custom selectors

could you point out a link about these "custom selectors"?  Or, can I
resue your code?
= Management is doing things right; leadership is doing the     =
=       right things.    - Peter Drucker                        =
=       =
= | |  =

View raw message