Hi Osma,
This is probably not the recommended way, but what I normally do when I want to 
test something from master is to call the Java command directly from Eclipse. 
Eclipse appears to take care of the dependencies required.
I use the same approach for running Fuseki in development.
Bruno

    On Saturday, 5 December 2020, 6:00:56 am NZDT, Osma Suominen 
<[email protected]> wrote:  
 
 Hi,

as I was investigating an apparent performance regression in tdbquery 
(see my recent posts to the users list) I noticed that it's pretty 
difficult to run the Jena command line tools from a development 
environment. It's possible that I'm missing something obvious here, but 
I think this has been a problem for others as well and at some point in 
2015-2016 a fix was in place, but it's no longer working.


The problem is that the scripts expect a single directory with all the 
relevant JARs that can be used as the classpath. But when building Jena, 
the various JARs will be all around the directory tree. They get 
collected into the .zip/.tar.gz packages though. So the easiest way to 
run the scripts is to extract one of those archives. But that's a bit 
cumbersome, it would be easier if one could run them straight after 
building the source.

Apparently Rob noticed this while working on JENA-977 way back in 2015 
and added a section to apache-jena/pom.xml that copied all the necessary 
JARs to apache-jena/lib (commit 3c59213e273). This was further refined 
by JENA-1173 - the problem was that the lib/ directory got included into 
the source release zip files, so this added another section into 
apache-jena/pom.xml to clean up the lib/ directory.

So far so good - I think at this point the mechanism was working so it 
was easy to run the scripts from a dev environment (I didn't test this 
though).

But then came commit a9701d2706a (by Andy in 2016) where the main 
objective appears to be omitting javadocs, but the relevant sections in 
the pom.xml were also commented out (and an obvious typo within that 
section was corrected as well).

So we're now back to square one, and it's again hard to run the scripts 
from a dev environment as there is no single lib/ directory that would 
hold all the JARs.


As I said I may have missed something obvious. What is the recommended 
way of running, say, tdbquery or riot, after just having built Jena?

-Osma


-- 
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 26 (Kaikukatu 4)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
[email protected]
http://www.nationallibrary.fi
  

Reply via email to