Examples of AntScriptProcessor


Examples of org.jboss.ejb3.packagemanager.script.impl.AntScriptProcessor

      }
      for (ScriptType script : preInstallScripts)
      {
         // TODO: Can we just have one instance of the script processor to process
         // all scripts? Stateful/stateless?
         ScriptProcessor scriptProcessor = new AntScriptProcessor();
         String scriptFileName = script.getName();
         File root = pkgCtx.getPackageRoot();
         File path = root;
         if (script.getPath() != null)
         {
            path = new File(root, script.getPath());
         }
         File scriptFile = new File(path, scriptFileName);
         if (!scriptFile.exists())
         {
            throw new PackageManagerException("Script file " + scriptFile + " for " + pkgCtx + " does not exist!");
         }
         scriptProcessor.processPreInstallScript(this.pkgMgrCtx, pkgCtx, scriptFile);
      }

   }
View Full Code Here

Examples of org.jboss.ejb3.packagemanager.script.impl.AntScriptProcessor

         logger.trace("There are no pre-uninstall scripts for package " + installedPackage.getPackageName());
         return;
      }
      for (org.jboss.ejb3.packagemanager.entity.PersistentPreUnInstallScript script : preUnInstallScripts)
      {
         ScriptProcessor scriptProcessor = new AntScriptProcessor();
         File packageManagerHome = this.pkgMgrCtx.getPackageManagerEnvironment().getPackageManagerHome();
         File scriptFileLocation = new File(packageManagerHome, script.getPath());
         File scriptFile = new File(scriptFileLocation, script.getName());
         if (!scriptFile.exists())
         {
            throw new PackageManagerException("Script file " + scriptFile + " for package "
                  + installedPackage.getPackageName() + " does not exist!");
         }
         scriptProcessor.processPreUnInstallScript(this.pkgMgrCtx, installedPackage, scriptFile);
      }

   }
View Full Code Here

Examples of org.jboss.ejb3.packagemanager.script.impl.AntScriptProcessor

         logger.trace("There are no post-install scripts for " + pkgCtx);
         return;
      }
      for (ScriptType script : postInstallScripts)
      {
         ScriptProcessor scriptProcessor = new AntScriptProcessor();
         // TODO: Can we just have one instance of the script processor to process
         // all scripts? Stateful/stateless?
         String scriptFileName = script.getName();
         File root = pkgCtx.getPackageRoot();
         File path = root;
         if (script.getPath() != null)
         {
            path = new File(root, script.getPath());
         }
         File scriptFile = new File(path, scriptFileName);
         if (!scriptFile.exists())
         {
            throw new PackageManagerException("Script file " + scriptFile + " for " + pkgCtx + " does not exist!");
         }
         scriptProcessor.processPostInstallScript(this.pkgMgrCtx, pkgCtx, scriptFile);

      }
   }
View Full Code Here

Examples of org.jboss.ejb3.packagemanager.script.impl.AntScriptProcessor

         logger.trace("There are no post-uninstall scripts for package " + installedPackage.getPackageName());
         return;
      }
      for (org.jboss.ejb3.packagemanager.entity.PersistentPostUnInstallScript script : postUnInstallScripts)
      {
         ScriptProcessor scriptProcessor = new AntScriptProcessor();
         File packageManagerHome = this.pkgMgrCtx.getPackageManagerEnvironment().getPackageManagerHome();
         File scriptFileLocation = new File(packageManagerHome, script.getPath());
         File scriptFile = new File(scriptFileLocation, script.getName());
         if (!scriptFile.exists())
         {
            throw new PackageManagerException("Script file " + scriptFile + " for package "
                  + installedPackage.getPackageName() + " does not exist!");
         }
         scriptProcessor.processPostUnInstallScript(this.pkgMgrCtx, installedPackage, scriptFile);
      }
   }
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.