Package flex2.compiler.io

Examples of flex2.compiler.io.LocalFile


        try
        {
          if ((f = findFile(d, p, mimeTypes)) != null)
          {
            if (files == null) files = new VirtualFile[length];
            files[i] = new LocalFile(f);
            break;
          }
        }
        catch (CompilerException ex)
        {
View Full Code Here


        if ((absoluteOrRelativeFile != null) &&
            FileUtils.exists(absoluteOrRelativeFile) &&
            FileUtils.isAbsolute(absoluteOrRelativeFile))
        {
            resolved = new LocalFile(absoluteOrRelativeFile);
        }
        else if (root != null)
        {
            String rootRelativePath = root + File.separator + path;
            File rootRelativeFile = FileUtil.openFile(rootRelativePath);
            if ((rootRelativeFile != null) && FileUtils.exists(rootRelativeFile))
            {
                resolved = new LocalFile(rootRelativeFile);
            }
        }
        else
        {
          // C: must convert 'absoluteOrRelativeFile' into absolute before calling exists().
            absoluteOrRelativeFile = FileUtils.getAbsoluteFile(absoluteOrRelativeFile);
            if ((absoluteOrRelativeFile != null) &&
                FileUtils.exists(absoluteOrRelativeFile))
                // && !FileUtils.isAbsolute(absoluteOrRelativeFile)
            {
              resolved = new LocalFile(absoluteOrRelativeFile);
            }
        }

        if ((resolved != null) && Trace.pathResolver)
        {
View Full Code Here

        File path = FileUtil.openFile(pathStr);
        VirtualFile virt = null;

        if (path != null && FileUtils.exists(path) && FileUtils.isAbsolute(path))
        {
            virt = new LocalFile(path);
        }

        if ((virt != null) && Trace.pathResolver)
        {
            Trace.trace("LocalFilePathResolver.resolve: resolved " + pathStr + " to " + virt.getName());
View Full Code Here

                    String original = (String) e.getAttributes().get(Transcoder.ORIGINAL);
                    if (src != null)
                    {
                      if (source.getRelativePath().length() == 0)
                      {
                        archiveFiles.put("locale/" + locales[i] + "/" + original, new LocalFile(new File(src)));
                      }
                      else
                      {
                        archiveFiles.put("locale/" + locales[i] + "/" + source.getRelativePath() + "/" + original, new LocalFile(new File(src)));
                      }
                    }
                  }
                }
          }
View Full Code Here

            if (themeFiles[0].getName().endsWith(file.getPath()))
            {
                String name = themeFiles[0].getName();
                int index = name.indexOf(file.getPath());
                themeFiles[0] = new LocalFile(new File(name.substring(0, index) + "/themes/Halo/halo.swc"));
                themeNames.remove("spark");
                themeNames.add("halo");
            }
        }
View Full Code Here

            if (themeFiles[0].getName().endsWith(file.getPath()))
            {
                String name = themeFiles[0].getName();
                int index = name.indexOf(file.getPath());
                themeFiles[0] = new LocalFile(new File(name.substring(0, index) + "/themes/Halo/halo.swc"));
                themeNames.remove("spark");
                themeNames.add("halo");
            }
        }
View Full Code Here

            AtEmbed e = (AtEmbed) i.next();
            String src = (String) e.getAttributes().get(Transcoder.SOURCE);
            String original = (String) e.getAttributes().get(Transcoder.ORIGINAL);
            if (src != null)
            {
              archiveFiles.put(original, new LocalFile(new File(src)));
            }
          }
          if (archiveFiles.size() > 0)
          {
            context.setAttribute(CompilerContext.CSS_ARCHIVE_FILES, archiveFiles);
View Full Code Here

        VirtualFile result;
        File file = FileUtil.openFile(path);

        if (file != null && FileUtils.exists(file))
        {
            result = new LocalFile(FileUtil.getCanonicalFile(file));
        }
        else
        {
            PathResolver resolver = ThreadLocalToolkit.getPathResolver();
            result = resolver.resolve(path);
View Full Code Here

        {
            File resourceFolder = new File( resource.getDirectory() );
            File resourceFile = new File( resourceFolder, relative );
            if ( resourceFile.exists() )
            {
                return new LocalFile( resourceFile );
            }
        }

        return null;
    }
View Full Code Here

        output = null;
        directory = null;
        mimeMappings = new MimeMappings();
        meter = null;
        resolver = null;
        cc = new CompilerControl();

        //data = null;
        cacheName = null;
        configurationReport = null;
        messages = new ArrayList<Message>();
View Full Code Here

TOP

Related Classes of flex2.compiler.io.LocalFile

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.