Joshua TAYLOR wrote:
> On Fri, Oct 14, 2011 at 6:18 AM, Ian Dickinson <[email protected]> wrote:
>> On 13/10/11 22:02, Joshua TAYLOR wrote:
>>> I just discovered the schemagen tool, and it looks incredibly useful
>>> to me.  I've been experimenting for a while with the command line
>>> options, and would now like to use a configuration file instead of
>>> passing lots of command line arguments.  However, schemagen seems to
>>> ignore configuration files specified with the -c argument.  For
>>> instance, my Jena installation is in /usr/local/lib/Jena-2.6.4, so I'd
>>> thought that the following test would work (where I'm using the sample
>>> schemagen.rdf that comes with Jena):
>> You are correct, there is a problem with schemagen processing the
>> configuration file. I think it was a regression that was introduced when I
>> started work on the schemagen maven plugin. I've fixed the bug in Apache svn
>> now. You have two slightly unfortunate choices, I'm afraid: either build
>> your own snapshot version of Jena from the svn, or avoid the config file and
>> use maven, ant or script files to give a repeatable build step for
>> schemagen.  Or, if you prefer, I could send you a patch file for you to
>> patch your local version of Jena with just the fix for your issue.
> 
> Thanks for the quick response!  Well, I'm not too worried about
> rebuilding Jena from SVN, but I am already using ant.  When you say
> "avoid the config file and use … to give a repeatable build step", you
> just mean using something where the configuration can be specified as
> command line options (without having to retype them every time),
> right?  Since I'm already set up with ant on this project, I think
> adding the command line options there will be the simplest option for
> now.  If I get some time later on, though, I'll look into rebuilding
> from SVN.

Hi Joshua,
if you know how to use Apache Maven you can checkout Jena, package it
yourself, here is what you can do:

  cd /tmp
  svn co https://svn.apache.org/repos/asf/incubator/jena/Jena2/jena/trunk/ jena
  cd jena
  mvn package

You'll find the Jena jars in the target directory:

  ls -la target/

I tried to publish a new SNAPSHOT in the old Jena repo-dev but I had problems.

I published a jena-core SNAPSHOT (new Apache stile) here:
https://repository.apache.org/content/repositories/snapshots/org/apache/jena/jena-core/2.6.5-incubating-SNAPSHOT/

Be warned with SNAPSHOTs and SVN trunk... these are not software releases.
You can use/test them if you want, but be always aware of their "status".

If you find a problem with the new jena-core SNAPSHOT, please, let us know.

For those using Maven, you need to point to the Apache Maven snapshot
repository and use:

  <dependency>
    <groupId>org.apache.jena</groupId>
    <artifactId>jena-core</artifactId>
    <version>2.6.5-incubating-SNAPSHOT</version>
  </dependency>

See also:

 - http://incubator.apache.org/jena/download/maven.html

Feedback and help with the documentation is also appreciated!

Cheers,
Paolo

> 
>> Thanks for spotting and reporting the problem, and apologies for the
>> inconvenience!
> 
> Thanks again for the quick response, and any inconvenience is easily
> outweighed by the convenience of not having to create "schema classes"
> by hand!
> 

Reply via email to