# Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: MPL-2.0 job "java_pid" { datacenters = ["dc1"] type = "batch" group "java" { task "build" { lifecycle { hook = "prestart" sidecar = false } driver = "exec" config { command = "javac" args = ["-d", "${NOMAD_ALLOC_DIR}", "local/Pid.java"] } template { destination = "local/Pid.java" data = <