From 4e8e1a096b9b833ae77c7cc28ef115bcc404e521 Mon Sep 17 00:00:00 2001 From: Sasha Date: Fri, 26 Jul 2013 11:13:12 +0100 Subject: [PATCH] Improve building process: log4j.properties is in a right place both in jabaw.war and Eclipse building --- .classpath | 37 +- build.xml | 1231 ++++++++++---------- log/log4j.properties | 74 ++ .../log4j.properties.dundee | 0 {conf => log}/log4j.properties.full | 0 5 files changed, 708 insertions(+), 634 deletions(-) create mode 100644 log/log4j.properties rename dundee-conf/log4j.properties => log/log4j.properties.dundee (100%) rename {conf => log}/log4j.properties.full (100%) diff --git a/.classpath b/.classpath index c9f256a..2d206e3 100644 --- a/.classpath +++ b/.classpath @@ -1,18 +1,19 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/build.xml b/build.xml index 693e480..e3ce16a 100644 --- a/build.xml +++ b/build.xml @@ -1,616 +1,615 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Cleaning Statistics database - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Jar file: Minimal WS client jar - - - - - - - - - - - - - - - - - - - - - - - Jar file: JABAWS client source - - - - - - - - - - - - - - - - - - - - - - Jar file: Minimal WS client jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Jar file: Full WS client jar - - - - - - - - - - - - - - - - - - - - - Jar file: AAConWS client jar - - - - - - - - - - - - - - - - - - - - - - Packing binaries, and configuration files - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Jar file: Full WS client jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Preparing a war file without binaries - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Packing data for internal web site - - - - - - - - - - Preparing a complete war file - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Cleaning Statistics database + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Jar file: Minimal WS client jar + + + + + + + + + + + + + + + + + + + + + + + Jar file: JABAWS client source + + + + + + + + + + + + + + + + + + + + + + Jar file: Minimal WS client jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Jar file: Full WS client jar + + + + + + + + + + + + + + + + + + + + + Jar file: AAConWS client jar + + + + + + + + + + + + + + + + + + + + + + Packing binaries, and configuration files + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Jar file: Full WS client jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Preparing a war file without binaries + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Packing data for internal web site + + + + + + + + + + Preparing a complete war file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/log/log4j.properties b/log/log4j.properties new file mode 100644 index 0000000..fc6e3a9 --- /dev/null +++ b/log/log4j.properties @@ -0,0 +1,74 @@ + +## CHANGE THIS (The root directory where to store all the log files) +#logDir = . + +## Uncomment to enable JWS2 activity logging to standard out (to the console if available) +## for possible log levels please refer to Log4j documentation http://logging.apache.org/log4j/1.2/manual.html +## Valid log levels are: +## TRACE - log everything from below including very detailed messages (useful for debugging only) +## DEBUG - log everything from below including some minor events (useful for debugging only) +## INFO - log everything from below including some information messages +## WARN - log error and warnings +## ERROR - log errors and fatal events only +## FATAL - log fatal events only + +## Uncomment this if you would like the system to log messages into stdout +#log4j.rootLogger=TRACE, rootfile +#log4j.appender.rootfile=org.apache.log4j.RollingFileAppender +#log4j.appender.rootfile.File=JABAWSLogFilename.log +#log4j.appender.rootfile.Target=System.out +#log4j.appender.rootfile.layout=org.apache.log4j.PatternLayout +#log4j.appender.rootfile.layout.ConversionPattern=%t %d %m%n + +## Uncomment to enable JWS2 activity logging to the file +#log4j.logger.compbio=TRACE, ACTIVITY +#log4j.appender.ACTIVITY=org.apache.log4j.RollingFileAppender +################log4j.appender.ACTIVITY.File=${logDir}/activity.log +#log4j.appender.ACTIVITY.File=${catalina.base}/logs/JABAWSLogFilename.log +#log4j.appender.ACTIVITY.MaxFileSize=10MB +#log4j.appender.ACTIVITY.MaxBackupIndex=10000 +#log4j.appender.ACTIVITY.layout=org.apache.log4j.PatternLayout +#log4j.appender.ACTIVITY.layout.ConversionPattern=%d{MM-dd@HH:mm:ss} %-5p %3x - %m%n + +## Uncomment for separate local engine execution log (debugging only) +#log4j.logger.compbio.engine.local.LocalExecutorService=INFO, C +#log4j.appender.C=org.apache.log4j.FileAppender +#log4j.appender.C.File=LocalExecutorService.log +#log4j.appender.C.layout=org.apache.log4j.PatternLayout +#log4j.appender.C.layout.ConversionPattern=%m%n + +################################################################################################################################## +# log4j.properties from runner/ + +#log4j.appender.stdout=org.apache.log4j.ConsoleAppender +#log4j.appender.stdout.Target=System.out +#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +#log4j.appender.stdout.layout.ConversionPattern=%m%n +#log4j.rootLogger=info, stdout + +log4j.rootLogger=ERROR, errorfile +log4j.appender.errorfile=org.apache.log4j.FileAppender +log4j.appender.errorfile.File=${catalina.base}/logs/JABAWSErrorFile.log +log4j.appender.errorfile.Target=System.out +log4j.appender.errorfile.layout=org.apache.log4j.PatternLayout +log4j.appender.errorfile.layout.ConversionPattern=%t %d %m%n + +# %d{ABSOLUTE} %5p %c{1}:%L - +log4j.logger.compbio=TRACE, B +log4j.appender.B=org.apache.log4j.FileAppender +log4j.appender.B.File=${catalina.base}/logs/engine.log +log4j.appender.B.layout=org.apache.log4j.PatternLayout +log4j.appender.B.layout.ConversionPattern=%m%n %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - + +# %d{ABSOLUTE} %5p %c{1}:%L - +#log4j.logger.compbio.engine.local.LocalExecutorService=INFO, C +#log4j.appender.C=org.apache.log4j.FileAppender +#log4j.appender.C.File=LocalExecutorService.log +#log4j.appender.C.layout=org.apache.log4j.PatternLayout +#log4j.appender.C.layout.ConversionPattern=%m%n +# %d{MM-dd@HH:mm:ss} %-5p (%13F:%L) %3x - + +#log4j.logger.RunnerLogger=ERROR, D +#log4j.appender.D=org.apache.log4j.ConsoleAppender +#log4j.appender.D.layout=org.apache.log4j.PatternLayout +#log4j.appender.D.layout.ConversionPattern=%r [%t] %p %c %x - %m%n diff --git a/dundee-conf/log4j.properties b/log/log4j.properties.dundee similarity index 100% rename from dundee-conf/log4j.properties rename to log/log4j.properties.dundee diff --git a/conf/log4j.properties.full b/log/log4j.properties.full similarity index 100% rename from conf/log4j.properties.full rename to log/log4j.properties.full -- 1.7.10.2