From: "Geoff Howard" <[EMAIL PROTECTED]>

> > > Now you are asking a bit much.  How is Ant to know what
> > components you
> > > need.
> >
> > It already does.
> > If you remove jars from the lib/optional dir it doesn't use
> > those features,
> > and doesn't include them in the config.
>
> Right - I knew this much.  I've looked at adding a condition in the
> "excludes" in prepare-src-main that could be controlled from a
> .ant.properties file to keep stuff we don't need out.  For instance:
>       <exclude name="**/poi/**" unless="poi.present"/>
> <exclude name="**/poi/**" if="poi.ignore"/>
> ...
>
> And set poi.ignore in the .ant.properties file in user.home so that fresh
> cvs checkouts which put all the jars back in again don't undo your
changes.
>
> Unfortunately, I can't find any Ant documentation which indicates whether
> you can combine both conditions into one statement ( unless="poi.present
AND
> !poi.ignore" ) which would be more maintainable.  This could also be done
if
> the class-exists task would take an unless argument.  I've looked at
> ClassAvailableTask and Task but can't quite figure out whether this is
> already provided for or would need to be coded for explicitly.

There is the <condition> task in Ant 1.5, but for 1,4 there are a couple of
methods for doing double-property conditions.
Look in the Ant faq, I'm sure it's there.

> What do you think?

It's a step forward +1.

> The issue of unwanted examples still remains however.  I'm guessing that
the
> only thing needed for this would be a build target with fewer
dependencies.

The samples need to finish the refactoring.
Any help here also would be greatly appreciated.   :-)

Hey, it's only xml, no Java invloved... come on, users, give us a hand!  :-D

--
Nicola Ken Barozzi                   [EMAIL PROTECTED]
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to