(This post is sticky, will be updated as DZ3 codebase grows, and will eventually be migrated to the main site when DZ3 is sufficiently mature)
Below is what you have to do to have DZ3 code base installed on your system. It goes without saying that having a working installation of JDK 1.6 is a prerequisite. I distrust any implementation other than Sun's, but it's been many years since I've tried anything else, YMMV.
You may want to copy and paste it into a shell scropt and see what happens when you run it. Watch long lines.
Fedora 10+
#! /bin/sh
yum install maven2
yum install svn
cd ${your_development_directory}
svn co \
https://jukebox4.svn.sourceforge.net/svnroot/jukebox4/trunk/jukebox-master \
jukebox-master
(cd jukebox-master && mvn install)
svn co \
https://diy-zoning.svn.sourceforge.net/svnroot/diy-zoning/trunk/dz3-master \
dz3-master
cd dz3-master
# This test will most probably fail on your box because it is system specific
rm dz3-sensors/src/test/java/net/sf/dz3/device/sensor/impl/ShellSensorTest.java
mvn install
You're done. DZ3 codebase is installed on your box.
Ubuntu 9.04
The only difference with the above is that instead of executing
yum install maven2you execute
yum install svn
sudo apt-get install maven2Mac OS X
sudo apt-get install subversion
(to the best of my understanding of explanations of a Mac expert):
- Install Development packet, it'll give you Subversion, among other things
- Install
macports - Run
"port install maven2"
Update: I'm told that both Maven and Subversion are preinstalled on Mac OS X starting with version 10.5.
Windows
You're on your own here. The only advice I can give is to use TortoiseSVN and download and install Maven manually. And of course, shell scripts won't work - unless you're running Cygwin, but if that's the case, then you don't need my advice.
UPDATING CODE BASE
The only thing you have to do is to execute
svn update followed by mvn clean install in jukebox-master and dz3-master directories. Don't forget to kill the shell sensor test case, or modify it to suit your system - should be trivial. Something like this:#! /bin/sh
cd ${your_development_directory}
(cd jukebox-master && svn update && mvn clean install)
cd dz3-master
svn update
rm dz3-sensors/src/test/java/net/sf/dz3/device/sensor/impl/ShellSensorTest.java
mvn clean install
COMING UP
DZ3 invocation and runtime configuration.
0 comments:
Post a Comment