Package org.jboss.forge.parser.xml

Examples of org.jboss.forge.parser.xml.Node.attribute()


      moduleXml.delete();
      moduleXml.createNewFile();

      // <resource-root path="maven-dependency.jar" />
      Node module = XMLParser.parse(getClass().getResourceAsStream("/org/jboss/forge/modules/module.xml"));
      module.attribute("name", pluginName + ".dependencies");
      module.attribute("slot", pluginSlot);
      Node resources = module.getSingle("resources");

      // <module name="org.jboss.forge:main" />
      Node dependencies = module.getSingle("dependencies");
View Full Code Here


      moduleXml.createNewFile();

      // <resource-root path="maven-dependency.jar" />
      Node module = XMLParser.parse(getClass().getResourceAsStream("/org/jboss/forge/modules/module.xml"));
      module.attribute("name", pluginName + ".dependencies");
      module.attribute("slot", pluginSlot);
      Node resources = module.getSingle("resources");

      // <module name="org.jboss.forge:main" />
      Node dependencies = module.getSingle("dependencies");
      dependencies.createChild("module").attribute("name", "javax.api");
View Full Code Here

   {
      Node root = new Node("connection-profiles");
      for (ConnectionProfile descriptor : connectionProfiles)
      {
         Node child = root.createChild("connection-profile");
         child.attribute(CONFIG_KEY_NAME, descriptor.getName());
         child.attribute(CONFIG_KEY_DIALECT, descriptor.getDialect());
         child.attribute(CONFIG_KEY_DRIVER, descriptor.getDriver());
         child.attribute(CONFIG_KEY_PATH_TO_DRIVER, descriptor.getPath());
         child.attribute(CONFIG_KEY_URL, descriptor.getUrl());
         child.attribute(CONFIG_KEY_USER, descriptor.getUser());
View Full Code Here

      Node root = new Node("connection-profiles");
      for (ConnectionProfile descriptor : connectionProfiles)
      {
         Node child = root.createChild("connection-profile");
         child.attribute(CONFIG_KEY_NAME, descriptor.getName());
         child.attribute(CONFIG_KEY_DIALECT, descriptor.getDialect());
         child.attribute(CONFIG_KEY_DRIVER, descriptor.getDriver());
         child.attribute(CONFIG_KEY_PATH_TO_DRIVER, descriptor.getPath());
         child.attribute(CONFIG_KEY_URL, descriptor.getUrl());
         child.attribute(CONFIG_KEY_USER, descriptor.getUser());
         child.attribute(CONFIG_KEY_SAVE_PASSWORD, descriptor.isSavePassword());
View Full Code Here

      for (ConnectionProfile descriptor : connectionProfiles)
      {
         Node child = root.createChild("connection-profile");
         child.attribute(CONFIG_KEY_NAME, descriptor.getName());
         child.attribute(CONFIG_KEY_DIALECT, descriptor.getDialect());
         child.attribute(CONFIG_KEY_DRIVER, descriptor.getDriver());
         child.attribute(CONFIG_KEY_PATH_TO_DRIVER, descriptor.getPath());
         child.attribute(CONFIG_KEY_URL, descriptor.getUrl());
         child.attribute(CONFIG_KEY_USER, descriptor.getUser());
         child.attribute(CONFIG_KEY_SAVE_PASSWORD, descriptor.isSavePassword());
         if (descriptor.isSavePassword() && !Strings.isNullOrEmpty(descriptor.getPassword()))
View Full Code Here

      {
         Node child = root.createChild("connection-profile");
         child.attribute(CONFIG_KEY_NAME, descriptor.getName());
         child.attribute(CONFIG_KEY_DIALECT, descriptor.getDialect());
         child.attribute(CONFIG_KEY_DRIVER, descriptor.getDriver());
         child.attribute(CONFIG_KEY_PATH_TO_DRIVER, descriptor.getPath());
         child.attribute(CONFIG_KEY_URL, descriptor.getUrl());
         child.attribute(CONFIG_KEY_USER, descriptor.getUser());
         child.attribute(CONFIG_KEY_SAVE_PASSWORD, descriptor.isSavePassword());
         if (descriptor.isSavePassword() && !Strings.isNullOrEmpty(descriptor.getPassword()))
         {
View Full Code Here

         Node child = root.createChild("connection-profile");
         child.attribute(CONFIG_KEY_NAME, descriptor.getName());
         child.attribute(CONFIG_KEY_DIALECT, descriptor.getDialect());
         child.attribute(CONFIG_KEY_DRIVER, descriptor.getDriver());
         child.attribute(CONFIG_KEY_PATH_TO_DRIVER, descriptor.getPath());
         child.attribute(CONFIG_KEY_URL, descriptor.getUrl());
         child.attribute(CONFIG_KEY_USER, descriptor.getUser());
         child.attribute(CONFIG_KEY_SAVE_PASSWORD, descriptor.isSavePassword());
         if (descriptor.isSavePassword() && !Strings.isNullOrEmpty(descriptor.getPassword()))
         {
            String encryptedPassword = encodePassword(descriptor.getPassword());
View Full Code Here

         child.attribute(CONFIG_KEY_NAME, descriptor.getName());
         child.attribute(CONFIG_KEY_DIALECT, descriptor.getDialect());
         child.attribute(CONFIG_KEY_DRIVER, descriptor.getDriver());
         child.attribute(CONFIG_KEY_PATH_TO_DRIVER, descriptor.getPath());
         child.attribute(CONFIG_KEY_URL, descriptor.getUrl());
         child.attribute(CONFIG_KEY_USER, descriptor.getUser());
         child.attribute(CONFIG_KEY_SAVE_PASSWORD, descriptor.isSavePassword());
         if (descriptor.isSavePassword() && !Strings.isNullOrEmpty(descriptor.getPassword()))
         {
            String encryptedPassword = encodePassword(descriptor.getPassword());
            child.attribute(CONFIG_KEY_PASSWORD, encryptedPassword);
View Full Code Here

         child.attribute(CONFIG_KEY_DIALECT, descriptor.getDialect());
         child.attribute(CONFIG_KEY_DRIVER, descriptor.getDriver());
         child.attribute(CONFIG_KEY_PATH_TO_DRIVER, descriptor.getPath());
         child.attribute(CONFIG_KEY_URL, descriptor.getUrl());
         child.attribute(CONFIG_KEY_USER, descriptor.getUser());
         child.attribute(CONFIG_KEY_SAVE_PASSWORD, descriptor.isSavePassword());
         if (descriptor.isSavePassword() && !Strings.isNullOrEmpty(descriptor.getPassword()))
         {
            String encryptedPassword = encodePassword(descriptor.getPassword());
            child.attribute(CONFIG_KEY_PASSWORD, encryptedPassword);
            child.attribute(CONFIG_KEY_ENCRYPTED_PASSWORD, "true");
View Full Code Here

         child.attribute(CONFIG_KEY_USER, descriptor.getUser());
         child.attribute(CONFIG_KEY_SAVE_PASSWORD, descriptor.isSavePassword());
         if (descriptor.isSavePassword() && !Strings.isNullOrEmpty(descriptor.getPassword()))
         {
            String encryptedPassword = encodePassword(descriptor.getPassword());
            child.attribute(CONFIG_KEY_PASSWORD, encryptedPassword);
            child.attribute(CONFIG_KEY_ENCRYPTED_PASSWORD, "true");
         }
      }
      if (root.getChildren().isEmpty())
      {
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.