From ae037c0716d27df83f4e7f220c213206b1e1ec4e Mon Sep 17 00:00:00 2001 From: jmoore Date: Sat, 17 Oct 2009 22:04:24 +0000 Subject: [PATCH] OmeroLogging : Silencing NPEs during build git-svn-id: file:///home/svn/omero/trunk@5502 05709c45-44f0-0310-885b-81a1db45b4a6 --- build.py | 5 ++- components/antlib/resources/lifecycle.xml | 2 ++ etc/log4j-indexing.xml | 8 +++-- etc/log4j.xml | 8 +++-- lib/log4j-build.xml | 41 +++++++++++++++++++++++ 5 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 lib/log4j-build.xml diff --git a/build.py b/build.py index 8fbcda6fa25..97c10642315 100755 --- a/build.py +++ b/build.py @@ -13,7 +13,8 @@ def build_hudson(): """ - Top-level build called by hudson for testing the + Top-level build called by hudson for testing all components, + generating documentation, etc. """ # # Cleaning to prevent strange hudson errors about @@ -49,6 +50,8 @@ def build_hudson(): def java_omero(args): command = [ find_java() ] + p = os.path.join( os.path.curdir, "lib", "log4j-build.xml") + command.append("-Dlog4j.configuration=%s" % p) command.extend( calculate_memory_args() ) command.extend(["omero"]) command.extend(choose_omero_version()) diff --git a/components/antlib/resources/lifecycle.xml b/components/antlib/resources/lifecycle.xml index bb85ee53c79..3fecf0fb442 100644 --- a/components/antlib/resources/lifecycle.xml +++ b/components/antlib/resources/lifecycle.xml @@ -63,6 +63,7 @@ + @@ -152,6 +153,7 @@ omero.version=${omero.version} + diff --git a/etc/log4j-indexing.xml b/etc/log4j-indexing.xml index 12b44da54dd..df04e4e6355 100644 --- a/etc/log4j-indexing.xml +++ b/etc/log4j-indexing.xml @@ -15,10 +15,14 @@ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Log configuration which is pointed to by the -Dlog4j.configuration setting in -lib/omero/java.py but can be overwritten by setting omero.blitz.xargs. This -file is periodically read during runtime, and any changes cause the log4j +etc/grid/templates.xml + +This file is periodically read during runtime, and any changes cause the log4j system to be re-configured. +Previously, pointed to by lib/omero/java.py but could be overwritten by setting +omero.blitz.xargs. + --> diff --git a/etc/log4j.xml b/etc/log4j.xml index 40a490c0bfa..f7c3d717ad9 100755 --- a/etc/log4j.xml +++ b/etc/log4j.xml @@ -15,10 +15,14 @@ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Log configuration which is pointed to by the -Dlog4j.configuration setting in -lib/omero/java.py but can be overwritten by setting omero.blitz.xargs. This -file is periodically read during runtime, and any changes cause the log4j +etc/grid/templates.xml + +This file is periodically read during runtime, and any changes cause the log4j system to be re-configured. +Previously, pointed to by lib/omero/java.py but could be overwritten by setting +omero.blitz.xargs. + --> diff --git a/lib/log4j-build.xml b/lib/log4j-build.xml new file mode 100644 index 00000000000..607e1d9cec6 --- /dev/null +++ b/lib/log4j-build.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + +