Advertisements

1. when I compile the root class, the other classes don't get compiled
because it is not the root class that is using them. It is other
packages. There is also some dynamic loading which further confuses.
I am also trying to keep different projects under different JDKs. It
screws things up if a compile of package B causes recompilation of
package A. I wonder if Ant will be any better at this than my stomp
bat scripts.

2. his scheme would not force recompilation for out of date class
file.

"Roedy Green" <> wrote in message
news:...
> I have stared at the options, but I can see no way to get plain old
> Javac.exe to compile a source tree without you explicitly listing all
> the branches. Is this correct?
>
Is that all you want? Where do you want the class files to be put?
In the same directory as the java files? In a central directory? In a
parallel branch with root name "bin"?
It isn't so hard to use Ant I think, then you have all the choices
available to you.

On Sat, 16 Jul 2005 20:25:50 -0500, "Joan" <> wrote
or quoted :
>Is that all you want? Where do you want the class files to be put?
>In the same directory as the java files? In a central directory? In a
>parallel branch with root name "bin"?
>It isn't so hard to use Ant I think, then you have all the choices
>available to you.

IT would be fine if they went back where they came from.

I have two different problems.

1. getting the build done for myself.

2. handing something simple over to novices to build that just uses
BAT files. This is for people just learning Java who download the
source that comes with everything I write.

Roedy Green wrote:
[snip]
> 2. handing something simple over to novices to build that just uses
> BAT files. This is for people just learning Java who download the
> source that comes with everything I write.
>

I guess that you can't guarantee a nice Cygwin bash environment being
installed... if you could, then this ought to work really nicely:

javac <options> `find . -name *.java`

.... and could be put into a .sh file for easier access. I think that,
given multiple source files on the command-line, javac will even
timestamp-check them and not bother recompiling things that don't need
it (but don't quote me on that point).

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!