Function gather_java_in_paths

Source
pub fn gather_java_in_paths<'a>(
    runtimes: &mut Vec<JavaRuntime>,
    paths: &[&Path],
    max_depth: usize,
) -> usize
Expand description

Detects available Java runtimes within multiple paths up to a maximum depth and appends them to the given vector.

§Parameters

  • runtimes: Vector to contain detected Java runtimes.
  • paths: The paths to search for Java runtimes.
  • max_depth: Maximum depth to search for Java runtimes (see WalkDir::max_depth).

§Returns

The number of new Java runtimes added to the vector.