ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meta...@locus.apache.org
Subject cvs commit: jakarta-ant/src/antidote/org/apache/tools/ant/gui/command BuildCmd.java
Date Thu, 09 Nov 2000 23:14:17 GMT
metasim     00/11/09 15:14:17

  Modified:    src/antidote/org/apache/tools/ant/gui/command BuildCmd.java
  Log:
  Started work on the Ant Construction Set classes (ACS), which will map directly
  to DOM elements allowing easier manipulation of the XML and better editing of
  Ant projects. NB: The code currently requires the Sun JAXP library (which Ant
  needs anyway).
  
  Revision  Changes    Path
  1.2       +7 -1      jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/BuildCmd.java
  
  Index: BuildCmd.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/command/BuildCmd.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BuildCmd.java	2000/11/06 12:52:46	1.1
  +++ BuildCmd.java	2000/11/09 23:14:17	1.2
  @@ -54,11 +54,12 @@
   package org.apache.tools.ant.gui.command;
   import org.apache.tools.ant.gui.AppContext;
   import org.apache.tools.ant.gui.ProjectProxy;
  +import org.apache.tools.ant.gui.event.ErrorEvent;
   
   /**
    * Starts an Ant build.
    * 
  - * @version $Revision: 1.1 $ 
  + * @version $Revision: 1.2 $ 
    * @author Simeon Fitch 
    */
   public class BuildCmd implements Command {
  @@ -84,7 +85,12 @@
       public void execute() {
           ProjectProxy project = _context.getProject();
           if(project != null) {
  -            project.build();
  +            try {
  +                project.build();
  +            }
  +            catch(Throwable ex) {
  +                _context.getEventBus().postEvent(new ErrorEvent(_context, ex));
  +            }
           }
       }
   }
  
  
  

Mime
View raw message