[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Handle-info] Handle source code - compile / github



Long time handle user, first time trying to get my hands dirty and play with the code itself.

1) I'm having trouble getting the 8.1.1 code to compile. Here's what I've done so far:

wget http://www.handle.net/hnr-source/hcj-8.1.1.tar.gz
tar xzvf hcj-8.1.1.tar.gz
cd dist/hcj-8.1.1/
mkdir handle-library-8.1.1
cp src.zip handle-library-8.1.1/

cp src.zip handle-source-8.1.1
cd handle-source-8.1.1
ant

BUILD FAILED
/Users/peterdietz/Projects/handle/hsj-8.1.1/handle-8.1.1-source/build.xml:224: /Users/peterdietz/Projects/handle/hsj-8.1.1/handle-8.1.1-source/lib/jetty does not exist.

Okay.. So then, I make that directory:
mkdir -p lib/jetty
ant

util:
    [javac] Compiling 14 source files to /Users/peterdietz/Projects/handle/hsj-8.1.1/handle-8.1.1-source/build
    [javac] /Users/peterdietz/Projects/handle/hsj-8.1.1/handle-8.1.1-source/src/net/handle/util/DeepClone.java:16: error: package net.cnri.util does not exist
    [javac] public interface DeepClone extends net.cnri.util.DeepClone

It looks like things are referencing net.cnri, which doesn't exist in my source tree. Maybe I'm missing some jar? I only see net.handle.*

I feel like instead of packaging the jar dependencies yourself, using a dependency management tool would work better, i.e. maven/gradle. Also, maybe I've missed some documentation about how to build it yourself. 


2) Is there a reason why the source code isn't somewhere accessible like GitHub? To get the library code, you have to get a tarball of the binary release, then unzip a src.zip file, and as I've mentioned above, is not working out of the box for me.
(Sorry if this is a naive question, it seems pretty commonplace these days).


Thanks in advance.


________________
Peter Dietz
Longsight
www.longsight.com
peter@longsight.com
p: 740-599-5005 x809
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info