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


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

Re: Is it necessary the source file should be at the same location with the class file?

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Is it necessary the source file should be at the same location with the class file?
Date 2016-07-25 21:03 -0400
Organization Aioe.org NNTP Server
Message-ID <nn6csg$f03$1@gioia.aioe.org> (permalink)
References (2 earlier) <q38e6d-nn9.ln1@s.simpson148.btinternet.com> <nn29sl$old$1@gioia.aioe.org> <8bnf6d-sua.ln1@s.simpson148.btinternet.com> <nn3e5r$dk1$1@gioia.aioe.org> <209i6d-u46.ln1@s.simpson148.btinternet.com>

Show all headers | View raw


On 7/25/2016 4:21 PM, Steven Simpson wrote:
> On 24/07/16 23:06, Arne Vajhøj wrote:
>> On 7/24/2016 5:08 PM, Steven Simpson wrote:
>>> With the output directory in the classpath, doesn't it mean that javac
>>> will attempt a kind of incremental build?  And doesn't it then miss some
>>> not particularly extraordinary cases (inlined constants; return types),
>>> leading to broken builds?
>> The problem you mention is real and need to be handled. There are
>> ways to do that via various build scripts from OS shell to ant to
>> newer build frameworks.
>
> I was not convinced that Ant would be enough, as the <javac> task
> behaves largely as [javac -classpath out -d out], comparing timestamps
> of corresponding .java and .class files, so it's exposed to the same
> problems.  Combining <depend> with <javac> should do better, but it
> looked like it would still miss inlined constants, so I tried it out:

> So Ant will handle the two mentioned cases if used with <depend> and
> javac from JDK8.

That was not my point.

My point was the much simpler fact that with a script it is easy
to start by deleting all class files.

:-)

Arne


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


Thread

Is it necessary the source file should be at the same location with the class file? parmenides <xparmenides@yahoo.com> - 2016-07-24 00:55 +0800
  Re: Is it necessary the source file should be at the same location with the class file? Steven Simpson <ss@my.domain.invalid> - 2016-07-23 20:10 +0100
  Re: Is it necessary the source file should be at the same location with the class file? Arne Vajhøj <arne@vajhoej.dk> - 2016-07-23 19:05 -0400
    Re: Is it necessary the source file should be at the same location with the class file? Steven Simpson <ss@my.domain.invalid> - 2016-07-24 08:42 +0100
      Re: Is it necessary the source file should be at the same location with the class file? Arne Vajhøj <arne@vajhoej.dk> - 2016-07-24 07:47 -0400
        Re: Is it necessary the source file should be at the same location with the class file? Steven Simpson <ss@my.domain.invalid> - 2016-07-24 22:08 +0100
          Re: Is it necessary the source file should be at the same location with the class file? Martin Gregorie <martin@address-in-sig.invalid> - 2016-07-24 21:28 +0000
          Re: Is it necessary the source file should be at the same location with the class file? Arne Vajhøj <arne@vajhoej.dk> - 2016-07-24 18:06 -0400
            Re: Is it necessary the source file should be at the same location with the class file? Steven Simpson <ss@my.domain.invalid> - 2016-07-25 21:21 +0100
              Re: Is it necessary the source file should be at the same location with the class file? Arne Vajhøj <arne@vajhoej.dk> - 2016-07-25 21:03 -0400
    Re: Is it necessary the source file should be at the same location with the class file? Roedy Green <inquiry@mindprod.com> - 2016-07-26 15:24 -0700
  Re: Is it necessary the source file should be at the same location with the class file? Arne Vajhøj <arne@vajhoej.dk> - 2016-07-23 19:06 -0400

csiph-web