Music Site Generator Source

Here is the java source for the program that generates my Music Site.

My only request is that if you improve or modify these files, please share your ideas and contributions with me. If there is any interest in this, I'd like to treat this as an open source collaborative project.

There are 4 Java class files you'll need:

Track.java
BuildSite.java
MusicSiteGenerator.java
JukeBoxTrackParser.java

(download the source here)

Also, here is a sample Tracks.txt file for testing. Normally, you would use the Real Jukebox Export Playlist command to build this file from a playlist of your entire music collection:

Tracks.txt (sample)

The first thing you'll probably want to do to improve upon what I have done is to generalize it to take things that should be parameterized from a configuration file. Examples would be the name of the tracks file, the name of the directory where the site is built, the affiliate URL for Amazon.com (and the name of the site because it could be CDnow.com or some other site), etc.

The next thing you'll probably want to do is make the HTML more customizable. I was thinking about setting up and using CSS styles on the <td> and <table> tags. Then people could use whatever stylesheet they want.

The IDE I am using is called Idea, by IntelliJ. I HIGHLY recommended this IDE. It's fast, easy to use and very pleasing for working with Java. It runs on Linux or Windows. You can download it and try it for free.

Feel free to e-mail me at djsf@speakeasy.net

(home)