Examples of VirtualFile


Examples of org.jboss.vfs.VirtualFile

      {
         d = new AbstractDeployment(profileDeployment.getName());
      }
      else
      {
         VirtualFile vf = profileDeployment.getRoot();
         // The ones created using the {@code AutoUnmounter}
         if(profileDeployment instanceof WorkaroundProfileDeployment)
         {
            try
            {
View Full Code Here

Examples of org.jboss.vfs.VirtualFile

    * @throws Exception
    */
   @Deprecated
   protected VirtualFile getCachedVirtualFile(URI uri) throws IOException
   {
      VirtualFile vf = getCachedVirtualFile(uri.toString());
      if(vf == null)
      {
         vf = VFS.getChild(uri);
         String name = createDeploymentName(uri);
         this.applicationVFCache.put(name, vf);
View Full Code Here

Examples of org.jboss.vfs.VirtualFile

         {
            Iterator<ProfileDeployment> iter = apps.iterator();
            while (iter.hasNext())
            {
               ProfileDeployment ctx = iter.next();
               VirtualFile root = ctx.getRoot();
               String pathName = ctx.getName();
               // Ignore locked or disabled applications
               if (this.hasDeploymentContentFlags(pathName, ignoreFlags))
               {
                  if (trace)
                     log.trace("Ignoring locked application: " + root);
                  continue;
               }
               // Check for removal
               if (root.exists() == false)
               {
                  long rootLastModified = root.getLastModified();
                  ModificationInfo info = new ModificationInfo(ctx, rootLastModified, ModifyStatus.REMOVED);
                  modifications.put(pathName, info);
                  iter.remove();
                  // Remove last modified cache
                  cleanUpRoot(root);
                  cleanupDeployment(pathName);
                  if (trace)
                     log.trace(pathName + " was removed");
               }
               // Check for modification
               else if (hasDeploymentContentFlags(pathName, DeploymentContentFlags.MODIFIED)
                     || getChecker().hasStructureBeenModified(pathName, root))
               {
                  long rootLastModified = root.getLastModified();
                  if (trace)
                     log.trace(pathName + " was modified: " + rootLastModified);
                  // Create the modification info
                  ModificationInfo info = new ModificationInfo(ctx, rootLastModified, ModifyStatus.MODIFIED);
                  modifications.put(pathName, info);
View Full Code Here

Examples of org.jboss.vfs.VirtualFile

    */
   protected void checkForAdditions(Map<String, ModificationInfo> modified) throws Exception
   {
      for (URI applicationDir : getRepositoryURIs())
      {
         VirtualFile deployDir = getCachedVirtualFile(applicationDir);
         List<VirtualFile> added = new ArrayList<VirtualFile>();
         addedDeployment(added, deployDir);        
         applyAddedDeployments(applicationDir, modified, added);
      }
   }
View Full Code Here

Examples of org.jboss.vfs.VirtualFile

   {
      if(name == null)
         throw new IllegalArgumentException("Null name");
     
      // A deploy content needs to be added over addDeployContent
      VirtualFile vf = getCachedVirtualFile(name);
      if(vf == null)
      {
         List<String> matchingNames = findDeploymentContent(name);
         if(matchingNames.size() == 1)
         {
View Full Code Here

Examples of org.jboss.vfs.VirtualFile

      return new WorkaroundProfileDeployment(name, vf);
   }
  
   public ProfileDeployment createProfileDeployment(String profileName, String name, VirtualFile original) throws IOException
   {
      VirtualFile copy = backup(profileName, name, original);
      return new WorkaroundProfileDeployment(name, copy);
   }
View Full Code Here

Examples of org.jboss.vfs.VirtualFile

      VFSDeploymentUnit parent = unit.getParent();
      String name = unit.getSimpleName();
      if (parent != null)
         name = parent.getSimpleName() + "#" + name;

      VirtualFile file = unit.getMetaDataFile(jeeSpecRarDD);
      deployment.getConnectorMetaData().setURL(file.toURL());
      metaDataRepository.addConnectorMetaData(name, deployment.getConnectorMetaData());

      return deployment;
   }
View Full Code Here

Examples of org.jboss.vfs.VirtualFile

   public void load() throws Exception
   {
      for(URI uri : getRepositoryURIs())
      {
         VirtualFile root = getCachedVirtualFile(uri);
         loadApplications(root);
      }
      updateLastModfied();
   }
View Full Code Here

Examples of org.jboss.vfs.VirtualFile

               }
            }           
         }

         // Get the vfs uri and add the VFS uri to the cached VFS uris
         VirtualFile contentVF = VFS.getChild(contentFile.toURI());
         try
         {
            // Add the new virtual file to the cache
            repositoryName = addVirtualFileCache(contentVF);
           
View Full Code Here

Examples of org.jboss.vfs.VirtualFile

      lockWrite();
      try
      {
         // Remove the deployment from the filesystem
         ProfileDeployment deployment = getDeployment(vfsPath);
         VirtualFile root = deployment.getRoot();
        
         if(deleteFile && root != null && root.exists())
         {
            // Delete the file
            if(VFSUtils.recursiveDelete(root) == false)
               throw new IOException("Failed to delete: " + root);
           
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.