KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > ajde > BuildListener


1
2 /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3  *
4  * This file is part of the IDE support for the AspectJ(tm)
5  * programming language; see http://aspectj.org
6  *
7  * The contents of this file are subject to the Mozilla Public License
8  * Version 1.1 (the "License"); you may not use this file except in
9  * compliance with the License. You may obtain a copy of the License at
10  * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/.
11  *
12  * Software distributed under the License is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14  * for the specific language governing rights and limitations under the
15  * License.
16  *
17  * The Original Code is AspectJ.
18  *
19  * The Initial Developer of the Original Code is Xerox Corporation. Portions
20  * created by Xerox Corporation are Copyright (C) 1999-2002 Xerox Corporation.
21  * All Rights Reserved.
22  *
23  * Contributor(s):
24  */

25
26
27 package org.aspectj.ajde;
28
29 import java.util.EventListener JavaDoc;
30
31 /**
32  * Compiler listeners get notified of compilation events.
33  *
34  * @author Mik Kersten
35  */

36 public interface BuildListener extends EventListener JavaDoc {
37     
38     /**
39      * Called when a new build is started.
40      *
41      * @param buildConfigFile configuration file used for the last compile
42      */

43     public void compileStarted(String JavaDoc buildConfigFile);
44
45     /**
46      * Called when a build completes.
47      *
48      * @param buildConfigFile configuration file used for the last compile
49      * @param buildTime compilation time in miliseconds
50      * @param succeeded true if build succeeded without errors
51      */

52     public void compileFinished(String JavaDoc buildConfigFile, int buildTime, boolean succeeded, boolean warnings);
53     
54     /**
55      * Called when a build is aborted before completion.
56      *
57      * @param buildConfigFile configuration used for the last compile
58      * @param message message explaining reason for abort
59      */

60     public void compileAborted(String JavaDoc buildConfigFile, String JavaDoc message);
61 }
62
63
Popular Tags