Examples of PropertiesFile


Examples of br.com.jteam.jfcm.model.PropertiesFile

   * @return Arquivo .PROPERTIES criado.
   */
  @Override
  public File createFile(String name, String path)
  {
    return new PropertiesFile(name, path);
  }
View Full Code Here

Examples of com.intellij.lang.properties.psi.PropertiesFile

    private void addPropertiesFilesOptions() {
        List<Object> data = new ArrayList<Object>();

        { // find component class properties file
            PropertiesFile propertiesFile = PropertiesIndex.getBaseFile(componentClass);
            if (propertiesFile == null) {
                data.add(new NewPropertiesFileInfo(componentClass, Constants.PropertiesType.PROPERTIES));
                data.add(new NewPropertiesFileInfo(componentClass, Constants.PropertiesType.XML));
            } else {
                data.add(propertiesFile);
            }
        }

        { // find and add application properties file
            PsiClass appClass = WicketPsiUtil.findWicketApplicationClass(project);
            if (appClass != null) {
                PropertiesFile propertiesFile = PropertiesIndex.getBaseFile(appClass);
                if (propertiesFile != null) {
                    data.add(propertiesFile);
                }
            }
        }
View Full Code Here

Examples of fr.jayasoft.commons.util.PropertiesFile

    public Configuration(String propFile) throws IOException {
        this(new File(propFile));
    }
   
    public Configuration(File propFile) throws IOException {
        _properties = new PropertiesFile(propFile, "WOJ server properties");
        setSavePeriod(getLong(CONFIGURATION_SAVE_PERIOD, 1000 * 60 * 10));
    }
View Full Code Here

Examples of me.neatmonster.spacebukkit.utilities.PropertiesFile

     */
    @Action(
            aliases = {"editPropertiesFile", "propertiesFile"})
    public boolean editPropertiesFile(final String name, final String type, final String key, final String value) {
        if (new File(name + ".properties").exists()) {
            final PropertiesFile file = new PropertiesFile(name + ".properties");
            if (type.toLowerCase().equals("boolean"))
                file.setBoolean(key, Boolean.valueOf(value.toString()));
            else if (type.toLowerCase().equals("long"))
                file.setLong(key, Long.valueOf(value.toString()));
            else if (type.toLowerCase().equals("int"))
                file.setInt(key, Integer.valueOf(value.toString()));
            else if (type.toLowerCase().equals("string"))
                file.setString(key, value.toString());
            else if (type.toLowerCase().equals("double"))
                file.setDouble(key, Double.valueOf(value.toString()));
            file.save();
            return true;
        }
        return false;
    }
View Full Code Here

Examples of net.visualillusionsent.utils.PropertiesFile

        File test = new File(path);

        if (!test.exists()) {
            Canary.logInfo("Could not find the world configuration for " + worldname + " at " + path + ", creating default.");
        }
        cfg = new PropertiesFile(path + File.separatorChar + worldname + ".cfg");
        verifyConfig();
    }
View Full Code Here

Examples of org.apache.ivy.util.PropertiesFile

        ResolvedModuleRevision moduleRevision = super.findModuleInCache(dd, data);
        if (moduleRevision == null) {
            setChangingPattern(".*-SNAPSHOT");
            return null;
        }
        PropertiesFile cacheProperties = getCacheProperties(dd, moduleRevision);
        Long lastResolvedTime = getLastResolvedTime(cacheProperties);
        updateCachePropertiesToCurrentTime(cacheProperties);
        if (snapshotTimeout.isCacheTimedOut(lastResolvedTime)) {
            setChangingPattern(".*-SNAPSHOT");
            return null;
View Full Code Here

Examples of org.apache.ivy.util.PropertiesFile

        return lastResolvedTime;
    }

    private PropertiesFile getCacheProperties(DependencyDescriptor dd, ResolvedModuleRevision moduleRevision) {
        DefaultRepositoryCacheManager cacheManager = (DefaultRepositoryCacheManager) getRepositoryCacheManager();
        PropertiesFile props = new PropertiesFile(new File(cacheManager.getRepositoryCacheRoot(),
                IvyPatternHelper.substitute(
                        cacheManager.getDataFilePattern(), moduleRevision.getId())), "ivy cached data file for " + dd.getDependencyRevisionId());
        return props;
    }
View Full Code Here

Examples of org.apache.ivy.util.PropertiesFile

     * @param name
     *            resolver name
     */
    private void saveResolver(ModuleDescriptor md, String name) {
        // should always be called with a lock on module metadata artifact
        PropertiesFile cdf = getCachedDataFile(md);
        cdf.setProperty("resolver", name);
        cdf.save();
    }
View Full Code Here

Examples of org.apache.ivy.util.PropertiesFile

        if (!lockMetadataArtifact(mrid)) {
            Message.error("impossible to acquire lock for " + mrid);
            return;
        }
        try {
            PropertiesFile cdf = getCachedDataFile(md);
            cdf.setProperty("resolver", metadataResolverName);
            cdf.setProperty("artifact.resolver", artifactResolverName);
            cdf.save();
        } finally {
            unlockMetadataArtifact(mrid);
        }
    }
View Full Code Here

Examples of org.apache.ivy.util.PropertiesFile

        }
    }

    private String getSavedResolverName(ModuleDescriptor md) {
        // should always be called with a lock on module metadata artifact
        PropertiesFile cdf = getCachedDataFile(md);
        return cdf.getProperty("resolver");
    }
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.