001 /* 002 * Sonar, open source software quality management tool. 003 * Copyright (C) 2008-2011 SonarSource 004 * mailto:contact AT sonarsource DOT com 005 * 006 * Sonar is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 3 of the License, or (at your option) any later version. 010 * 011 * Sonar is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public 017 * License along with Sonar; if not, write to the Free Software 018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 019 */ 020 package org.sonar.plugins.cobertura; 021 022 import org.sonar.api.*; 023 024 import java.util.ArrayList; 025 import java.util.List; 026 027 @Properties({ 028 @Property( 029 key = CoreProperties.COBERTURA_REPORT_PATH_PROPERTY, 030 name = "Report path", 031 description = "Path (absolute or relative) to Cobertura xml report file.", 032 project = true, 033 global = false), 034 @Property( 035 key = CoreProperties.COBERTURA_MAXMEM_PROPERTY, 036 defaultValue = CoreProperties.COBERTURA_MAXMEM_DEFAULT_VALUE, 037 name = "Maxmem", 038 description = "Maximum memory to pass to JVM of Cobertura processes", 039 project = true, 040 global = true) }) 041 public class CoberturaPlugin extends SonarPlugin { 042 043 public List<Class<? extends Extension>> getExtensions() { 044 List<Class<? extends Extension>> list = new ArrayList<Class<? extends Extension>>(); 045 list.add(CoberturaSensor.class); 046 list.add(CoberturaMavenPluginHandler.class); 047 list.add(CoberturaMavenInitializer.class); 048 return list; 049 } 050 }