aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/vespa/deploy.go
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-11-26 12:00:11 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-11-26 12:00:11 +0100
commitd0b2ffd1292644b02bdf0fdfcd8564222d376f3d (patch)
tree61c1b1466e5e1864a2b53b3c16650ec87f7212e6 /client/go/vespa/deploy.go
parent175d4a81870e638a72dd7e9e688277af71c1ed7e (diff)
Let vespa prod package src/main/application and src/test/application and submit
Diffstat (limited to 'client/go/vespa/deploy.go')
-rw-r--r--client/go/vespa/deploy.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/go/vespa/deploy.go b/client/go/vespa/deploy.go
index c1cc868e16f..14158453c96 100644
--- a/client/go/vespa/deploy.go
+++ b/client/go/vespa/deploy.go
@@ -167,6 +167,10 @@ func FindApplicationPackage(zipOrDir string, requirePackaging bool) (Application
}
}
if util.PathExists(filepath.Join(zipOrDir, "src", "main", "application")) {
+ if util.PathExists(filepath.Join(zipOrDir, "src", "test", "application")) {
+ return ApplicationPackage{Path: filepath.Join(zipOrDir, "src", "main", "application"),
+ TestPath: filepath.Join(zipOrDir, "src", "test", "application")}, nil
+ }
return ApplicationPackage{Path: filepath.Join(zipOrDir, "src", "main", "application")}, nil
}
if util.PathExists(filepath.Join(zipOrDir, "services.xml")) {