Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35131
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| 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-24 21:28 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <nn3btn$36d$1@dont-email.me> (permalink) |
| References | <nn07hl$8ti$1@gioia.aioe.org> <nn0t8n$17np$1@gioia.aioe.org> <q38e6d-nn9.ln1@s.simpson148.btinternet.com> <nn29sl$old$1@gioia.aioe.org> <8bnf6d-sua.ln1@s.simpson148.btinternet.com> |
On Sun, 24 Jul 2016 22:08:24 +0100, Steven Simpson wrote: > On 24/07/16 12:47, Arne Vajhøj wrote: >> On 7/24/2016 3:42 AM, Steven Simpson wrote: >>> On 24/07/16 00:05, Arne Vajhøj wrote: >>>> projectroot/mypackage/MyClass.class >>>> >>>> Remember to have projectroot in classpath. >>> >>>> projectroot/bin/mypackage/MyClass.class >>>> >>>> Remember to have projectroot/bin in classpath. >>> >>> Do you mean just for executing, or for compiling (too)? >> >> For: >> * excecuting * compiling if multiple compiles > > 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? ISTR it being discussed here not so long ago, > but haven't found the thread. The following assumes you're using ant to control compiles, etc. I've seen that problem in the past, but not recently. However, it never hurts to add a 'clean' <target>, that removes all *.class and *.jar files that a build generates, to your build.xml and running "ant clean; ant" periodically. If you follow the 'large project' advice and separate *.class files from the source files, then using 'ant' or an equivalent program to manage compilation will make using the separation rather easier. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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