Package com.sun.enterprise.util.io

Examples of com.sun.enterprise.util.io.FileSource


  ///////////////////////////////////////////////////////////////////////////
 
  private final File setAppDirDirectory() throws IASDeploymentException
  {
    FileSource fileSource = request.getFileSource();

    if(!fileSource.exists())
    {
      String msg = localStrings.getString("enterprise.deployment.backend.file_source_does_not_exist", fileSource );
      throw new IASDeploymentException( msg );
    }

    assert fileSource.isDirectory();
    File appDirectory = fileSource.getFile();

    return appDirectory;
  }
View Full Code Here


                File parent = new File(getInstanceEnv().getApplicationRepositoryPath());
                appDirectory = new File(parent, getAppName());
                appDirectory.mkdirs();
            }
            else if(isDirectory()) {
                FileSource fileSource = request.getFileSource();
               
                if(!fileSource.exists()) {
                    String msg = localStrings.getString(
                    "enterprise.deployment.backend.file_source_does_not_exist",
                    fileSource.toString() );
                    throw new IASDeploymentException( msg );
                }
               
                assert fileSource.isDirectory();
                appDirectory = fileSource.getFile();
            }
            else {
                String msg = localStrings.getString(
                "enterprise.deployment.backend.deployment_not_dir_or_archive");
                throw new IASDeploymentException( msg );
View Full Code Here

                        moduleDir = new File(parent, moduleName);
                        moduleDir.mkdirs();
    }
    else if(isDirectory())
    {
      FileSource fileSource = request.getFileSource();
     
      if(fileSource == null || !fileSource.exists())
      {
        String msg = localStrings.getString(
        "enterprise.deployment.backend.file_source_does_not_exist",
        fileSource );
        throw new IASDeploymentException( msg );
      }
     
      moduleDir = fileSource.getFile();
     
      if(!FileUtils.safeIsDirectory(moduleDir))
      {
        String msg = localStrings.getString(
        "enterprise.deployment.backend.deployment_directory_does_not_exist",
View Full Code Here

     
      moduleDir    = originalModuleDir;
    }
    else if(isDirectory())
    {
      FileSource fileSource = request.getFileSource();
     
      if(!fileSource.exists())
      {
        String msg = localStrings.getString(
        "enterprise.deployment.backend.file_source_does_not_exist",
        fileSource );
        throw new IASDeploymentException( msg );
      }
     
      assert fileSource.isDirectory();
      moduleDir = fileSource.getFile();
     
    }
    else
    {
      String msg = localStrings.getString(
View Full Code Here

TOP

Related Classes of com.sun.enterprise.util.io.FileSource

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.