Skip to Content.
Sympa Menu

notify-dpml - r1507 - trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1507 - trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks
  • Date: Thu, 8 Jun 2006 03:45:00 +0200

Author: mcconnell
Date: 2006-06-08 03:44:44 +0200 (Thu, 08 Jun 2006)
New Revision: 1507

Modified:

trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/JUnitTestTask.java
Log:
add auto recognition of etc/data/logging.properties

Modified:
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/JUnitTestTask.java
===================================================================
---
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/JUnitTestTask.java
2006-06-07 14:02:03 UTC (rev 1506)
+++
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/JUnitTestTask.java
2006-06-08 01:44:44 UTC (rev 1507)
@@ -329,6 +329,25 @@
junit.addConfiguredSysproperty( security );
}

+ final File logProperties = new File( working, "logging.properties" );
+ if( logProperties.exists() )
+ {
+ final Environment.Variable log = new Environment.Variable();
+ log.setKey( "dpml.logging.config" );
+ try
+ {
+ log.setValue( logProperties.toURL().toString() );
+ }
+ catch( IOException e )
+ {
+ final String error =
+ "Unexpected file to url error."
+ + "\nFile: " + logProperties;
+ throw new BuildException( error, e );
+ }
+ junit.addConfiguredSysproperty( log );
+ }
+
final Environment.Variable endorsed = new Environment.Variable();
endorsed.setKey( "java.endorsed.dirs" );
endorsed.setValue( new File( Transit.DPML_SYSTEM, "lib/endorsed"
).getAbsolutePath() );




  • r1507 - trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks, mcconnell at BerliOS, 06/07/2006

Archive powered by MHonArc 2.6.24.

Top of Page