Fixed "rate me too" notifications, and a bug using multiple media dirs.
http://hirt.se/twiki/pub/Main/ScratchPa ... _0.2.3.zip
FairDJ 0.2.3 beta released!
(Re)install broken(?)
having already done
with an older version results in
We maybe should support rebuilding a new settings file. While at it, option to inform where to create settings file?
Code: Select all
java -jar fairdj.jar -installCode: Select all
C:\tmp\fairdj>java -jar FairDJ_0.2.3\fairdj.jar -install
2006-02-28 09:37:48,285 [Main Thread ] INFO net.sf.fairdj.FairDj: Fair DJ is exiting due to install command. Settings file location should be on the previous line.
C:\tmp\fairdj>Setting ratings path to non-existent folder gives exception
I set the following in settings.xml:
where the folder ratings does not exist. This results in
I suggest deafult action is to create folder and move on.
Code: Select all
<mediadir>d:\mp3</mediadir>
<ratingsdir>ratings</ratingsdir>Code: Select all
C:\tmp\fairdj>java -jar FairDJ_0.2.3\fairdj.jar -settings settings.xml
2006-02-28 09:45:46,554 [Main Thread ] INFO net.sf.fairdj.FairDj: Loading settings from C:\tmp\fairdj\settings.xml
2006-02-28 09:45:47,023 [Main Thread ] INFO net.sf.fairdj.FairDJFactory: Creating Fair DJ subsystems.
2006-02-28 09:45:47,148 [Main Thread ] INFO net.sf.fairdj.FairDJFactory: Initializing Fair DJ subsystems from XML.
2006-02-28 09:45:47,163 [Main Thread ] INFO net.sf.fairdj.users.UserDbImpl: userdb not set, faking it in C:\DOCUME~1\mattias\LOCALS~1\Temp\fairdj-demo-userdb
2006-02-28 09:45:47,257 [Main Thread ] FATAL .sf.fairdj.tracks.TracksDbImpl: Can't locate mserv db root.
java.io.FileNotFoundException: The given path to the Mserv database 'ratings' do esn't exist
at net.sf.fairdj.mservdb.MservDb.<init>(MservDb.java:49)
at net.sf.fairdj.tracks.TracksDbImpl.setRatingsRoot(TracksDbImpl.java:124)
at net.sf.fairdj.tracks.TracksDbImpl.loadFromXml(TracksDbImpl.java:411)
at net.sf.fairdj.FairDJFactory.initializeTracksDb(FairDJFactory.java:231)
at net.sf.fairdj.FairDJFactory.loadFromXml(FairDJFactory.java:184)
at net.sf.fairdj.FairDj.loadFromXml(FairDj.java:439)
at net.sf.fairdj.FairDj.initiateFromSettings(FairDj.java:384)
at net.sf.fairdj.FairDj.start(FairDj.java:349)
at net.sf.fairdj.FairDj.main(FairDj.java:339)
2006-02-28 09:45:47,288 [Main Thread ] INFO net.sf.fairdj.FairDj: Shutdown complete, see ya
C:\tmp\fairdj>Doing
yields:
That is, the settings file will only be overwritten if no such file already exists. Now, I agree that it would be better backup the file if one already exists if one uses the install command. I will add this feature to the next version.
Code: Select all
java -jar fairdj.jar -help installCode: Select all
Usage: install
Will really just exit Fair DJ after the default initialization,
which includes setting up the default settings file, if no such file exists.I was going to report...
...that FairDJ could not create a user db from scratch (could not 0.2.2) but that has been fixed - nice! 
Track this on http://hirt.se/bugzilla/show_bug.cgi?id=7.