Examples of LocalFileSystem


Examples of org.apache.hadoop.fs.LocalFileSystem

      paths.add(new Path(new String("/user/" + System.getenv("USER") + "/"
          + "others" + methodName)));

    } else {
      RawLocalFileSystem rawLFS = new RawLocalFileSystem();
      fs = new LocalFileSystem(rawLFS);
      myMultiLocs = new String(fs.getWorkingDirectory() + "/" + "us"
          + methodName + "," + fs.getWorkingDirectory() + "/" + "others"
          + methodName);
      paths.add(new Path(new String(fs.getWorkingDirectory() + "/" + "us"
          + methodName)));
View Full Code Here

Examples of org.apache.hadoop.fs.LocalFileSystem

      paths.add(new Path(new String("/user/" + System.getenv("USER") + "/"
          + "others" + methodName)));

    } else {
      RawLocalFileSystem rawLFS = new RawLocalFileSystem();
      fs = new LocalFileSystem(rawLFS);
      myMultiLocs = new String(fs.getWorkingDirectory() + "/" + "us"
          + methodName + "," + fs.getWorkingDirectory() + "/" + "others"
          + methodName);
      paths.add(new Path(new String(fs.getWorkingDirectory() + "/" + "us"
          + methodName)));
View Full Code Here

Examples of org.apache.hadoop.fs.LocalFileSystem

      paths.add(new Path(new String("/user/" + System.getenv("USER") + "/"
          + "others" + methodName)));

    } else {
      RawLocalFileSystem rawLFS = new RawLocalFileSystem();
      fs = new LocalFileSystem(rawLFS);
      myMultiLocs = new String(fs.getWorkingDirectory() + "/" + "us"
          + methodName + "," + fs.getWorkingDirectory() + "/" + "others"
          + methodName);
      paths.add(new Path(new String(fs.getWorkingDirectory() + "/" + "us"
          + methodName)));
View Full Code Here

Examples of org.apache.jackrabbit.core.fs.local.LocalFileSystem

        if (externalBLOBs) {
            /**
             * store BLOBs in local file system in a sub directory
             * of the workspace home directory
             */
            LocalFileSystem blobFS = new LocalFileSystem();
            blobFS.setRoot(new File(context.getHomeDir(), "blobs"));
            blobFS.init();
            this.blobFS = blobFS;
            blobStore = new FileSystemBLOBStore(blobFS);
        } else {
            /**
             * store BLOBs in db
View Full Code Here

Examples of org.apache.jackrabbit.core.fs.local.LocalFileSystem

        /**
         * store BLOB data in local file system in a sub directory
         * of the workspace home directory
         */
        LocalFileSystem blobFS = new LocalFileSystem();
        blobFS.setRoot(new File(context.getHomeDir(), "blobs"));
        blobFS.init();
        this.blobFS = blobFS;
        blobStore = new FileSystemBLOBStore(blobFS);

        initialized = true;
    }
View Full Code Here

Examples of org.apache.olio.webapp.util.fs.local.LocalFileSystem

        synchronized (this) {
            fs = (FileSystem) cache.get(cacheKey);
       
            if (fs == null) {
                if (fileSystemName == null || fileSystemName.equals("local")) {
                    fs = new LocalFileSystem();
                    cache.put(cacheKey, fs);
                }
                /* commenting this out for now
                else if (fileSystemName.equalsIgnoreCase("hadoop")) {
                    Properties props = new Properties();
View Full Code Here

Examples of org.cfeclipse.cfml.views.explorer.LocalFileSystem

        }
       
        IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
        try {
          // Open the file
          LocalFileSystem fs = new LocalFileSystem();
          org.eclipse.ui.IEditorPart editor = page.openEditor(fs.getEditorInput( fileName ),"org.cfeclipse.cfml.editors.CFMLEditor");
               
          // Select the line number
          ITextEditor textEditor = (ITextEditor)editor;
          lineNumber--; // document is 0 based
          IDocument document = textEditor.getDocumentProvider().getDocument(textEditor.getEditorInput());
View Full Code Here

Examples of org.openide.filesystems.LocalFileSystem

        aBean.setCompile( false );
        aBean.setExecute( false );
       
        try {
            Repository repo = TopManager.getDefault().getRepository();
            LocalFileSystem fsl = new LocalFileSystem( aBean );
           
            // Get the file of the documentation directory.
            File fileDocumentation =
            new File( stringSDKDirectory + System.getProperty(
            "file.separator" ) + "docs" + System.getProperty( "file.separator" )
            + "common" + System.getProperty( "file.separator" ) + "ref" );

            if ( fileDocumentation.exists() ) {
                fsl.setRootDirectory( fileDocumentation );
                if ( repo.findFileSystem( fsl.getSystemName() ) == null ) {
                    fsl.setHidden( true );
                    repo.addFileSystem( fsl );
                }
            }
           
            LocalFileSystem localfilesystem = new LocalFileSystem( aBean );
           
            // Get the file of the helper documentation directory.
            File fileDocumentationHelper =
            new File( stringSDKDirectory + System.getProperty(
            "file.separator" ) + "docs" + System.getProperty( "file.separator" )
            + "java" + System.getProperty( "file.separator" ) + "ref" );

            if ( fileDocumentationHelper.exists() ) {
                localfilesystem.setRootDirectory( fileDocumentationHelper );
                if ( repo.findFileSystem(
                localfilesystem.getSystemName() ) == null ) {
                    localfilesystem.setHidden( true );
                    repo.addFileSystem( localfilesystem );
                }
            }
           
            File aFile = new File( stringOfficeDirectory + System.getProperty(
View Full Code Here

Examples of org.uengine.util.LocalFileSystem

    String writeFormPath = formName + "_write.jsp";
    String viewFormPath = formName + "_view.jsp";
    String viewFormHandlerPath = formName + "_formview.jsp";
    String printFormPath = formName + "_print.jsp";
   
    LocalFileSystem fileSystem = new LocalFileSystem();
   
    File srcFile = new File(formDir, htmlFormPath);
    File trgFile = new File(contextDir, toHtmlFormPath);   
    fileSystem.copyFile(srcFile, trgFile);   
    trgFile.setLastModified(srcFile.lastModified());
   
    if ( (new File(formDir, writeFormPath).exists()) ) {
      File srcWriteFile = new File(formDir, writeFormPath);
      File trgWriteFile = new File(contextDir, writeFormPath);
      fileSystem.copyFile(srcWriteFile, trgWriteFile);
      trgWriteFile.setLastModified(srcWriteFile.lastModified());     
    }
    if ( (new File(formDir, viewFormPath).exists()) ) {
      File srcViewFile = new File(formDir, viewFormPath);
      File trgViewFile = new File(contextDir, viewFormPath);
      fileSystem.copyFile(srcViewFile, trgViewFile);
      trgViewFile.setLastModified(srcViewFile.lastModified());
    }   
    if ( (new File(formDir, viewFormHandlerPath).exists()) ) {
      File srcViewFormHandlerPath = new File(formDir, viewFormHandlerPath);
      File trgViewFormHandlerPath = new File(contextDir, viewFormHandlerPath);
      fileSystem.copyFile(srcViewFormHandlerPath, trgViewFormHandlerPath);
      trgViewFormHandlerPath.setLastModified(srcViewFormHandlerPath.lastModified());
    }   
    if ( (new File(formDir, printFormPath).exists()) ) {
      File srcPrintForm = new File(formDir, printFormPath);
      File trgPrintForm = new File(contextDir, printFormPath);
      fileSystem.copyFile(srcPrintForm, trgPrintForm);
      trgPrintForm.setLastModified(srcPrintForm.lastModified());
   
   
    File formImgDir = new File(formDir, formName);
    if ( formImgDir.exists() ) {
      File contextImgDir = new File(contextDir, formName);
      if ( !contextImgDir.exists() ) contextImgDir.mkdir();
      String[] imgFileArray = formImgDir.list();
      for (int i=0; i<imgFileArray.length; i++) {
        if (logger.isInfoEnabled()) {
          logger
              .info("copyFile(File, File, String) - " + imgFileArray[i]); //$NON-NLS-1$
        }
        fileSystem.copyFile(new File(formDir, formName+"/"+imgFileArray[i]), new File(contextDir, formName+"/"+imgFileArray[i]));
      }
    }
   
  } 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.