Package org.apache.flex.compiler.filespecs

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


     */
    public synchronized IBinaryFileSpecification getLatestBinaryFileSpecification(String path)
    {
        IFileSpecification fileSpec = getFileSpecification(path);

        IBinaryFileSpecification binaryFileSpec = null;
        if (fileSpec instanceof IBinaryFileSpecification)
        {
            binaryFileSpec = (IBinaryFileSpecification)fileSpec;
        }
        else
View Full Code Here


     */
    private void processFileEntry(Entry<String, FileEntryValue> entry,
                                  Collection<ICompilerProblem> problems)
    {
        String path = entry.getKey();
        IBinaryFileSpecification fileSpec = entry.getValue().getFileSpec();
        ISourceLocation sourceLocation = entry.getValue().getSourceLocation();
       
        byte[] contents = getContents(fileSpec);
       
        if (contents != null)
        {
            swc.addFile(path, fileSpec.getLastModified(), contents);
        }
        else   
        {
            final ICompilerProblem problem =
                sourceLocation != null ?
                new FileNotFoundProblem(sourceLocation, fileSpec.getPath()) :
                new FileNotFoundProblem(fileSpec.getPath());
            problems.add(problem);
        }
    }
View Full Code Here

        Map<String, FileEntryValue> includedFiles = new HashMap<String, FileEntryValue>();
        for (Entry<String, File> entry : targetSettings.getIncludeFiles().entrySet())
        {
            String filename = entry.getKey();
            String path = entry.getValue().getAbsolutePath();
            IBinaryFileSpecification fileSpec = project.getWorkspace().getLatestBinaryFileSpecification(path);

            if (filename != null && fileSpec != null)
            {
                FileEntryValue value = new FileEntryValue(fileSpec, null);
                includedFiles.put(filename, value);
View Full Code Here

                String packageName = classDefinition.getPackageName();
                String key = packageName.replaceAll("\\.", "/") + "/" + iconFilePath;

                ICompilationUnit cu = project.getScope().getCompilationUnitForDefinition(classDefinition);
                IBinaryFileSpecification fileSpec = null;
                if (cu.getCompilationUnitType() == UnitType.SWC_UNIT)
                {
                    ISWC swc = project.getWorkspace().getSWCManager().get(new File(cu.getAbsoluteFilename()));
                    ISWCFileEntry swcFileEntry = swc.getFile(key);
                    fileSpec = new SWCFileSpecification(key, swcFileEntry);
View Full Code Here

    {
        IFileSpecification rootSource = getRootFileSpecification();
        byte[] abcData = null;
        if (rootSource instanceof IBinaryFileSpecification)
        {
            IBinaryFileSpecification abcFileSpec = (IBinaryFileSpecification)rootSource;
            InputStream abcStream = null;
            try
            {
                abcStream = abcFileSpec.createInputStream();
                abcData = IOUtils.toByteArray(abcStream);
                assert abcData != null : "No ABC byte code.";
            }
            catch (Exception e)
            {
View Full Code Here

        {
            inStrm = getDataStream(swcSource, problems);
        }
        else
        {
            IBinaryFileSpecification fileSpec = workspace.getLatestBinaryFileSpecification(source);
            inStrm = getDataStream(fileSpec, problems);
        }

        return inStrm;
    }
View Full Code Here

TOP

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

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.