Package org.jboss.forge.addon.configuration

Examples of org.jboss.forge.addon.configuration.Configuration.clearProperty()


      final ConfigurationFacet configFacet = project.getFacet(ConfigurationFacet.class);
      final Configuration config = configFacet.getConfiguration();

      for (final ProjectProperty property : Arrays.asList(ProjectProperty.values())) {
        if (config.containsKey(getProjectAttribute(property))) {
          config.clearProperty(getProjectAttribute(property));
        }
      }

      return true;
    }
View Full Code Here


      {
         Project project = Projects.getSelectedProject(projectFactory, context);
         if (project != null)
         {
            Configuration projectConfig = project.getFacet(ConfigurationFacet.class).getConfiguration();
            projectConfig.clearProperty(key);
         }
         else
         {
            return Results.fail("No project found in current context. Can't clear from local configuration.");
         }
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.