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
F106380921: D9193.diff
Sun, Dec 29, 5:52 PM
Unknown Object (File)
Fri, Dec 20, 9:18 AM
Unknown Object (File)
Nov 29 2024, 2:20 PM
Unknown Object (File)
Nov 19 2024, 3:19 AM
Unknown Object (File)
Nov 16 2024, 5:25 PM
Unknown Object (File)
Nov 9 2024, 2:24 AM
Unknown Object (File)
Oct 30 2024, 12:23 PM
Unknown Object (File)
Oct 3 2024, 8:52 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 Skipped
Unit
Tests Skipped

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

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

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

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

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

41

${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.