github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/app/java/meta.go (about) 1 package javaapp 2 3 import ( 4 "github.com/hashicorp/otto/app" 5 "github.com/hashicorp/otto/appfile/detect" 6 ) 7 8 // AppFactory is the factory for this app 9 func AppFactory() app.App { 10 return &App{} 11 } 12 13 // Meta is the metadata for this app type 14 var Meta = &app.Meta{ 15 Tuples: Tuples, 16 Detectors: Detectors, 17 } 18 19 // Tuples is the list of tuples that this built-in app implementation knows 20 // that it can support. 21 var Tuples = app.TupleSlice([]app.Tuple{ 22 {"java", "*", "*"}, 23 }) 24 25 // Detectors is the list of detectors that trigger this app to be used. 26 var Detectors = []*detect.Detector{ 27 &detect.Detector{ 28 Type: "java", 29 File: []string{"build.gradle", "pom.xml"}, 30 }, 31 }