Examples of PropertiesFile


Examples of org.apache.ivy.util.PropertiesFile

        cdf.remove("artifact." + artifact.getName() + "#" + artifact.getExt() + ".is-local");
        cdf.save();
    }
   
    private String getSavedResolverName(ModuleDescriptor md) {
        PropertiesFile cdf = getCachedDataFile(md);
        return cdf.getProperty("resolver");
    }
View Full Code Here

Examples of org.apache.ivy.util.PropertiesFile

        PropertiesFile cdf = getCachedDataFile(md);
        return cdf.getProperty("resolver");
    }

    private String getSavedArtResolverName(ModuleDescriptor md) {
        PropertiesFile cdf = getCachedDataFile(md);
        return cdf.getProperty("artifact.resolver");
    }
View Full Code Here

Examples of org.testng.internal.PropertiesFile

  {
    try
    {
      m_testng = testng;

      PropertiesFile file = new PropertiesFile( propertiesFile);
      Properties properties = file.getProperties();

      m_verbose = Integer.parseInt( properties.getProperty(VERBOSE, "1"));

      String adapter = properties.getProperty(SLAVE_ADPATER);
      if( adapter == null)
View Full Code Here

Examples of org.testng.internal.PropertiesFile

   */
  public SuiteDispatcher( String propertiesFile) throws TestNGException
  {
    try
    {
      PropertiesFile file = new PropertiesFile( propertiesFile);
      Properties properties = file.getProperties();

      m_verbose = Integer.parseInt( properties.getProperty(VERBOSE, "1"));

      String strategy = properties.getProperty(MASTER_STRATEGY, STRATEGY_SUITE);
      m_isStrategyTest = STRATEGY_TEST.equalsIgnoreCase(strategy);
View Full Code Here

Examples of org.vietspider.common.io.PropertiesFile

    if(properties == null) return;
    properties.put(key, value);
  }
 
  public synchronized void store() {
    PropertiesFile file = new PropertiesFile(true);
    try {
      file.save(UtilFile.getFile("client", "config.properties"), properties);
    } catch (Exception e) {
      LogService.getInstance().setThrowable(e);
    }
  }
View Full Code Here

Examples of org.ytreza.lib.properties.PropertiesFile

      for (Property property : root.getProperties()){
        System.out.println(property);
        property.save();
      }
     
      PropertiesFile properties = (PropertiesFile) Application.getApplication().getProperties();
      properties.save();
    } catch (IOException e) {
      // AUTO_TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.zaval.io.PropertiesFile

   }


    private Properties filterProperties(Properties p, String prefix) {
        prefix = prefix + TranslatorConstants.KEY_SEPARATOR;
        Properties result = new PropertiesFile();
        Iterator i = p.entrySet().iterator();
        while (i.hasNext()) {
            Map.Entry prop = (Map.Entry) i.next();
            String name = (String) prop.getKey();
            if (!name.startsWith(prefix))
                continue;
            name = name.substring(prefix.length());
            if (name.indexOf(TranslatorConstants.KEY_SEPARATOR) != -1)
                continue;           
            String value = (String) prop.getValue();
            if (value == null || value.trim().length() == 0)
                continue;
            result.setProperty(name, value);
        }
        return result;
    }
View Full Code Here

Examples of org.zaval.io.PropertiesFile

   
    public Properties getProperties(String lng) {
        return getProperties(lng, null);
    }
    public Properties getProperties(String lng, BundleSet defaultTranslations) {
        Properties p = new PropertiesFile();
        Iterator i = items.values().iterator();
        while (i.hasNext()) {
       BundleItem bi = (BundleItem) i.next();
           String value = bi.getTranslation(lng);
           if (value!=null && value.trim().length() != 0 &&
               !isDefaultValue(bi, defaultTranslations, lng)) {
               String key = bi.getId();
               key = maybeAddBrokenSuffix(key, value);
               p.setProperty(key, value);
           }
        }
        return p;
    }
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.