Examples of YAMLConfig


Examples of com.esotericsoftware.yamlbeans.YamlConfig

    final File tokensFile = getTokensFile();
    tokensFile.getParentFile().mkdirs();
    try {
      FileWriter fileWriter = new FileWriter(tokensFile);

      YamlConfig config = new YamlConfig();
      config.writeConfig.setAlwaysWriteClassname(false);
      config.writeConfig.setWriteRootElementTags(false);
      config.writeConfig.setWriteRootTags(false);
      config.writeConfig.setExplicitFirstDocument(true);
      YamlWriter yamlWriter = new YamlWriter(fileWriter, config);
View Full Code Here

Examples of com.notoriousdev.yamlconfig.YamlConfig

    private String permissionDenied;
    private Properties properties;
    private int chatSocketPort;

    public void load() {
        YamlConfig conf = new YamlConfig(new File("").getAbsoluteFile(), "config.yml");
        FileConfiguration config = conf.getConfig();
        setBotNickname(config.getString("bot-nickname"));
        setBotUsername(config.getString("bot-username"));
        setBotIdent(config.getString("bot-ident"));
        setBotPassword(config.getString("bot-password"));
        setCtcpFinger(config.getString("ctcp-finger-reply"));
View Full Code Here

Examples of net.sourceforge.yamlbeans.YamlConfig

      prefixBuilder.append(' ');
    }
    final String indentPrefix = prefixBuilder.toString();

    StringWriter stringWriter = new StringWriter();
    YamlConfig yamlConfig = new YamlConfig();
    yamlConfig.writeConfig.setIndentSize(2);
    yamlConfig.writeConfig.setWriteRootTags(false);

    YamlWriter writer = new YamlWriter(stringWriter, yamlConfig);
    try {
View Full Code Here

Examples of net.sourceforge.yamlbeans.YamlConfig

   * @return A {@link String} with the requested yaml.
   * @throws YamlException If yaml formatting fails.
   */
  public String make(long endTimeUsec, boolean success) throws YamlException {
    StringWriter stringWriter = new StringWriter();
    YamlConfig yamlConfig = new YamlConfig();
    yamlConfig.writeConfig.setIndentSize(2);
    yamlConfig.writeConfig.setWriteRootTags(false);
    yamlConfig.writeConfig.setWriteRootElementTags(false);
    yamlConfig.writeConfig.setWriteDefaultValues(true);
    yamlConfig.setPropertyElementType(ClientDeploy.class, "requests", Request.class);
    YamlWriter yamlWriter = new YamlWriter(stringWriter, yamlConfig);
    ClientDeploy clientDeploy = new ClientDeploy(runtime, startTimeUsec, endTimeUsec, requests,
        success, sdkVersion);

    yamlWriter.write(clientDeploy);
View Full Code Here

Examples of org.jvyamlb.YAMLConfig

        IRubyObject io = null;
        IRubyObject io2 = null;
        if(args.length == 2 && args[1] != null && !args[1].isNil()) {
            io = args[1];
        }
        YAMLConfig cfg = YAML.config().version("1.0");
        IOOutputStream iox = null;
        if(null == io) {
            io2 = self.getRuntime().fastGetClass("StringIO").callMethod(context, "new");
            iox = new IOOutputStream(io2);
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.