MCPcopy Index your code
hub / github.com/dagger/dagger / New

Function New

sdk/java/runtime/main.go:46–61  ·  view source on GitHub ↗
(
	// Directory with the Java SDK source code.
	// dagger-java-samples is not necessary to build, but as it's referenced in the root pom.xml maven
	// will check if it's there. So we keep the pom.xml to fake it.
	// +defaultPath="/sdk/java"
	// +ignore=["**", "!dagger-codegen-maven-plugin/", "!dagger-java-annotation-processor/", "!dagger-java-sdk/", "!dagger-java-samples/pom.xml", "!LICENSE", "!README.md", "!pom.xml", "**/src/test", "**/target"]
	sdkSourceDir *dagger.Directory,
)

Source from the content-addressed store, hash-verified

44}
45
46func New(
47 // Directory with the Java SDK source code.
48 // dagger-java-samples is not necessary to build, but as it's referenced in the root pom.xml maven
49 // will check if it's there. So we keep the pom.xml to fake it.
50 // +defaultPath="/sdk/java"
51 // +ignore=["**", "!dagger-codegen-maven-plugin/", "!dagger-java-annotation-processor/", "!dagger-java-sdk/", "!dagger-java-samples/pom.xml", "!LICENSE", "!README.md", "!pom.xml", "**/src/test", "**/target"]
52 sdkSourceDir *dagger.Directory,
53) (*JavaSdk, error) {
54 if sdkSourceDir == nil {
55 return nil, fmt.Errorf("sdk source directory not provided")
56 }
57 return &JavaSdk{
58 SDKSourceDir: sdkSourceDir,
59 MavenErrors: false,
60 }, nil
61}
62
63func (m *JavaSdk) WithConfig(
64 // +default=false

Callers 1

invokeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected