Package org.rhq.helpers.pluginGen

Examples of org.rhq.helpers.pluginGen.PluginGen.createFile()


      cache.setCategory(ResourceCategory.SERVICE);
      populateMetricsAndOperations(namedCacheClasses, cache, true);
     
      root.getChildren().add(cache);
        
      pg.createFile(root, "descriptor", "rhq-plugin.xml", "../../../src/main/resources/META-INF");
      copyFile(new File("../../../src/main/resources/META-INF/rhq-plugin.xml"), new File("../../../target/classes/META-INF/rhq-plugin.xml"));
     
      return true;
   }
  
View Full Code Here


      String metaInfDir = "../../../src/main/resources/META-INF";
      new File(metaInfDir).mkdirs();
      String targetMetaInfDir = "../../../target/classes/META-INF";
      new File(targetMetaInfDir).mkdirs();

      pg.createFile(root, "descriptor", "rhq-plugin.xml", metaInfDir);
      copyFile(new File(metaInfDir + "/rhq-plugin.xml"), new File(targetMetaInfDir + "/rhq-plugin.xml"));
     
      return true;
   }
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.