/** Returns warnings that occurred while runtime preparing and starting. */ public List<? extends Warning> getWarnings() { return context.getEnvironment().getWarnings(); }
protected InternalEnvironment(InternalEnvironment internalEnvironment) { this.recipe = internalEnvironment.getRecipe(); this.type = recipe != null ? recipe.getType() : null; this.machines = internalEnvironment.getMachines(); this.warnings = new CopyOnWriteArrayList<>(internalEnvironment.getWarnings()); this.attributes = internalEnvironment.getAttributes(); this.commands = internalEnvironment.getCommands(); }
context .getEnvironment() .getWarnings() .add( new WarningImpl(