| Home » Language IDEs » C / C++ IDE (CDT) » Why make and not ant
 Goto Forum:| 
| Why make and not ant [message #3439] | Wed, 12 December 2001 08:04  |  | 
| Eclipse User  |  |  |  |  | When I try to rebuild my c++ project I see that the code tries to launch gmake. Is this going to change?
 |  |  |  |  |  |  |  |  | 
| Re: Why make and not ant [message #4049 is a reply to message #3605] | Wed, 12 December 2001 11:33   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: c4eclipse.nospam.ca.ibm.com 
 Shmuel,
 
 We know there is lots of C and C++ code using make today.  Many
 complex builds use shell or perl scripts, too.   We want to provide value for
 those developers without requiring them to reengineer their builds - in
 complex projects, hacking the build is often scarier than hacking the C - so
 we will continue to provide the command-line build capability.
 
 We also want builds to be able to run on a remote machine.  Ant can do this,
 but only if it doesn't depend on Eclipse project information.  We have also
 received feedback from users who don't like IDEs that "take over" their
 source and lock them in, and that is another reason we want support builds
 using external tools.
 
 I think it is also true that Ant is really not targetted at C development.
 It has lots of builtin and optional tasks for Java and XML (javac, jar, rmic,
 javacc, ejb, junit ...) but nothing for gcc, gas, ld, ar.   You would need to
 construct each command line and "exec" them,  is this really easier
 to do with ant than with make?
 
 Maybe you can help us answer some of these questions.
 Are you using Ant to build C or C++ today?
 What kind of integrated support would you find useful?
 
 Brian Thomson
 IBM
 
 shmuel siegel wrote:
 
 > I'll try again.
 > I was wondering why the build process is using an external tool when eclipse
 > itself provides ant as a build mechanism. Is the use of an external tool a
 > temporary feature or will c++ always use a system make command.
 >
 > "Antti Lukats" <antti@case2000.com> wrote in message
 > news:9v7kjn$bh5$1@rogue.oti.com...
 > > If you did step trough the wizard it was asking what to use as make
 > > gmake
 > > was default, you can change it
 > > antti
 > >
 > > "shmuel siegel" <hard2@writeme.com> wrote in message
 > > news:9v7kas$b9f$1@rogue.oti.com...
 > > > When I try to rebuild my c++ project I see that the code tries to launch
 > > > gmake. Is this going to change?
 > > >
 > > >
 > >
 > >
 |  |  |  |  | 
| Re: Why make and not ant [message #4193 is a reply to message #4049] | Wed, 12 December 2001 17:33   |  | 
| Eclipse User  |  |  |  |  | Brian Thomson wrote: 
 > Shmuel,
 >
 > We know there is lots of C and C++ code using make today.  Many
 > complex builds use shell or perl scripts, too.   We want to provide value
 > for those developers without requiring them to reengineer their builds -
 > in complex projects, hacking the build is often scarier than hacking the C
 > - so we will continue to provide the command-line build capability.
 >
 > We also want builds to be able to run on a remote machine.  Ant can do
 > this,
 > but only if it doesn't depend on Eclipse project information.  We have
 > also received feedback from users who don't like IDEs that "take over"
 > their source and lock them in, and that is another reason we want support
 > builds using external tools.
 >
 > I think it is also true that Ant is really not targetted at C development.
 > It has lots of builtin and optional tasks for Java and XML (javac, jar,
 > rmic,
 > javacc, ejb, junit ...) but nothing for gcc, gas, ld, ar.   You would need
 > to
 > construct each command line and "exec" them,  is this really easier
 > to do with ant than with make?
 >
 > Maybe you can help us answer some of these questions.
 > Are you using Ant to build C or C++ today?
 > What kind of integrated support would you find useful?
 >
 > Brian Thomson
 > IBM
 >
 > shmuel siegel wrote:
 >
 >> I'll try again.
 >> I was wondering why the build process is using an external tool when
 >> eclipse itself provides ant as a build mechanism. Is the use of an
 >> external tool a temporary feature or will c++ always use a system make
 >> command.
 >>
 >> "Antti Lukats" <antti@case2000.com> wrote in message
 >> news:9v7kjn$bh5$1@rogue.oti.com...
 >> > If you did step trough the wizard it was asking what to use as make
 >> > gmake
 >> > was default, you can change it
 >> > antti
 >> >
 >> > "shmuel siegel" <hard2@writeme.com> wrote in message
 >> > news:9v7kas$b9f$1@rogue.oti.com...
 >> > > When I try to rebuild my c++ project I see that the code tries to
 >> > > launch gmake. Is this going to change?
 >> > >
 >> > >
 >> >
 >> >
 There has been much discussion of C and C++ tasks for Ant on the Ant
 discussion list.  I think, but I have not followed it up, that there
 are such tasks, at least in prototype currently available.  I guess
 that as these are firmed up and added formally to Ant that it will be
 necessary to include them here (but as an option).  For pure C/C++
 projects I can see that using make etc is the norm and forcing the
 use of Ant would merely alienate some potential users, but for work
 such as JNI code which is part of a larger Java project then I think
 that Ant would be better.  For the rest it will a mix, and so provision
 needs to be made for both (oh dear, more coding required).
 |  |  |  |  | 
| Re: Why make and not ant [message #4333 is a reply to message #4049] | Thu, 13 December 2001 05:54   |  | 
| Eclipse User  |  |  |  |  | Brian, Of course nobody can argue with the idea of providing backward compatibility
 with existing projects. I also agree with those users who complain that an
 IDE often gets in the way especially when the source code is not "c" but
 something like yacc. I am not qualified to discuss the relative merits of
 make and ant since I have never deliberately used ant, my Java IDE's did it
 for me.
 That said, your response leaves me wondering if the CDT and JDT developers
 are talking to each other. The JDT seems perfectly willing to impose
 development standards on its users ( witness the threads in eclipse.tools
 that discuss filesystem hierarchy, sharing of source between projects, using
 alternative Java compilers, etc.)  I had come to expect that the CDT would
 be self contained and was therefore surprised to see dependencies on make,
 gcc, adb, ld etc. This will certainly make it harder to have a cross
 platform system. It also leaves me wondering what the plans are for mixed
 language development.
 I don't really care what tools you use behind the scenes, provided that they
 exist on my development machine. What would really interest me more than
 just another C++ IDE would be strong integration between the java and C++
 worlds. The framework could provide the necessary interfacing to allow java
 to call c and c to call java. The framework would then be able to do some
 fairly fancy debugging (please don't ask me how). As a developer in a
 changing world, and in particular, one that needs to develop for many
 platforms, the ability to do incremental ports between the two languages
 would be fantastic. Am I just dreaming?
 
 "Brian Thomson" <c4eclipse@nospam.ca.ibm.com> wrote in message
 news:3C1786CE.D166212F@nospam.ca.ibm.com...
 > Shmuel,
 >
 > We know there is lots of C and C++ code using make today.  Many
 > complex builds use shell or perl scripts, too.   We want to provide value
 for
 > those developers without requiring them to reengineer their builds - in
 > complex projects, hacking the build is often scarier than hacking the C -
 so
 > we will continue to provide the command-line build capability.
 >
 > We also want builds to be able to run on a remote machine.  Ant can do
 this,
 > but only if it doesn't depend on Eclipse project information.  We have
 also
 > received feedback from users who don't like IDEs that "take over" their
 > source and lock them in, and that is another reason we want support builds
 > using external tools.
 > .........
 > Brian Thomson
 > IBM
 >
 |  |  |  |  | 
| Re: Why make and not ant [message #6730 is a reply to message #4333] | Fri, 14 December 2001 19:09   |  | 
| Eclipse User  |  |  |  |  | Shmuel, 
 I don't discount the value of language IDEs built on Eclipse, and fully expect to
 see many of them as developers warm up to the platform and learn what it can
 do.   But I do agree that you get the most out of an integration platform when
 you integrate things, and the combinations of language support create new
 opportunities.
 
 Rather than starting with the build,  I'd be more likely to "drewl" over seamless
 debugging across the Java/C boundary.    So, we are aware of the possibilities,
 but in case we missed any please don't hold back with your ideas.
 
 Regarding CDT not being self contained,  remember that we are just a component.
 The solution involves us, plus Eclipse, a JRE, and a Linux system.  That combination
 provides all the pieces you need (maybe the Linux distributors on the Eclipse board
 are listening?)
 
 Brian
 
 shmuel siegel wrote:
 
 > Brian,
 > Of course nobody can argue with the idea of providing backward compatibility
 > with existing projects. I also agree with those users who complain that an
 > IDE often gets in the way especially when the source code is not "c" but
 > something like yacc. I am not qualified to discuss the relative merits of
 > make and ant since I have never deliberately used ant, my Java IDE's did it
 > for me.
 > That said, your response leaves me wondering if the CDT and JDT developers
 > are talking to each other. The JDT seems perfectly willing to impose
 > development standards on its users ( witness the threads in eclipse.tools
 > that discuss filesystem hierarchy, sharing of source between projects, using
 > alternative Java compilers, etc.)  I had come to expect that the CDT would
 > be self contained and was therefore surprised to see dependencies on make,
 > gcc, adb, ld etc. This will certainly make it harder to have a cross
 > platform system. It also leaves me wondering what the plans are for mixed
 > language development.
 > I don't really care what tools you use behind the scenes, provided that they
 > exist on my development machine. What would really interest me more than
 > just another C++ IDE would be strong integration between the java and C++
 > worlds. The framework could provide the necessary interfacing to allow java
 > to call c and c to call java. The framework would then be able to do some
 > fairly fancy debugging (please don't ask me how). As a developer in a
 > changing world, and in particular, one that needs to develop for many
 > platforms, the ability to do incremental ports between the two languages
 > would be fantastic. Am I just dreaming?
 |  |  |  |  | 
| Re: Why make and not ant [message #6736 is a reply to message #4193] | Fri, 14 December 2001 19:11  |  | 
| Eclipse User  |  |  |  |  | David, 
 Thanks for the  pointer.   There is a nascent project called ant-contrib on
 SourceForge where the prototypes are being merged.  The direction they
 are taking looks like it will probably work well for simple C, and especially
 for incidental C in a mostly Java project.   We'll want to keep an eye on
 their progress.
 
 Brian
 
 David Goodenough wrote:
 
 > There has been much discussion of C and C++ tasks for Ant on the Ant
 > discussion list.  I think, but I have not followed it up, that there
 > are such tasks, at least in prototype currently available.  I guess
 > that as these are firmed up and added formally to Ant that it will be
 > necessary to include them here (but as an option).  For pure C/C++
 > projects I can see that using make etc is the norm and forcing the
 > use of Ant would merely alienate some potential users, but for work
 > such as JNI code which is part of a larger Java project then I think
 > that Ant would be better.  For the rest it will a mix, and so provision
 > needs to be made for both (oh dear, more coding required).
 |  |  |  | 
 
 
 Current Time: Fri Oct 31 19:14:06 EDT 2025 
 Powered by FUDForum . Page generated in 0.06517 seconds |