Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes Folder Structure in a large project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Folder Structure in a large project" Watch "Folder Structure in a large project" New topic
Author

Folder Structure in a large project

Varun Chopra
Ranch Hand

Joined: Jul 10, 2008
Posts: 211
I was pondering over what will be the folder structure in a large project? Suppose there are 3 departments in an enterprise for which a project is being developed. Is that better folder structure?

com.department.organization.pojo
com.department.organization.dao
com.department.organization.utility
com.department.common

or is below a better one:

com.organization.pojo
com.organization.dao
com.organization.utility
com.organization.common

I guess first one is better because then we can build and deploy independent department's code. What is your opinion?


-Varun -
(My Blog) - Online Certifications - Webner Solutions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36590
    
  16
The second; there is a customary format for package names. It's in the Java Tutorials.
[ October 01, 2008: Message edited by: Campbell Ritchie ]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36590
    
  16
Sorry, I got it the wrong way round at first and had to change first to second

It says in the link I quoted that you use local conventions to disambiguate projects, so com.company.department.project is the customary naming format, but your company might prefer com.company.room1.project.
Varun Chopra
Ranch Hand

Joined: Jul 10, 2008
Posts: 211
No Problem, Thanks Campbell.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36590
    
  16
You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Folder Structure in a large project
 
Similar Threads
dvd_db directory in Max's sample project
The Better IDE
source path help
Finding a folder or a file
Package structure questions