From: Stefan F. <ste...@we...> - 2012-10-09 13:13:13
|
Brett and Erik: in preparation of a rails2.0 alpha release (including webstart hopefully), I want to change the directory layout of rails2.0. I already separated the test from the main code by introducing the two main folders src/ and junit/. * The next step is to move to a structure which is similar to maven (even if we keep ant as our build tool I think the directory structure is not worse than any other and it makes it easier to move to maven if we want to do so) The structure is the following: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html * The other thing I want to fix is the standard Java directory layout in which the namespace is mirrored by directories: I propose to change rails/ into net/sf/rails. Combined the changes will be: A) Move code from src/rails to src/main/java/net/sf/rails B) Move files from src/tiles and src/data to src/main/resources/... C) Move jars in lib from src/lib to src/main/resources/... D) Move code from junit/rails to src/test/java/net/sf/rails E) Move code from src/test to src/test/java/net/sf/rails/test F) Move files from src/test/data to src/test/resources/... G) Keep readme and other files at top-level directory I would also add a basic pom.xml at the top-level directory. Any objections to that? I know that it might not so easy to navigate around (at least on the command line), but it is close to the standards. Stefan |