The batch approach can also be used in this example : I use
Chameleon with a Panoramics album, which consists of 6 (and growing) folders. Originally, I used 6 separate jap files and one Index jap, and ran them individually or all together using a batch file. The 6 japs use different Chameleon styles, and the index has a few more changes.
The problem is this : the Chameleon skin is very much a live project, and is updated often (for which I am very grateful
). To keep my album fully up to date means much editing of these 7 jap files, double checking that the right settings are being used etc.
So, for an album like this which has small variations in parameters, I created a "base" jap file and used the command line parameters to make the necessary adjustments. This means that I have only one jap file (and one batch file) to maintain, which should help reduce the work load in the future.
Simple but effective. See
http://mworthington.cabspace.com/jalbum/panoramics
The batch file is :
@ECHO OFF
CLS
ECHO.
ECHO.
ECHO.
ECHO Automatically Process Sub-Projects
ECHO ==================================
ECHO.
REM Use "-appendImages" for "Make Album", leave it out for "Rebuild All".
REM
REM See C:\Program Files\JAlbum\help\consolemode.html
ECHO.
ECHO Do you want to do this?
ECHO.
ECHO Control-C to abort
ECHO.
PAUSE
ECHO.
java -Xmx400M -jar "C:\Program Files\JAlbum\JAlbum.jar" -projectFile "Panoramics.jap" -directory "D:\Mark's JAlbum\Input\Panoramics\England" -outputDirectory "D:\Mark's JAlbum\Output\Panoramics\England" -style BlackBlue.css -appendImages
ECHO.
java -Xmx400M -jar "C:\Program Files\JAlbum\JAlbum.jar" -projectFile "Panoramics.jap" -directory "D:\Mark's JAlbum\Input\Panoramics\Home(s)" -outputDirectory "D:\Mark's JAlbum\Output\Panoramics\Home(s)" -style BlackRed.css -appendImages
ECHO.
java -Xmx400M -jar "C:\Program Files\JAlbum\JAlbum.jar" -projectFile "Panoramics.jap" -directory "D:\Mark's JAlbum\Input\Panoramics\Malta" -outputDirectory "D:\Mark's JAlbum\Output\Panoramics\Malta" -style BlackGold.css -appendImages
ECHO.
java -Xmx400M -jar "C:\Program Files\JAlbum\JAlbum.jar" -projectFile "Panoramics.jap" -directory "D:\Mark's JAlbum\Input\Panoramics\Others" -outputDirectory "D:\Mark's JAlbum\Output\Panoramics\Others" -style BlackTurquoise.css -appendImages
ECHO.
java -Xmx400M -jar "C:\Program Files\JAlbum\JAlbum.jar" -projectFile "Panoramics.jap" -directory "D:\Mark's JAlbum\Input\Panoramics\Skiing" -outputDirectory "D:\Mark's JAlbum\Output\Panoramics\Skiing" -style BlackWorld.css -appendImages
ECHO.
java -Xmx400M -jar "C:\Program Files\JAlbum\JAlbum.jar" -projectFile "Panoramics.jap" -directory "D:\Mark's JAlbum\Input\Panoramics\The Great Outdoors" -outputDirectory "D:\Mark's JAlbum\Output\Panoramics\The Great Outdoors" -style BlackJungle.css -appendImages
ECHO.
java -Xmx400M -jar "C:\Program Files\JAlbum\JAlbum.jar" -projectFile "Panoramics.jap" -directory "D:\Mark's JAlbum\Input\Panoramics" -outputDirectory "D:\Mark's JAlbum\Output\Panoramics" -style Black.css -appendImages -subdirs false -thumbSize 120x120 -cols 5
ECHO.
ECHO.
ECHO Check Album ....
ECHO.
PAUSE
"D:\Mark's JAlbum\Output\Panoramics\index.html"
Mark
ps, for those who notice, some of the Chameleon styles are my modified ones ...