svn commit: r431612 - in head/devel/sonar-ant-task: . files

Larry Rosenman ler at FreeBSD.org
Mon Jan 16 02:48:46 UTC 2017


Author: ler
Date: Mon Jan 16 02:48:44 2017
New Revision: 431612
URL: https://svnweb.freebsd.org/changeset/ports/431612

Log:
  [NEW PORT] devel/sonar-ant-task: SonarQube Plugin for analysis projects with an Apache Ant
  
  The Ant SonarQube Task allows integration of SonarQube analysis into an Apache
  Ant build script. The Ant Task is a thin wrapper around the SonarQube Runner,
  which works by invoking the runner and passing to it all properties named
  following a sonar.* convention. This has the downside of not being very Ant-y,
  but the upside of providing instant availability of any new analysis parameter
  introduced by a new version of a plugin or of SonarQube itself.
  
  PR:	 203075
  Submitted by:freebsd dussan.org
  Approved by:	adamw (mentor)
  Differential Revision:	https://reviews.freebsd.org/D9193

Added:
  head/devel/sonar-ant-task/
  head/devel/sonar-ant-task/Makefile   (contents, props changed)
  head/devel/sonar-ant-task/distinfo   (contents, props changed)
  head/devel/sonar-ant-task/files/
  head/devel/sonar-ant-task/files/pkg-message.in   (contents, props changed)
  head/devel/sonar-ant-task/pkg-descr   (contents, props changed)

Added: head/devel/sonar-ant-task/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sonar-ant-task/Makefile	Mon Jan 16 02:48:44 2017	(r431612)
@@ -0,0 +1,42 @@
+# Created by: Dusan Vejnovic <freebsd at dussan.org>
+# $FreeBSD$
+
+PORTNAME=	sonar-ant-task
+PORTVERSION=	2.5
+CATEGORIES=	devel java
+MASTER_SITES=	https://sonarsource.bintray.com/Distribution/sonarqube-ant-task/ \
+			LOCAL/ler/sonar-ant-task
+DISTNAME=	sonarqube-ant-task-${PORTVERSION}
+EXTRACT_SUFX=	.jar
+EXTRACT_ONLY=
+
+MAINTAINER=	freebsd at dussan.org
+COMMENT=	SonarQube Plugin for analysis projects with an Apache Ant
+
+LICENSE=	LGPL3
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+NO_WRKSUBDIR=	yes
+
+RUN_DEPENDS+=	ant:devel/apache-ant
+
+USES=		cpe
+CPE_VENDOR=	sonarsource
+
+USE_JAVA=	yes
+JAVA_VERSION=	1.7+
+
+SUB_FILES=	pkg-message
+PLIST_FILES=	${DATADIR_REL}/sonar-ant-task.jar
+
+OPTIONS_DEFINE=	SQ
+SQ_DESC=	SonarQube server support
+SQ_RUN_DEPENDS=	sonarqube>=0:devel/sonarqube
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${DISTDIR}/${DISTFILES} \
+		${STAGEDIR}${DATADIR}/${PORTNAME}${EXTRACT_SUFX}
+
+.include <bsd.port.mk>

Added: head/devel/sonar-ant-task/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sonar-ant-task/distinfo	Mon Jan 16 02:48:44 2017	(r431612)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1484408469
+SHA256 (sonarqube-ant-task-2.5.jar) = 43e7a8e0a5f8d44cd602de4a7ccf2e819e23429370d1b97425d38562651331cf
+SIZE (sonarqube-ant-task-2.5.jar) = 537405

Added: head/devel/sonar-ant-task/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sonar-ant-task/files/pkg-message.in	Mon Jan 16 02:48:44 2017	(r431612)
@@ -0,0 +1,13 @@
+************************************************************************
+
+  To integrate SonarQube with SonarQube Scanner for Ant (default
+  settings):
+  - define a new sonar Ant target in your Ant build script
+  - for the SonarQube target set classpath value to
+   %%DATADIR%%/sonar-ant-task.jar
+
+
+  More information:
+  http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Ant
+
+************************************************************************

Added: head/devel/sonar-ant-task/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sonar-ant-task/pkg-descr	Mon Jan 16 02:48:44 2017	(r431612)
@@ -0,0 +1,8 @@
+The SonarQube Scanner for Ant is an Ant Task that is wrapper of SonarQube
+Scanner, which works by invoking SonarQube Scanner and passing to it all
+properties named following a sonar.* convention. This has the downside of not
+being very Ant-y, but the upside of providing instant availability of any new
+analysis parameter introduced by a new version of a plugin or of SonarQube
+itself.
+
+WWW: http://docs.sonarqube.org/display/SONAR/Installing+and+Configuring+Ant+SonarQube+Task


More information about the svn-ports-all mailing list