Examples of XMLFile


Examples of hudson.XmlFile

     * Loads the other data from disk if it's available.
     */
    private synchronized void load() {
        properties.clear();

        XmlFile config = getConfigFile();
        try {
            if(config.exists())
                config.unmarshal(this);
        } catch (IOException e) {
            LOGGER.log(Level.SEVERE, "Failed to load "+config,e);
        }

        // remove nulls that have failed to load
View Full Code Here

Examples of hudson.XmlFile

    /**
     * The file we save our configuration.
     */
    protected final XmlFile getConfigFile() {
        return new XmlFile(XSTREAM,getConfigFileFor(id));
    }
View Full Code Here

Examples of hudson.XmlFile

        getDataFile().write(this);
        SaveableListener.fireOnChange(this, getDataFile());
    }

    private XmlFile getDataFile() {
        return new XmlFile(XSTREAM,new File(getRootDir(),"build.xml"));
    }
View Full Code Here

Examples of hudson.XmlFile

    public String getVersion() {
        return Hudson.getInstance().getPluginManager().getPlugin(WallDisplayPlugin.class).getVersion();
    }

    protected Configuration loadConfiguration() throws IOException {
        XmlFile xmlFile = getConfigXml();
        Configuration config = null;
        if (xmlFile.exists()) {
            config = (Configuration) xmlFile.read();
            LOGGER.info(String.format("Loaded configuration data: %s", config.toString()));
        } else {
            LOGGER.info("Could not find configuration file, creating empty object");
            config = new Configuration();
        }
View Full Code Here

Examples of hudson.XmlFile

        getConfigXml().write(config);
    }

    @Override
    protected XmlFile getConfigXml() {
        return new XmlFile(Hudson.XSTREAM,
                new File(Hudson.getInstance().getRootDir(),
                        WallDisplayPlugin.class.getName() + ".xml"));
    }
View Full Code Here

Examples of hudson.XmlFile

        return XSTREAM;
    }


    private XmlFile getSourceConfigFile(XStream XSTREAM) {
        return new XmlFile(XSTREAM, sourceConfigFile);
    }
View Full Code Here

Examples of hudson.XmlFile

    private XmlFile getSourceConfigFile(XStream XSTREAM) {
        return new XmlFile(XSTREAM, sourceConfigFile);
    }

    private XmlFile getTargetConfigFile(XStream XSTREAM) {
        return new XmlFile(XSTREAM, targetConfigFile);
    }
View Full Code Here

Examples of hudson.XmlFile

        getTargetConfigFile(XSTREAM).write(item);
        getTargetConfigFile(XSTREAM).read();
    }

    private XmlFile getSourceConfigFile(XStream XSTREAM) {
        return new XmlFile(XSTREAM, sourceConfigFile);
    }
View Full Code Here

Examples of jeeves.server.dispatchers.guiservices.XmlFile

    for(String schema : schemaMan.getSchemas()) {
      try {
        Map<String, XmlFile> schemaInfo = schemaMan.getSchemaInfo(schema);

        for (Map.Entry<String, XmlFile> entry : schemaInfo.entrySet()) {
          XmlFile xf = entry.getValue();
          String fname = entry.getKey();
          Element response = xf.exec(new Element("junk"), context);
          response.setName(FilenameUtils.removeExtension(fname));
                    response.removeAttribute("noNamespaceSchemaLocation", Geonet.Namespaces.XSI);
          Element schemaElem = new Element(schema);
          schemaElem.addContent(response);
          schemas.addContent(schemaElem);
View Full Code Here

Examples of org.apache.isis.core.commons.xml.XmlFile

    public void setUp() throws Exception {
        FileVersion.setClock(new DefaultClock());

        clearTestDirectory();
        final String charset = Utils.lookupCharset(iswf.getIsisSystem().getConfiguration());
        manager = new XmlDataManager(new XmlFile(charset, "tmp/tests"));
    }
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.