public static void checkServices(Reader reader, Version version) throws IOException { new SchemaValidators(version).servicesXmlValidator().validate(reader); } }
/** * Returns a list of all components in this package. * * @return A list of components. */ public List<Component> getComponents() { return getComponents(appDir); }
private static ApplicationMetaData metaDataFromDeployData(File appDir, DeployData deployData) { return new ApplicationMetaData(deployData.getDeployedByUser(), deployData.getDeployedFromDir(), deployData.getDeployTimestamp(), deployData.isInternalRedeploy(), deployData.getApplicationName(), computeCheckSum(appDir), deployData.getGeneration(), deployData.getCurrentlyActiveGeneration()); }
/** Creates package from a local directory, typically deploy app */ public static FilesApplicationPackage fromFileWithDeployData(File appDir, DeployData deployData, boolean includeSourceFiles) { return new Builder(appDir).includeSourceFiles(includeSourceFiles).deployData(deployData).build(); }
/** * Creates a complete derived configuration from a search definition. * * @param search The search to derive a configuration from. Derived objects will be snapshots, but this argument is * live. Which means that this object will be inconsistent when the given search definition is later * modified. * @param rankProfileRegistry a {@link com.yahoo.searchdefinition.RankProfileRegistry} */ public DerivedConfiguration(Search search, RankProfileRegistry rankProfileRegistry, QueryProfileRegistry queryProfiles, ImportedMlModels importedModels) { this(search, new BaseDeployLogger(), rankProfileRegistry, queryProfiles, importedModels); }
public static ApplicationPackageXmlFilesValidator create(File appDir, Version vespaVersion) { return new ApplicationPackageXmlFilesValidator(new AppSubDirs(appDir), vespaVersion); }
/** Creates from a directory with source files included */ public static FilesApplicationPackage fromFile(File appDir) { return fromFile(appDir, false); }
private ApplicationPackageXmlFilesValidator(AppSubDirs appDirs, Version vespaVersion) { this.appDirs = appDirs; this.validators = new SchemaValidators(vespaVersion); }
private void validateRouting(Tuple2<File, String> directory) throws IOException { if ( ! directory.first.isDirectory()) return; validateRouting(validators.routingStandaloneXmlValidator(), directory); }
public Bundle(JarFile jarFile, File bundleFile) { this.jarFile = jarFile; this.bundleFile = bundleFile; defEntries = findDefEntries(); }
@Override public String getUnparsedContent() { return readConfigDefinition(def); } });
/** Creates package from a local directory, typically deploy app */ public static FilesApplicationPackage fromFileWithDeployData(File appDir, DeployData deployData) { return fromFileWithDeployData(appDir, deployData, false); }
@Override public void validateIncludeDir(String dirName) { IncludeDirs.validateIncludeDir(dirName, this); }
@Override public Collection<NamedReader> getSearchDefinitions() { return searchDefinitionContents(); }
public List<Bundle.DefEntry> getDefEntries() { return bundle.getDefEntries(); }
@Override public List<ComponentInfo> getComponentsInfo(Version vespaVersion) { return getComponentsInfo(appDir); }
@Override public List<NamedReader> getFiles(Path relativePath, String suffix, boolean recurse) { return getFiles(relativePath, "", suffix, recurse); }
@Override public Optional<Reader> getDeployment() { return optionalFile(DEPLOYMENT_FILE); }