Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13823

Re: How to develop without an IDE?

From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.java.programmer
Subject Re: How to develop without an IDE?
Date 2012-04-23 21:11 +0200
Message-ID <9vlns0Fv8cU1@mid.individual.net> (permalink)
References (3 earlier) <4f94765c$0$284$14726298@news.sunsite.dk> <jn23i9$4dk$1@news.albasani.net> <4f949830$0$295$14726298@news.sunsite.dk> <jn2icp$lnq$1@news.albasani.net> <jn2ng0$f00$1@speranza.aioe.org>

Show all headers | View raw


On 23.04.2012 06:57, Nasser M. Abbasi wrote:
> On 4/22/2012 10:28 PM, BGB wrote:
>
>>>>
>>>> it does technically work though, and may make some sense, say, if
>>>> one is
>>>> also building a bunch of C code (say, as part of a JNI wrapper for
>>>> native code or similar), or is generally part of a larger project for
>>>> which make is already used.
>>>
>>> I would rather call ant from make or make from ant to handle those
>>> situations.
>>>
>>
>> yes, this works as well.
>>
>> I guess it is probably whichever is more convenient.
>
> I found that using one good tool for everything is better than
> mixing things.

Which, if followed religiously, will lead you into a situation where it 
can get really awkward to do things with tool A which would be extremely 
easy with tool B.

> Also, gnumake can do so many more things than just build source
> code. I use it to update my html files and pdf files from
> Latex sources, and other such things.

No wonder because make doesn't do *any* of these things.  Make evaluates 
timestamps along dependencies (mostly between files) and invokes other 
programs that do all the work.  GNU make additionally has an extremely 
large database of predefined rules, has functions and other capabilities.

> As long as the idea that drives the tool is: Perform this action
> to update these prerequisites that this target depends on, then better
> to use one tool that does this better and for many other things, not
> just .java files.

Interestingly GNU make's large built in rule database does not contain 
anything related to compiling Java.  How do you create your Makefiles in 
a way as to invoke javac only for those files which have changed - 
especially in light of the fact that one Java source file might create 
multiple .class files?

> In my tree, I have .f, .f90, .c, .c++, .java, .tex, and many
> other files that I want to 'update' in my tree.
>
> Using one tool for all, is better, because one becomes better
> at using this one tool, and things are integrated better.
> gnumake+bash is pretty much all what I need.

I'm with Leif: if you drink your own cool aid you should be throwing out 
all those languages and resort to language [ ] only.

> I tried ant, and found that I am doing the same thing I
> am already doing in my Makefile, just had to use different
> syntax. (I also did not like XML syntax). Also looked at Ruby
> script, and few other things. They all pretty much try to do
> what Make allready does but using different syntax.

I disagree: ant is very different from make.  Ant has built in tasks and 
knows itself how to accomplish them.  You can even teach it more tasks 
via its extension interface.  ant rules for building Java projects are 
almost certainly a lot simpler than the same for make - as that example 
proves.

> It is very easy to use gnumake to build Java and make jar files and
> all. Here is a link showing Makefile for Java from the best book
> on gnumake "Managing Projects with GNU make" by Robert Mecklenburg
>
> http://www.makelinux.net/make3/make3-CHP-9#make3-CHP-9

I did not see the advertized Makefile example but found this gem 
(quoting from that page):

"Code declared to be within the a.b.c package would be compiled to class 
files in the a/b/c directory. This means that make's normal algorithm 
for associating a binary file with its source fails."

Or did you mean this link?
http://www.makelinux.net/make3/make3-CHP-9-SECT-2

I am counting 200+ lines in this Makefile.  It inefficiently invokes 
javac on all Java sources and defines functions for things that ant can 
do out of the box.  As a consequence you have to search in different 
locations to find out which packages go into which jar file.  The same 
is probably 15% of the lines as an ant file.  Sorry, but that example is 
no advertisement for using make to build Java projects.

> Chapter 9 is all about using make for build Java.
>
> As others said. If you are using an IDE with its own build
> system. It is better to have your own makefile to build
> your tree, independent of what the IDE has. This way, if
> you changed IDE, or move your tree somewhere else where
> this IDE is not available, you can still build your tree
> any where.

Modern IDE's usually have integration with ant and / or maven and will 
happily generate appropriate build files.

Kind regards

	robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-22 16:15 +0100
  Re: How to develop without an IDE? David Lamb <dalamb@cs.queensu.ca> - 2012-04-22 11:18 -0400
    Re: How to develop without an IDE? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-04-22 16:22 +0000
    Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-23 23:22 +0100
      Re: How to develop without an IDE? Lew <lewbloch@gmail.com> - 2012-04-23 16:44 -0700
        Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-24 15:03 +0100
          Re: How to develop without an IDE? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-24 11:24 -0300
            Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-24 09:07 -0700
              Re: How to develop without an IDE? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-24 14:07 -0300
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-25 09:10 -0700
                Re: How to develop without an IDE? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-25 21:04 -0300
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 22:29 -0400
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-29 20:32 -0700
                Re: How to develop without an IDE? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-30 07:09 -0300
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-30 22:16 -0400
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-05-01 10:19 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-01 18:56 -0400
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-05-01 19:15 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-05 18:45 -0400
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-05-07 09:58 -0700
              Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-24 21:10 -0400
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-25 09:13 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 22:34 -0400
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-29 20:35 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-30 22:09 -0400
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-05-01 10:23 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-01 19:03 -0400
                Re: How to develop without an IDE? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-01 16:18 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-01 19:33 -0400
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-05-01 19:21 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-05 18:49 -0400
                Re: How to develop without an IDE? Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-06 00:06 +0000
                Re: How to develop without an IDE? Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-06 00:06 +0000
                Re: How to develop without an IDE? Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-06 00:07 +0000
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-05 20:26 -0400
                Re: How to develop without an IDE? Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-06 11:38 +0000
                Re: How to develop without an IDE? markspace <-@.> - 2012-05-06 08:41 -0700
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-05-07 10:24 -0700
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-05-07 10:18 -0700
                Re: How to develop without an IDE? Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-06 00:06 +0000
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-05-07 10:12 -0700
          Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-24 21:08 -0400
          Re: How to develop without an IDE? Lew <noone@lewscanon.com> - 2012-04-25 00:57 -0700
            Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-25 13:48 +0100
              Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 23:17 -0400
      Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-23 20:55 -0400
  Re: How to develop without an IDE? Knute Johnson <nospam@knutejohnson.com> - 2012-04-22 08:41 -0700
  Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-22 12:36 -0400
    Re: How to develop without an IDE? Lew <noone@lewscanon.com> - 2012-04-22 11:35 -0700
      Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-22 17:21 -0400
        Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-04-22 16:15 -0700
          Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-22 19:45 -0400
            Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-04-22 20:28 -0700
              Re: How to develop without an IDE? "Nasser M. Abbasi" <nma@12000.org> - 2012-04-22 23:57 -0500
                Re: How to develop without an IDE? Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-04-23 02:06 -0500
                Re: How to develop without an IDE? "Nasser M. Abbasi" <nma@12000.org> - 2012-04-23 02:09 -0500
                Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-04-23 01:26 -0700
                Re: How to develop without an IDE? Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-04-23 04:36 -0500
                Re: How to develop without an IDE? Robert Klemme <shortcutter@googlemail.com> - 2012-04-23 21:11 +0200
                Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-23 23:15 +0100
                Re: How to develop without an IDE? markspace <-@.> - 2012-04-23 15:44 -0700
                Re: How to develop without an IDE? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-23 21:15 -0300
                Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-25 02:33 +0100
                Re: How to develop without an IDE? markspace <-@.> - 2012-04-24 18:59 -0700
                Re: How to develop without an IDE? Lew <lewbloch@gmail.com> - 2012-04-23 16:43 -0700
                Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-24 14:44 +0100
                Re: How to develop without an IDE? Martin Gregorie <martin@address-in-sig.invalid> - 2012-04-24 20:23 +0000
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-25 09:18 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 22:42 -0400
                Re: How to develop without an IDE? Robert Klemme <shortcutter@googlemail.com> - 2012-04-24 08:38 +0200
                Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-24 14:20 +0100
                Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-24 14:20 +0100
                Re: How to develop without an IDE? Lew <lewbloch@gmail.com> - 2012-04-24 13:36 -0700
                Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-25 02:09 +0100
                Re: How to develop without an IDE? Robert Klemme <shortcutter@googlemail.com> - 2012-04-25 07:55 +0200
                Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-25 12:18 +0100
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 22:37 -0400
                Re: How to develop without an IDE? Lew <noone@lewscanon.com> - 2012-04-25 01:01 -0700
                Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-25 09:20 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 22:50 -0400
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-24 21:17 -0400
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 23:27 -0400
                Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-04-29 11:16 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-29 14:33 -0400
                Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-04-29 22:48 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-30 22:03 -0400
                Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-04-30 22:59 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-01 19:09 -0400
                Re: How to develop without an IDE? Lew <lewbloch@gmail.com> - 2012-05-02 11:01 -0700
                Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-05-02 12:21 -0700
                Re: How to develop without an IDE? Lew <lewbloch@gmail.com> - 2012-05-02 14:20 -0700
                Re: How to develop without an IDE? Patricia Shanahan <pats@acm.org> - 2012-05-02 14:41 -0700
                Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-05-02 16:52 -0700
                Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-05-05 18:31 -0400
                Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-05-06 14:19 -0700
                Re: How to develop without an IDE? Lew <lewbloch@gmail.com> - 2012-05-07 11:16 -0700
  Re: How to develop without an IDE? markspace <-@.> - 2012-04-22 10:17 -0700
  Re: How to develop without an IDE? Martin Gregorie <martin@address-in-sig.invalid> - 2012-04-22 19:11 +0000
    Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-25 02:43 +0100
  Re: How to develop without an IDE? Steven Simpson <ss@domain.invalid> - 2012-04-22 23:32 +0100
  Re: How to develop without an IDE? Roedy Green <see_website@mindprod.com.invalid> - 2012-04-23 00:33 -0700
  Re: How to develop without an IDE? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-23 10:25 -0700
    Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-23 23:38 +0100
      Re: How to develop without an IDE? markspace <-@.> - 2012-04-23 15:50 -0700
        Re: How to develop without an IDE? Patricia Shanahan <pats@acm.org> - 2012-04-23 16:21 -0700
        Re: How to develop without an IDE? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-23 22:09 -0300
        Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-24 13:53 +0100
          Re: How to develop without an IDE? markspace <-@.> - 2012-04-24 08:12 -0700
            Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-24 09:16 -0700
          Re: How to develop without an IDE? markspace <-@.> - 2012-04-24 08:14 -0700
          Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 23:11 -0400
          Re: How to develop without an IDE? Robert Klemme <shortcutter@googlemail.com> - 2012-04-29 13:21 +0200
        Re: How to develop without an IDE? JussiJ <jussij@zeusedit.com> - 2012-05-07 07:19 -0700
      Re: How to develop without an IDE? Lew <lewbloch@gmail.com> - 2012-04-23 16:46 -0700
        Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-24 12:47 +0100
          Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 22:59 -0400
        Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-24 09:20 -0700
      Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-23 21:00 -0400
        Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-24 12:36 +0100
          Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-24 20:54 -0400
            Re: How to develop without an IDE? Rui Maciel <rui.maciel@gmail.com> - 2012-04-25 12:05 +0100
              Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 23:07 -0400
      Re: How to develop without an IDE? Gene Wirchenko <genew@ocis.net> - 2012-04-24 09:13 -0700
        Re: How to develop without an IDE? Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-24 14:15 -0300
          Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-04-24 12:59 -0700
            Re: How to develop without an IDE? markspace <-@.> - 2012-04-24 14:24 -0700
              Re: How to develop without an IDE? Lew <lewbloch@gmail.com> - 2012-04-24 14:59 -0700
                Re: How to develop without an IDE? markspace <-@.> - 2012-04-24 17:19 -0700
              Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-04-24 17:12 -0700
        Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-24 21:00 -0400
          Re: How to develop without an IDE? Gordon Levi <gordon@address.invalid> - 2012-04-26 02:17 +1000
            Re: How to develop without an IDE? Arne Vajhøj <arne@vajhoej.dk> - 2012-04-28 22:24 -0400
      Re: How to develop without an IDE? BGB <cr88192@hotmail.com> - 2012-04-24 10:02 -0700
  Re: How to develop without an IDE? sony.gupta32@yahoo.co.uk - 2012-08-30 02:29 -0700
    Re: How to develop without an IDE? Martin Gregorie <martin@address-in-sig.invalid> - 2012-08-30 19:58 +0000
      Re: How to develop without an IDE? Lew <lewbloch@gmail.com> - 2012-08-30 13:16 -0700
      Re: How to develop without an IDE? Roedy Green <see_website@mindprod.com.invalid> - 2012-09-02 14:04 -0700

csiph-web