MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / new

Method new

rust/src/provisioning.rs:53–62  ·  view source on GitHub ↗

Creates a new LocalJarArtifact. path is the location of the jar file in the local storage

(path: &str)

Source from the content-addressed store, hash-verified

51 /// Creates a new LocalJarArtifact.
52 /// path is the location of the jar file in the local storage
53 pub fn new(path: &str) -> LocalJarArtifact {
54 LocalJarArtifact {
55 base: utils::jassets_path()
56 .unwrap_or_default()
57 .to_str()
58 .unwrap_or("")
59 .to_string(),
60 path: path.to_string(),
61 }
62 }
63}
64
65impl JavaArtifact for LocalJarArtifact {}

Callers

nothing calls this directly

Calls 2

jassets_pathFunction · 0.85
to_stringMethod · 0.80

Tested by

no test coverage detected