Examples of ScriptProcessingException


Examples of org.jboss.ejb3.packagemanager.exception.ScriptProcessingException

   private Project buildProject(File scriptFile, File baseDir, Map<String, String> antProperties) throws ScriptProcessingException
   {
      if (!scriptFile.exists())
      {
         throw new ScriptProcessingException("Ant script file " + scriptFile + " does not exist");
      }
      Project antProject = new Project();
      // add our build listener to capture ant logging and other stuff
      antProject.addBuildListener(new AntBuildListener());
      // Set the basedir for the ant project 
View Full Code Here

Examples of org.jboss.ejb3.packagemanager.exception.ScriptProcessingException

   private void runTarget(Project antProject, String targetName) throws ScriptProcessingException
   {
      // check whether the target exists in the build file
      if (!antProject.getTargets().containsKey(targetName))
      {
         throw new ScriptProcessingException("Target " + targetName + " not present in Ant script file");
      }
      try
      {
         antProject.executeTarget(targetName);
      }
      catch (Exception e)
      {
         throw new ScriptProcessingException("Exception while running target " + targetName + " in Ant script");
      }

   }
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.