Page 1 of 1

FairDJ 0.2.3 beta released!

Posted: 2006.02.27 23:21
by Marcus
Fixed "rate me too" notifications, and a bug using multiple media dirs.

http://hirt.se/twiki/pub/Main/ScratchPa ... _0.2.3.zip

(Re)install broken(?)

Posted: 2006.02.28 09:41
by mjo
having already done

Code: Select all

java -jar fairdj.jar -install
with an older version results in

Code: 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>
We maybe should support rebuilding a new settings file. While at it, option to inform where to create settings file?

Setting ratings path to non-existent folder gives exception

Posted: 2006.02.28 09:48
by mjo
I set the following in settings.xml:

Code: Select all

<mediadir>d:\mp3</mediadir>
<ratingsdir>ratings</ratingsdir>
where the folder ratings does not exist. This results in

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>
I suggest deafult action is to create folder and move on.

Posted: 2006.02.28 09:52
by Marcus
Doing

Code: Select all

java -jar fairdj.jar -help install
yields:

Code: 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.
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.

I was going to report...

Posted: 2006.02.28 09:53
by mjo
...that FairDJ could not create a user db from scratch (could not 0.2.2) but that has been fixed - nice! :-)

Posted: 2006.03.01 09:35
by Marcus