Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-core-dev] Ant builder

Hi Doug,

I'm not ready to give you full specification now (just because I started to
work on it recently and it is not the only thing I'm doing now:-))).
First, there is an ant-contrib project
(http://sourceforge.net/projects/ant-contrib/) that works on this direction.
I haven't played a lot with it. It is based on ability to expand ant by
writing user tasks. Maybe we have to take useful things from this project.
From the first glance I see the following disadvantages :

-  it doesn't know anything about Eclipse
-  for each compiler it uses specific task provider

Advantage of user task approach: we can extensively use Eclipse builder
features (resource deltas for instance). Of course in this case almost
everything is in our hands - we can control all the build process.

In order to test ant feasibility for C project build purpose I tried to
create a simple test which is based completely on ant xml description
(without additional Java code), but at the same time can be useful enough.
It was a big surprise for me that I could to do it easy. Attached you can
find an example of ant-based project. It is already generic enough to adjust
itself to different project configuration using set of source file and
directory structure. There is a similarity with a regular make approach, but
for me  ant build file is much more clear. What I like in this is a maximal
using of ant's features without providing additional java-written
extensions. It can dramatically simplify support of product. On the other
hand, I cannot estimate now the performance of such builder. This is
important because it can be a bottleneck for big projects.

It would be great if you as well share your ideas about this issue.

Alex

----- Original Message -----
From: "Schaefer, Doug" <dschaefer@xxxxxxxxxxxx>
To: <cdt-core-dev@xxxxxxxxxxx>
Sent: Wednesday, September 11, 2002 11:56 AM
Subject: RE: [cdt-core-dev] Ant builder


> Hi Alex,
>
> Ant is a great example of an alternative build approach and will make sure
> we don't get too make-centric.
>
> I have used ant for building Java projects but haven't used it for C/C++
> projects.  Could you provide a description of how you are thinking of
> applying ant in the CDT context?  I want to make sure we consider this as
we
> consolidate requirements.
>
> Thanks,
> Doug Schaefer
>
> -----Original Message-----
> From: Alex Chapiro [mailto:achapiro@xxxxxxx]
> Sent: Wednesday, September 04, 2002 4:43 PM
> To: cdt-core-dev@xxxxxxxxxxx
> Subject: [cdt-core-dev] Ant builder
>
> FYI.
>
> I'm working on implementation of ant builder - alternative to make
approach.
>
> Alex Chapiro.
>
> _______________________________________________
> cdt-core-dev mailing list
> cdt-core-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-core-dev
> _______________________________________________
> cdt-core-dev mailing list
> cdt-core-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-core-dev
>

Attachment: ant.zip
Description: Zip compressed data


Back to the top