aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/internal/admin/jvm/jdisc_options.go
blob: 3e6c5b6003d1b0c6b0947896714e63953e1a393f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Author: arnej

package jvm

import (
	"github.com/vespa-engine/vespa/client/go/internal/admin/defaults"
)

const (
	DEFAULT_MAIN_CLASS    = "com.yahoo.jdisc.core.StandaloneMain"
	DEFAULT_JAR_WITH_DEPS = "lib/jars/jdisc_core-jar-with-dependencies.jar"
)

func (opts *Options) AddCommonJdiscProperties() {
	logCtlDir := defaults.UnderVespaHome("var/db/vespa/logcontrol")
	opts.fixSpec.FixDir(logCtlDir)
	opts.AddOption("-Djdisc.bundle.path=" + defaults.UnderVespaHome("lib/jars"))
	opts.AddOption("-Djdisc.logger.enabled=false")
	opts.AddOption("-Djdisc.logger.level=WARNING")
	opts.AddOption("-Dvespa.log.control.dir=" + logCtlDir)
}