Richard O. Hammer Tuesday, May 17, 2005 11:10 AM >> In the terminology of Eclipse, in which I'm setting up a Java >> project,
to be excruciatingly correct, you want an answer about JDT, not eclipse >> I'm trying to find out the difference between between a "Folder" >> and a "Source Folder". >> I know the superficial answer, that the Source folder is to put >> sources in. But if I have a whole source tree, does each sub folder >> need to be a source folder also? No. "Ham, Paul D" Tue, 17 May 2005 11:37:56 -0400 > (This is my first posting to this mailing list....hopefully I'm > doing this properly and not violating any protocols/etc....if so > then please forgive me...) It's good to be careful that way on the JUGlist: we stand on ceremony. Miss Manners' got nothing on the TriJUG, that's for sure. ;-) > A source folder is simply a folder that the project flags as > containing java source to be compiled during the project build. I > think that typically only your source root folder is identified as a > "source folder". Correct, but you can have multiple source folders in Properties> Java Build Path, or you can just build with ant (more below). > In "vanilla" Eclipse, when you create a new Java project (New > Project, Java Project) it will, by default create a "/src" as your > "source folder" and a "/bin" to be the destination for > built/compiled resources. After initial Java project creation, I > don't create anymore source folders....I just right-click on the > source folder (/src) and create packages, then right-click on those > to create classes, etc. > I also may create normal folders to contain ANT scripts, run > scripts, etc. It also turns out to be relatively easy (compared to, e.g., amputating one's own limbs :-) to make Eclipse build using Ant. E.g. I work on an OSS project that has a module that's IDE-agnostic and has an elaborate build.xml. We configured that project so that the Eclipse builder calls ant instead of the Java builder. IIUC one still must configure an external builder first--it doesn't Just Work OOTB. _______________________________________________ Juglist mailing list [email protected] http://trijug.org/mailman/listinfo/juglist_trijug.org
