-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare docs for 1.5.0 release (#351)
- Loading branch information
Showing
2 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
## Conforming Java Packages | ||
|
||
In various places in our Bazel Eclipse Feature documentation, we reference the term **Conforming Java Packages**. | ||
This page defines that term. | ||
In the early days of Bazel Eclipse, we had a number of restrictions for the file structure of each Bazel package. | ||
We required it to conform to the Maven standards of storing source code in _src/main/java_ and _src/test/java_. | ||
|
||
### Link to the Bazel Java SDK | ||
As of Bazel Eclipse 1.5, these restrictions have been lifted. | ||
We believe BEF properly handles any reasonable file system layout for Java packages. | ||
|
||
Under the covers BEF uses the separately managed [Bazel Java SDK](../dev/bazeljavasdk.md) for all interactions with Bazel. | ||
For more information about conforming Java packages, please see the documentation in the SDK: | ||
The only caveat is for test source files. | ||
We mark a class as being on the Eclipse project test classpath if it lives within a directory that starts with the word 'test'. | ||
For example, these files would be considered test classes: | ||
|
||
- [Conforming Java Packages (SDK)](https://github.com/salesforce/bazel-java-sdk/blob/master/conforming_java_packages.md) | ||
- src/test/java/com/salesforce/foo/FooTest.java | ||
- source/test/com/salesforce/foo/FooTest.java | ||
- src/tests/bar/com/salesforce/foo/FootTest.java | ||
- my/blue/testsAndUtils/com/salesforce/foo/Foo.java | ||
|
||
In Eclipse, test classes are placed on a test classpath, which is distinct from the main classpath of a project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters