blob: 99c14d209825e2efa1560a37f0667973d1034a9f [file] [log] [blame]
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
For General Users & log4j developers
Firstly, you'll need maven 2.0.9+ to build Chainsaw:
* cd to Chainsaw project checkout directory
mvn install
This will automatically build and assemble the Chainsaw distribution which includes a .sh & .bat shell script to run Chainsaw. You can then run Chainsaw as follows:
sh target/appassembler/bin/chainsaw
You can use the *nix steps above, or go one extra step for a nicer OSX experience
mvn package osxappbundle:bundle -DmainClass=org.apache.log4j.chainsaw.LogUI
This will create an OSX distribution, look inside the target folder for the packaged OSX application and .dmg distribution. You can drag the application to your /Applications folder, or just double click it from the target folder.
For log4j developers
Creating a Webstart distribution
To create the Webstart distribution requires:
* a keystore configured with a valid code signing key
I've always found this link useful:
* A maven profile that defines the parameters for code signing (otherwise passwords and stuff need to be embedded in the pom.xml)
Edit your ${user.home}/.m2/settings.xml file, such that it has something like:
Then create the webstart package:
mvn -Pchainsaw-signing install webstart:jnlp
Inside the target folder will contain a .zip file containing the webstart distribution, including the generated .jnlp file.