Page MenuHomeFreeBSD

[NEW PORT] devel/sonar-ant-task: SonarQube Plugin for analysis projects with an Apache Ant
ClosedPublic

Authored by ler on Jan 15 2017, 9:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 10:23 AM
Unknown Object (File)
Feb 11 2024, 7:57 PM
Unknown Object (File)
Jan 3 2024, 6:33 AM
Unknown Object (File)
Jan 1 2024, 2:36 PM
Unknown Object (File)
Dec 28 2023, 10:23 PM
Unknown Object (File)
Dec 20 2023, 1:59 AM
Unknown Object (File)
Dec 9 2023, 12:12 AM
Unknown Object (File)
Dec 6 2023, 1:13 AM
Subscribers

Details

Summary

[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: Dušan Vejnovič (freebsd dussan.org)
Approved by: (adamw|rene) (mentor)

Test Plan

poudriere: ok (http://home.lerctr.org:8888/data/pHEADamd64-ler-checkout/2017-01-15_13h36m51s/logs/sonar-ant-task-2.5.log)
portlint -Ac: ok
borg.lerctr.org ~/FreeBSD/ports/devel/sonar-ant-task $ portlint -Ac
WARN: /home/ler/FreeBSD/ports/devel/sonar-ant-task/pkg-descr: includes lines that exceed 80 characters.
WARN: Makefile: using hyphen in PORTNAME. consider using PKGNAMEPREFIX and/or PKGNAMESUFFIX.
0 fatal errors and 2 warnings found.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ler retitled this revision from to [NEW PORT] devel/sonar-ant-task: SonarQube Plugin for analysis projects with an Apache Ant.
ler updated this object.
ler edited the test plan for this revision. (Show Details)
ler set the repository for this revision to rP FreeBSD ports repository.
  • SQ is defined the wrongly, it should be SQ= ${LOCALBASE}/sonarqube/bin/freebsd (PREFIX is where *this* port installs its files, LOCALBASE is where other ports install their files)
  • Would it be better to install the jar file into ${STAGEDIR}${SHAREDIR}${PORTNAME}/${PORTNAME}${EXTRACT_SUFX} ? But perhaps that's a matter of taste.
rene requested changes to this revision.Jan 15 2017, 9:40 PM
rene edited edge metadata.
This revision now requires changes to proceed.Jan 15 2017, 9:40 PM
ler edited edge metadata.

Rene's comments addressed.

Well if you are changing the INSTALL_DATA line, you should also change the two surrounding lines and make sure the plug-in still works.

Makefile
37 ↗(On Diff #24042)

I don't really like this depending on a .sample file. That seems pretty fragile. Just depend on the port itself.

SQ_RUN_DEPENDS=    sonarqube>=0:devel/sonarqube
43 ↗(On Diff #24042)

Wow, this is not right. ${LOCALBASE} is where stuff that already exists is. ${PREFIX} is where THIS port installs to. They can never be exchanged.

@${MKDIR} ${STAGEDIR}${DATADIR}
Makefile
43 ↗(On Diff #24042)

Also, does it really have to be writeable? Normally ${SHAREMODE} is 444.

ler marked 3 inline comments as done.Jan 16 2017, 12:39 AM

how about we upload the right diff.....

Makefile
31 ↗(On Diff #24050)

%% is for passing variables to an external pkg-plist. You're building it in the Makefile, so you should be using ${DATADIR_REL}.

41 ↗(On Diff #24050)

${STAGEDIR}${DATADIR}

ler updated this object.
ler edited the test plan for this revision. (Show Details)

Address Adam's comment.

ler marked 2 inline comments as done.Jan 16 2017, 2:22 AM

Really address ALL Adam's comments.
I'll learn.

Thou shalt not lose the x bit on the directory.
just chmod the file(s).

adamw edited edge metadata.

Approved but just remove the CHMOD line altogether.

ler edited edge metadata.

don't chmod the file, ${INSTALL_DATA} does it.

adamw edited edge metadata.
This revision was automatically updated to reflect the committed changes.