Package org.apache.tools.ant

Examples of org.apache.tools.ant.BuildException


    private void validateRequiredFields() throws BuildException {
        //
        // Check at least one of the binding file properties is set.
        //
        if (m_bindingFileSet.isEmpty() && m_bindingFile == null) {
            throw new BuildException("Either the binding attribute or at "
                                     + "least one bindingset nested element "
                                     + "must be defined.");
        }
       
        //
        // Make sure that the "binding" attribute has not been used with the
        // <bindingset> nested element.
        //
        if (!m_bindingFileSet.isEmpty() && m_bindingFile != null) {
            throw new BuildException("You cannot specify both a binding attribute and a "
                                     + "bindingset nested element.");
        }
       
        //
        // Check either <classpath> or <classpathset> has been set.
        //
        if(m_classpath == null && m_fileSet.isEmpty()) {
            throw new BuildException("You must specify either a classpath "
                                     + "or at least one nested classpathset element.");
        }
       
        //
        // Make sure that only one of the above is specified.
        //
        if (m_classpath != null && !m_fileSet.isEmpty()) {
            throw new BuildException("You cannot specify both a classpath and a "
                                     + "classpathset nested element.");
        }
    }
View Full Code Here


           
            compiler.compile(pathArr, bindings);
                   
        } catch(JiBXException jEx) {
            jEx.printStackTrace();
            throw new BuildException("JiBXException in JiBX binding compilation", jEx);
        }
    }
View Full Code Here

        Class clazz = JRAntCompileTask.class.getClassLoader().loadClass(className);
        updater = (ReportUpdater)clazz.newInstance();
      }
      catch (ClassNotFoundException e)
      {
        throw new BuildException(e);
      }
      catch (IllegalAccessException e)
      {
        throw new BuildException(e);
      }
      catch (InstantiationException e)
      {
        throw new BuildException(e);
      }
    }
  }
View Full Code Here

  protected void checkParameters() throws BuildException
  {
    if (src == null || src.size() == 0)
    {
      throw
        new BuildException(
          "The srcdir attribute must be set.", //FIXME this message is misleading in case the fileset filters do not match any file
          getLocation()
          );
    }
   
    if (destdir != null && !destdir.isDirectory())
    {
      throw
        new BuildException(
          "The destination directory \""
            + destdir
            + "\" does not exist "
            + "or is not a directory.",
          getLocation()
View Full Code Here

        }
      }
   
      if(isError)
      {
        throw new BuildException("Errors were encountered when decompiling report designs.");
      }
    }
  }
View Full Code Here

  protected void checkParameters() throws BuildException
  {
    if (src == null || src.size() == 0)
    {
      throw
        new BuildException(
          "The srcdir attribute must be set.",
          getLocation()
          );
    }
   
    if (destdir != null && !destdir.isDirectory())
    {
      throw
        new BuildException(
          "The destination directory \""
            + destdir
            + "\" does not exist "
            + "or is not a directory.",
          getLocation()
View Full Code Here

        }
      }
   
      if(isError)
      {
        throw new BuildException("Errors were encountered when updating report designs.");
      }
    }
  }
View Full Code Here

  protected void checkParameters() throws BuildException
  {
    if (src == null || src.size() == 0)
    {
      throw
        new BuildException(
          "The srcdir attribute must be set.",
          getLocation()
          );
    }
   
    if (destdir != null && !destdir.isDirectory())
    {
      throw
        new BuildException(
          "The destination directory \""
            + destdir
            + "\" does not exist "
            + "or is not a directory.",
          getLocation()
View Full Code Here

        }
      }
   
      if(isError)
      {
        throw new BuildException("Errors were encountered when generating API report designs.");
      }
    }
  }
View Full Code Here

        }
      }
   
      if(isError)
      {
        throw new BuildException("Errors were encountered when running API report designs classes.");
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.BuildException

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.