Dne pátek 13. listopadu 2020 19:48:41 CET, Michael Semb Wever napsal(a):
> > Or you can use [Jackpot](https://netbeans.apache.org/jackpot/index.html)!
> > It's primary goal is to search and perform advanced refactorings and watch
> > for code quality. However while doing so, it has to also check for errors.
> > Unless I am mistaken it understands NetBeans Ant (hopefully also free
> > form)
> > projects. It can be invoked from a command line[1]. It may be ideal for
> > validating project setup from a NetBeans IDE perspective in a CI system. I
> > am CCing Jan Lahoda to guide you through that journey as the documentation
> > may not fully cover this way of using the tool.
> 
> Thanks Jaroslav!
> 
> I am curious about Jackpot.

Turns out I was wrong. Jan Lahoda told me that command line Jackpot needs to 
properly specify classpath, which is exactly what I wanted to avoid.

I guess the test is the only option then. I am sorry for misguiding you.
-jt

> 
> 
> I tried to run
>  `mvn org.apache.netbeans.modules.jackpot30:jackpot30-maven-plugin:analyze`
> but it complains the current directory is not a maven project. So I went to
> the code to see if it can be run maven-free, directly against the
> freeform-form ant project…
> 
> 
> Given the code is at https://github.com/apache/netbeans-jackpot30
> 
> I managed to build the cmdline subproject with
> 
> `ant -DNETBEANS_PLATFORM=/Users/mick/src/apache/netbeans/nbbuild/netbeans
> -DJDK11=/Users/mick/.jenv/versions/11.0.4 build`
> 
> Though build-and-test target failed. I'm on macos. And the jackpot script
> doesn't work… but hacking it a bit gets me closer…
> 
> java  -classpath
> build/cluster/modules/org-netbeans-modules-jackpot30-cmdline.jar:build/clus
> ter/modules/org-netbeans-modules-jackpot30-cmdline-lib.jar:tool/build/jopt-s
> imple-3.2.jar:tool/build/slf4j-api-1.7.25.jar:tool/build/diffparser-1.4.jar:
> tool/build/slf4j-nop-1.7.25.jar:<plus-all-the-netbeans-jar>
> org.netbeans.modules.jackpot30.cmdline.Main --help
> 
> I gave up at this point. Is there a shaded jarfile, or downloaded cmdline
> artefact, I can download to keep me moving? Or have I just taken a wrong
> turn here…?
> 
> regards,
> Mick
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to