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


        assert (path.equals(FilenameNormalization.normalize(path))) : "Path not normalized";

        IFileSpecification fileSpec = pathToFileSpecMap.get(path);
        if (fileSpec == null)
        {
            fileSpec = new FileSpecification(path);
            pathToFileSpecMap.put(path, fileSpec);
        }

        return fileSpec;
    }
View Full Code Here

    }

    @Override
    public IFileSpecification getFileSpecification()
    {
        return new FileSpecification(path);
    }
View Full Code Here

        ArrayList<MXMLUnitData> units = new ArrayList<MXMLUnitData>(tokens.size() / 6);
        nsMap = new HashMap<IMXMLTagData, PrefixMap>();
        MXMLUnitData unit = null;
        MXMLToken currentComment = null;
        FastStack<Integer> depth = new FastStack<Integer>(tokens.size() / 8);
        IFileSpecification spec = new FileSpecification(data.getPath() != null ? data.getPath() : "");
        depth.setStackDecorator(new IFastStackDecorator<Integer>() {
            @Override
            public Integer decorate(Integer e)
            {
                if (e == null)
View Full Code Here

        return sb.toString();
    }

    public static void main(String[] args)
    {
        final FileSpecification fileSpec = new FileSpecification(args[0]);
        final MXMLTokenizer tokenizer = new MXMLTokenizer(fileSpec);
        List<MXMLToken> tokens = null;
        try
        {
            tokens = tokenizer.parseTokens(fileSpec.createReader());

            // Build tags and attributes from the tokens.
            final MXMLData mxmlData = new MXMLData(tokens, tokenizer.getPrefixMap(), fileSpec);

            mxmlData.dumpUnits();
View Full Code Here

                mainUnits.clear();
                unitOrdering.clear();
                problemQuery.clear();
            }

            final IFileSpecification sourceFileSpec = new FileSpecification(sourceFilename);
            workspace.fileAdded(sourceFileSpec);
            final ICompilationUnit cu = ASCompilationUnit.createMainCompilationUnitForASC(
                    applicationProject,
                    sourceFileSpec,
                    this);
View Full Code Here

    }

    @Override
    public final IFileSpecification getSource()
    {
        return new FileSpecification(getParent().getPath().toString());
    }
View Full Code Here

        boolean success = true;
       
        try
        {
            FileConfigurator.load(buffer,
                    new FileSpecification(fileSpec.getAbsolutePath()),
                    context, rootElement, ignoreUnknownItems);
        }
        catch (ConfigurationException e)
        {
            // record exception
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);
                if (h.allClasses)
                {
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.