KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > aval > AValTask


1 /**
2  * Spoon - http://spoon.gforge.inria.fr/
3  * Copyright (C) 2006 INRIA Futurs <renaud.pawlak@inria.fr>
4  *
5  * This software is governed by the CeCILL-C License under French law and
6  * abiding by the rules of distribution of free software. You can use,
7  * modify and/or redistribute the software under the terms of the
8  * CeCILL-C
9  * license as circulated by CEA, CNRS and INRIA at the following URL:
10  * http://www.cecill.info.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the CeCILL-C
15  * License for more details.
16  *
17  * The fact that you are presently reading this means that you have had
18  * knowledge of the CeCILL-C license and that you accept its terms.
19  */

20
21 package spoon.aval;
22
23 import org.apache.tools.ant.BuildException;
24
25 import spoon.SpoonTask;
26 import spoon.aval.processing.AValProcessor;
27 import spoon.aval.processing.DummyPreProcessor;
28 /**
29  * Ant task that starts the Validation of annotations.
30  *
31  * The task takes as parameters the source of the annotated
32  * program to validate and the jar of AVal.
33  */

34 public class AValTask extends SpoonTask {
35     
36     @Override JavaDoc
37     public void execute() throws BuildException {
38         addProcessor(new ProcessorType(DummyPreProcessor.class.getCanonicalName()));
39         addProcessor(new ProcessorType(AValProcessor.class.getCanonicalName()));
40         setNoOutput(true);
41         super.execute();
42     }
43
44 }
45
Popular Tags