sync_and_build.md
August 25, 2023 ยท View on GitHub
Updating and Building your Workspace 
This page contains information related to workspace builds using the feature.
Basics: Sync
Please have a look at Sync Basics to understand what sync is and when it's needed.
How to Sync?
A sync can take very long time. Therefore BEF will never sync automatically. In order to sync manually use one of the following options.
- Right click on any Bazel project in Package Explorer or Project Explorer
- Select Bazel > Sync Bazel Project View
or
- Select any Bazel project in Package Explorer or Project Explorer
- Use Cmd/Ctrl+3 to open the command palett and search for Sync Bazel Project View
or
- Find and click the Sync Bazel Project Views button in the Eclipse main toolbar
Note, the toolbar button will synchronize all Bazel workspaces and their project views (in case you have multiple imported in Eclipse).
Basics: Build
Eclipse support auto building. In this mode, Eclipse will re-compile modified Java source files upon save. This generates the class file and will be used for HotSwap support. However, the jar is not updated (yet). A Bazel build is required to update the jar.
For more information on how the feature invokes Bazel, see the architecture page.
Next Topic: Understanding the Java Classpath
The next page in our guide discusses the Java classpath.