Package org.apache.flex.compiler.filespecs

Examples of org.apache.flex.compiler.filespecs.FileSpecification


    @Mapping("load-externs")
    @Arguments("filename")
    public void setLoadExterns(ConfigurationValue cfgval, String filename) throws ConfigurationException
    {
        final String path = resolvePathStrict(filename, cfgval);
        final FileSpecification f = new FileSpecification(path);
        final List<String> externsFromFile = LoadExternsParser.collectExterns(cfgval, f);
        externs.addAll(externsFromFile);
    }
View Full Code Here


    }
  }
 
  public static void main(String[] args)
  {
        final FileSpecification fileSpec = new FileSpecification(args[0]);
       
        final MXMLTokenizer tokenizer = new MXMLTokenizer(fileSpec.getPath());
        try
        {
            List<MXMLToken> tokens = tokenizer.parseTokens(fileSpec.createReader());
            for (MXMLToken token : tokens)
            {
                System.out.println(token.toDumpString());
            }
        }
View Full Code Here

    catch (IOException e1)
    {
      e1.printStackTrace();
    }

    IFileSpecification fileSpec = new FileSpecification(tempMXMLFile.getPath());
   
    Workspace workspace = new Workspace();
    IMXMLDataManager mxmlDataManager = workspace.getMXMLDataManager();
    IMXMLData mxmlData = mxmlDataManager.get(fileSpec);
    return mxmlData;
View Full Code Here

        IFileSpecification results = null;
        if (fileSpecGetter != null)
            results = fileSpecGetter.getFileSpecification(path);

        if (results == null)
            results = new FileSpecification(path);

        return results;
    }
View Full Code Here

    @Mapping("load-externs")
    @Arguments("filename")
    public void setLoadExterns(ConfigurationValue cfgval, String filename) throws ConfigurationException
    {
        final String path = resolvePathStrict(filename, cfgval);
        final FileSpecification f = new FileSpecification(path);
        final List<String> externsFromFile = LoadExternsParser.collectExterns(cfgval, f);
        externs.addAll(externsFromFile);
    }
View Full Code Here

            final ASPropertiesHandler h = new ASPropertiesHandler(fbArgs, path, fbFolder, "actionScriptProperties", isDebug, suffix, sdkdir);
            final SAXParserFactory factory = SAXParserFactory.newInstance();
            Reader reader = null;
            try
            {
                FileSpecification fs = new FileSpecification(path);
                reader = fs.createReader();
                final SAXParser parser = factory.newSAXParser();
                final InputSource source = new InputSource(reader);
                parser.parse(source, h);
                applicationPath = h.applicationPath;
            }
View Full Code Here

            final FlexLibPropertiesHandler h = new FlexLibPropertiesHandler(fbArgs, path, fbFolder, "flexLibProperties");
            final SAXParserFactory factory = SAXParserFactory.newInstance();
            Reader reader = null;
            try
            {
                FileSpecification fs = new FileSpecification(path);
                reader = fs.createReader();
                final SAXParser parser = factory.newSAXParser();
                final InputSource source = new InputSource(reader);
                parser.parse(source, h);
            }
            catch (SAXConfigurationException e)
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.filespecs.FileSpecification

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.