You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ju...@apache.org on 2009/09/14 17:05:31 UTC
svn commit: r814676 - in /incubator/pdfbox/trunk: build.xml
logging.properties
Author: jukka
Date: Mon Sep 14 15:05:31 2009
New Revision: 814676
URL: http://svn.apache.org/viewvc?rev=814676&view=rev
Log:
PDFBOX-530: Forward test logs to a log file
Added:
incubator/pdfbox/trunk/logging.properties (with props)
Modified:
incubator/pdfbox/trunk/build.xml
Modified: incubator/pdfbox/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/build.xml?rev=814676&r1=814675&r2=814676&view=diff
==============================================================================
--- incubator/pdfbox/trunk/build.xml (original)
+++ incubator/pdfbox/trunk/build.xml Mon Sep 14 15:05:31 2009
@@ -265,6 +265,7 @@
<jvmarg value="-Xmx1024M"/>
<jvmarg value="-Xms512M"/>
<sysproperty key="org.apache.pdfbox.util.TextStripper.file" value="${file}"/>
+ <sysproperty key="java.util.logging.config.file" value="logging.properties"/>
<classpath>
<pathelement path="${junit.jar}" />
<pathelement path="${ant.jar}" />
@@ -290,6 +291,7 @@
<jvmarg value="-Xms512M"/>
<sysproperty key="org.apache.pdfbox.util.TextStripper.file" value="${file}"/>
+ <sysproperty key="java.util.logging.config.file" value="logging.properties"/>
<classpath>
<pathelement path="${junit.jar}" />
<pathelement path="${ant.jar}" />
@@ -311,6 +313,7 @@
<target name="test-junit" depends="clean,compile" description="run junit tests">
<junit printsummary="off" fork="on" dir=".">
+ <sysproperty key="java.util.logging.config.file" value="logging.properties"/>
<classpath>
<pathelement path="${junit.jar}" />
<pathelement path="${ant.jar}" />
Added: incubator/pdfbox/trunk/logging.properties
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/logging.properties?rev=814676&view=auto
==============================================================================
--- incubator/pdfbox/trunk/logging.properties (added)
+++ incubator/pdfbox/trunk/logging.properties Mon Sep 14 15:05:31 2009
@@ -0,0 +1,20 @@
+# 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
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+handlers=java.util.logging.FileHandler
+.level=FINEST
+
+java.util.logging.FileHandler.pattern = target/pdfbox.log
+java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
Propchange: incubator/pdfbox/trunk/logging.properties
------------------------------------------------------------------------------
svn:eol-style = native