Examples of clearProperty()


Examples of org.apache.velocity.runtime.configuration.Configuration.clearProperty()

        /*
         * Clear the configuration for the template paths, we
         * want to translate them all to the webapp space.
         */
        Velocity.clearProperty(Velocity.FILE_RESOURCE_LOADER_PATH);
        configuration.clearProperty(Velocity.FILE_RESOURCE_LOADER_PATH);
       
        int pathsToProcess = templatePaths.size();
       
        // If I use this line I get an endless loop?
        // What the hell is that? Is that a bug with
View Full Code Here

Examples of org.apache.velocity.runtime.configuration.Configuration.clearProperty()

        /*
         * Clear the configuration for the template paths, we
         * want to translate them all to the webapp space.
         */
        Velocity.clearProperty(Velocity.FILE_RESOURCE_LOADER_PATH);
        configuration.clearProperty(Velocity.FILE_RESOURCE_LOADER_PATH);
       
        int pathsToProcess = templatePaths.size();
       
        // If I use this line I get an endless loop?
        // What the hell is that? Is that a bug with
View Full Code Here

Examples of org.apache.velocity.runtime.configuration.Configuration.clearProperty()

        /*
         * Clear the configuration for the template paths, we
         * want to translate them all to the webapp space.
         */
        Velocity.clearProperty(Velocity.FILE_RESOURCE_LOADER_PATH);
        configuration.clearProperty(Velocity.FILE_RESOURCE_LOADER_PATH);
       
        int pathsToProcess = templatePaths.size();
       
        // If I use this line I get an endless loop?
        // What the hell is that? Is that a bug with
View Full Code Here

Examples of org.apache.velocity.runtime.configuration.Configuration.clearProperty()

        /*
         * Clear the configuration for the template paths, we
         * want to translate them all to the webapp space.
         */
        Velocity.clearProperty(Velocity.FILE_RESOURCE_LOADER_PATH);
        configuration.clearProperty(Velocity.FILE_RESOURCE_LOADER_PATH);
       
        int pathsToProcess = templatePaths.size();
       
        // If I use this line I get an endless loop?
        // What the hell is that? Is that a bug with
View Full Code Here

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

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

      {
         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

Examples of org.jboss.forge.env.Configuration.clearProperty()

   private boolean findApplicationClass()
   {
      JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);

      Configuration projectConfiguration = getProjectConfiguration();
      projectConfiguration.clearProperty(REST_APPLICATIONCLASS_NAME);
      projectConfiguration.clearProperty(REST_APPLICATIONCLASS_PACKAGE);

      javaSourceFacet.visitJavaSources(new JavaResourceVisitor()
      {
         Configuration configuration = getProjectConfiguration();
View Full Code Here

Examples of org.jboss.forge.env.Configuration.clearProperty()

   {
      JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);

      Configuration projectConfiguration = getProjectConfiguration();
      projectConfiguration.clearProperty(REST_APPLICATIONCLASS_NAME);
      projectConfiguration.clearProperty(REST_APPLICATIONCLASS_PACKAGE);

      javaSourceFacet.visitJavaSources(new JavaResourceVisitor()
      {
         Configuration configuration = getProjectConfiguration();
         boolean found = false;
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.