Package org.apache.flex.compiler.problems

Examples of org.apache.flex.compiler.problems.FileNotFoundProblem


            return ImmutableList.<ICompilerProblem>of(new ImproperlyConfiguredTargetProblem());
       
        Collection<ICompilationUnit> rootClassCompilationUnits = project.getCompilationUnits(rootClassFileName);
        assert rootClassCompilationUnits.isEmpty() || rootClassCompilationUnits.size() == 1;
        if (rootClassCompilationUnits.isEmpty())
            return ImmutableList.<ICompilerProblem>of(new FileNotFoundProblem(rootClassFileName));
       
        assert Iterables.getOnlyElement(rootClassCompilationUnits) != null : "The build should have been aborted before this point if there is no root class compilation unit.";
       
        IDefinition rootClassDefinition = rootClassRef.resolve(project);
        if (rootClassDefinition == null)
View Full Code Here


        }
        else   
        {
            final ICompilerProblem problem =
                sourceLocation != null ?
                new FileNotFoundProblem(sourceLocation, fileSpec.getPath()) :
                new FileNotFoundProblem(fileSpec.getPath());
            problems.add(problem);
        }
    }
View Full Code Here

                       
            return fileNode;
        }
        catch(FileNotFoundException ex)
        {
            ICompilerProblem problem = new FileNotFoundProblem(filePath);
            problems.add(problem);
        }
        catch (IOException ex)
        {
            ICompilerProblem problem = new InternalCompilerProblem2(filePath, ex, "PropertiesFileParser");
View Full Code Here

                        IOUtils.closeQuietly(reader);
                    }  
                }
                else
                {
                    problems.add(new FileNotFoundProblem(inputFile.getAbsolutePath()));
                }
            }
            catch(IOException ioe)
            {
                final ICompilerProblem problem = new ConfigurationProblem(null, -1, -1, -1, -1, ioe.getMessage());
View Full Code Here

            final ANTLRFileStream fileStream = new ANTLRFileStream(cssFile.getPath());
            css = CSSDocument.parse(fileStream, syntaxErrors);
        }
        catch (IOException e)
        {
            ICompilerProblem problem = new FileNotFoundProblem(cssFile.getPath());
            syntaxErrors.add(problem);
        }
        return new StyleModuleSyntaxTreeRequestResult(css, syntaxErrors, cssFile.getLastModified());
    }
View Full Code Here

                        //respond to problems from our file handler
                        includedFileSpec = includeHandler.getFileSpecificationForInclude(sourcePath, includeString);
                        //
                        if (includedFileSpec == null)
                        {
                            ICompilerProblem problem = new FileNotFoundProblem(token, filenameTokenText); //the text will be the path not found
                            problems.add(problem);
                            retVal = next();
                            return retVal;
                        }
                        if (includeHandler.isCyclicInclude(includedFileSpec.getPath()))
                        {
                            ICompilerProblem problem = new CyclicalIncludesProblem(token);
                            problems.add(problem);
                            retVal = next();
                            return retVal;
                        }
                        else
                        {
                            // Fork a tokenizer for the included file
                            try
                            {
                                forkIncludeTokenizer = createForIncludeFile(this, includedFileSpec, includeHandler);
                                retVal = forkIncludeTokenizer.next();
                            }
                            catch (FileNotFoundException fnfe)
                            {
                                includeHandler.handleFileNotFound(includedFileSpec);
                                ICompilerProblem problem = new FileNotFoundProblem(token, includedFileSpec.getPath());
                                problems.add(problem);
                                retVal = next();
                                return retVal;
                            }
                        }
View Full Code Here

    {
        for (final String defaultsCSSPath : getTargetSettings().getDefaultsCSSFiles())
        {
            final ICSSDocument defaultsCSSModel = cssManager.getCSS(defaultsCSSPath);
            if (defaultsCSSModel == null)
                problems.add(new FileNotFoundProblem(defaultsCSSPath));
            else
                activatedStyleSheets.addDefaultCSS(defaultsCSSModel);
        }
    }
View Full Code Here

        catch (FileNotFoundException e)
        {
            // Use the message from the FileNotFoundException exception as that
            // will have the actual file that is missing in cases where .as files
            // are combined.
            node.addProblem(new FileNotFoundProblem(e.getMessage()));
        }
        catch (Throwable e2)
        {
            ICompilerProblem problem = new InternalCompilerProblem2(spec.getPath(), e2, SUB_SYSTEM);
            node.addProblem(problem);
View Full Code Here

    {
        for (final String defaultsCSSPath : getTargetSettings().getDefaultsCSSFiles())
        {
            final ICSSDocument defaultsCSSModel = cssManager.getCSS(defaultsCSSPath);
            if (defaultsCSSModel == null)
                problems.add(new FileNotFoundProblem(defaultsCSSPath));
            else
                activatedStyleSheets.addDefaultCSS(defaultsCSSModel);
        }
    }
View Full Code Here

          return fn;
        }
        }
       
    System.out.println("Could not find file for class: " + className);
    problems.add(new FileNotFoundProblem(className));
    problemsFound = true;
    return "";
  }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.problems.FileNotFoundProblem

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.