Re: Q: Java source and directory structure - 'standard way' ?
From: Karl von Laudermann (doodpants_at_mailinator.com)
Date: 01/28/04
- Next message: Dominik Kaspar: "sockets and stuff"
- Previous message: Stefan Monnier: "Re: Mars Rover Not Responding"
- In reply to: FISH: "Re: Q: Java source and directory structure - 'standard way' ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jan 2004 07:09:48 -0800
joeking@merseymail.com (FISH) wrote in message news:<dbc5020.0401280355.2f3d8cef@posting.google.com>...
>
> The point I was originally asking about was whether the source code
> directory structure *must* match exactly the package 'hierarchy' -
> and the class files should be built into the same directories as the
> source files they came from.
Yes to the first question, and no to the second.
> What you are saying, as I understand
> it, is that the two things should be separate, and it is a matter of
> taste (or practicality) as to whether the source layout should match
> the package hierarchy.
As I understand it, the source files must (or should) be stored in a
directory structure that matches the package hierarchy, but that
doesn't mean that the class files go into the same directories along
with the source code. Rather, they go into an identically structured
directory tree that can be located anywhere you want. I generally have
a directory called "source" which contains the source code tree, and a
directory called "build" which contains the class file tree, and the
"source" and "build" directories live next to each other. I believe
that this is the "standard" way of doing things, if there is one.
At least, this is the way JBuilder (which I use at work) manages
projects by default, and the way that the example build file for Ant
(which I use at home) does things as well.
- Next message: Dominik Kaspar: "sockets and stuff"
- Previous message: Stefan Monnier: "Re: Mars Rover Not Responding"
- In reply to: FISH: "Re: Q: Java source and directory structure - 'standard way' ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|