Package org.objectstyle.woenvironment.plist

Examples of org.objectstyle.woenvironment.plist.SimpleParserDataStructureFactory


    File infoPlist = new File(_frameworkFolder, "Resources/Info.plist");
    if (infoPlist.exists()) {
        long infoPlistLastModified = infoPlist.lastModified();
        if (propertyList == null || infoPlistLastModified != _infoPListLastModified) {
        try {
          propertyList = (Map<String, Object>) WOLXMLPropertyListSerialization.propertyListWithContentsOfFile(infoPlist, new SimpleParserDataStructureFactory());
        }
        catch (Throwable t) {
          throw new RuntimeException("Failed to parse an XML plist from '" + infoPlist + "'.", t);
        }
        _infoPlist = propertyList;
View Full Code Here


        JarFile jarFileObj = new JarFile(jarFile);
        JarEntry infoPListEntry = jarFileObj.getJarEntry("Resources/Info.plist");
        if (infoPListEntry != null) {
          InputStream infoPListStream = jarFileObj.getInputStream(infoPListEntry);
            try {
              infoPList = (Map<String, Object>) WOLXMLPropertyListSerialization.propertyListWithContentsOfInputStream(infoPListStream, new SimpleParserDataStructureFactory());
            }
            catch (Throwable t) {
              throw new RuntimeException("Failed to parse an XML plist from '" + jarFile.getAbsolutePath() + "'.", t);
          }
          finally {
View Full Code Here

        }
        else {
          infoPlist = projectAdapter.getWOJavaArchive().removeLastSegments(1).append("Info.plist").toFile();
        }
        if (infoPlist.exists()) {
          propertyList = (Map<String, Object>) WOLXMLPropertyListSerialization.propertyListWithContentsOfFile(infoPlist, new SimpleParserDataStructureFactory());
        }
      } catch (Throwable t) {
        JdtPlugin.getDefault().getPluginLogger().log(t);
        propertyList = null;
      }
View Full Code Here

      if (folder.isDirectory()) {
        //System.out.println("IDEAProjectEOModelGroupFactory.findIdeaProjectFilesInFolder: Looking in " + folder + " ...");
        File projectLocator = new File(folder, ".EntityModeler.plist");
        if (projectLocator.exists()) {
          //System.out.println("IDEAProjectEOModelGroupFactory.findIdeaProjectFilesInFolder:   Found project locator '" + projectLocator + '.');
          Map<String, Object> projectProperties = (Map<String, Object>) WOLPropertyListSerialization.propertyListWithContentsOfFile(projectLocator.getCanonicalPath(), new SimpleParserDataStructureFactory());
          Map<String, List<String>> dependencies = (Map<String, List<String>>) projectProperties.get("Dependencies");
          if (dependencies != null) {
            List<String> projectFilePaths = dependencies.get("IDEA");
            if (projectFilePaths != null) {
              for (String projectFilePath : projectFilePaths) {
View Full Code Here

        File projectLocator = new File(folder, ".EntityModeler.plist");
        if (projectLocator.exists()) {
          // System.out.println(
          // "EclipseProjectEOModelGroupFactory.findEclipseProjectFolders:   Found project locator '"
          // + projectLocator + "' ...");
          Map<String, Object> projectProperties = (Map<String, Object>) WOLPropertyListSerialization.propertyListWithContentsOfFile(projectLocator.getCanonicalPath(), new SimpleParserDataStructureFactory());
          Map<String, List<String>> dependencies = (Map<String, List<String>>) projectProperties.get("Dependencies");
          if (dependencies != null) {
            List<String> projectFilePaths = dependencies.get("Eclipse");
            if (projectFilePaths != null) {
              for (String projectFilePath : projectFilePaths) {
View Full Code Here

TOP

Related Classes of org.objectstyle.woenvironment.plist.SimpleParserDataStructureFactory

Copyright © 2018 www.massapicom. 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.