Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Sonar SCM Activity Plugin
* Copyright (C) 2010 SonarSource
* [email protected]
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
package org.sonar.plugins.scmactivity;
import com.google.common.collect.ImmutableList;
import org.sonar.api.*;
import java.util.List;
@Properties({
@Property(
key = ScmActivityPlugin.ENABLED,
defaultValue = "true",
name = "Activation of this SCM Activity plugin",
description = "This property can be set to false in order to deactivate the SCM Activity plugin.",
module = true,
project = true,
global = true,
type = PropertyType.BOOLEAN
),
@Property(
key = ScmActivityPlugin.URL,
defaultValue = "",
name = "SCM URL",
description = "The format is described in this page. "
+ "Example: scm:svn:https://svn.codehaus.org/sonar-plugins/trunk/scm-activity. "
+ "This setting is not used with Git, Svn, and Hg since the url is discovered automatically.",
module = true,
project = true,
global = false
),
@Property(
key = ScmActivityPlugin.USER,
defaultValue = "",
name = "User",
description = "Optional user to be used to retrieve blame information from the SCM engine.",
module = false,
project = true,
global = true
),
@Property(
key = ScmActivityPlugin.PASSWORD,
defaultValue = "",
name = "Password",
description = "Optional password to be used to retrieve blame information from the SCM engine.",
module = false,
project = true,
global = true,
type = PropertyType.PASSWORD
),
@Property(
key = ScmActivityPlugin.THREAD_COUNT,
defaultValue = "4",
name = "Thread count",
description = "Number of threads used to speed-up the retrieval of authors by line (aka blame information).",
module = true,
project = true,
global = true
)})
public final class ScmActivityPlugin extends SonarPlugin {
public static final String ENABLED = "sonar.scm.enabled";
public static final String URL = "sonar.scm.url";
public static final String USER = "sonar.scm.user.secured";
public static final String PASSWORD = "sonar.scm.password.secured";
public static final String THREAD_COUNT = "sonar.scm.threadCount";
@SuppressWarnings("unchecked")
public List> getExtensions() {
return ImmutableList.of(
Blame.class,
BlameVersionSelector.class,
FileToResource.class,
MavenScmConfiguration.class,
PreviousSha1Finder.class,
ScmActivityMetrics.class,
ScmActivitySensor.class,
ScmConfiguration.class,
Sha1Generator.class,
SonarScmManager.class,
ScmFacade.class,
ScmUrlGuess.class,
UrlChecker.class);
}
}