KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > ant > ExportBuildListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.core.ant;
12
13 import org.apache.tools.ant.BuildEvent;
14 import org.apache.tools.ant.BuildListener;
15 import org.apache.tools.ant.Project;
16 import org.eclipse.pde.internal.core.exports.FeatureExportOperation;
17
18 public class ExportBuildListener implements BuildListener {
19     
20     /* (non-Javadoc)
21      * @see org.apache.tools.ant.BuildListener#buildStarted(org.apache.tools.ant.BuildEvent)
22      */

23     public void buildStarted(BuildEvent event) {
24     }
25
26     /* (non-Javadoc)
27      * @see org.apache.tools.ant.BuildListener#buildFinished(org.apache.tools.ant.BuildEvent)
28      */

29     public void buildFinished(BuildEvent event) {
30     }
31
32     /* (non-Javadoc)
33      * @see org.apache.tools.ant.BuildListener#targetStarted(org.apache.tools.ant.BuildEvent)
34      */

35     public void targetStarted(BuildEvent event) {
36     }
37
38     /* (non-Javadoc)
39      * @see org.apache.tools.ant.BuildListener#targetFinished(org.apache.tools.ant.BuildEvent)
40      */

41     public void targetFinished(BuildEvent event) {
42     }
43
44     /* (non-Javadoc)
45      * @see org.apache.tools.ant.BuildListener#taskStarted(org.apache.tools.ant.BuildEvent)
46      */

47     public void taskStarted(BuildEvent event) {
48     }
49
50     /* (non-Javadoc)
51      * @see org.apache.tools.ant.BuildListener#taskFinished(org.apache.tools.ant.BuildEvent)
52      */

53     public void taskFinished(BuildEvent event) {
54     }
55
56     /* (non-Javadoc)
57      * @see org.apache.tools.ant.BuildListener#messageLogged(org.apache.tools.ant.BuildEvent)
58      */

59     public void messageLogged(BuildEvent event) {
60         if (event.getPriority() == Project.MSG_ERR) {
61             FeatureExportOperation.errorFound();
62         }
63     }
64
65 }
66
Popular Tags