Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2252 - development/main/transit/core/tools/src/main/net/dpml/transit/tools

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT dpml.net
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r2252 - development/main/transit/core/tools/src/main/net/dpml/transit/tools
  • Date: Fri, 08 Apr 2005 20:13:43 -0400

Author: mcconnell AT dpml.net
Date: Fri Apr 8 20:13:41 2005
New Revision: 2252

Modified:

development/main/transit/core/tools/src/main/net/dpml/transit/tools/PluginTask.java

development/main/transit/core/tools/src/main/net/dpml/transit/tools/TransitComponentHelper.java
Log:
Add trace messages to the plugin task and the transit component helper
concerning the getResourceAsAStream operation when loading the antlib
resource. I'm seeing anywhere from 5 to 25 seconds to load the 2k magic antib
file.

Modified:
development/main/transit/core/tools/src/main/net/dpml/transit/tools/PluginTask.java
==============================================================================
---
development/main/transit/core/tools/src/main/net/dpml/transit/tools/PluginTask.java
(original)
+++
development/main/transit/core/tools/src/main/net/dpml/transit/tools/PluginTask.java
Fri Apr 8 20:13:41 2005
@@ -165,7 +165,6 @@

final Project project = getProject();
ClassLoader classloader = this.getClass().getClassLoader();
- //ClassLoader classloader =
Thread.currentThread().getContextClassLoader();
final ComponentHelper helper =
ComponentHelper.getComponentHelper( project );

@@ -294,7 +293,11 @@
throw new BuildException( error, getLocation() );
}

+ long t0 = System.currentTimeMillis();
InputStream input = classloader.getResourceAsStream( resource );
+ long t1 = System.currentTimeMillis() - t0;
+ if( t1 > 0 ) log( "elapsed: " + t1 ); // ## debugging
+
Element root = ElementHelper.getRootElement( input );

Element[] tasks = ElementHelper.getChildren( root, "taskdef" );

Modified:
development/main/transit/core/tools/src/main/net/dpml/transit/tools/TransitComponentHelper.java
==============================================================================
---
development/main/transit/core/tools/src/main/net/dpml/transit/tools/TransitComponentHelper.java
(original)
+++
development/main/transit/core/tools/src/main/net/dpml/transit/tools/TransitComponentHelper.java
Fri Apr 8 20:13:41 2005
@@ -326,9 +326,11 @@
else
{
String resource = descriptor.getResource();
+ long t0 = System.currentTimeMillis();
InputStream input = classloader.getResourceAsStream(
resource );
+ long t1 = System.currentTimeMillis() - t0;
+ if( t1 > 0 ) m_project.log( "elapsed: " + t1 ); // ##
debugging
Element root = ElementHelper.getRootElement( input );
-
Element[] tasks = ElementHelper.getChildren( root, "taskdef"
);

for( int i=0; i < tasks.length; i++ )



  • svn commit: r2252 - development/main/transit/core/tools/src/main/net/dpml/transit/tools, mcconnell, 04/08/2005

Archive powered by MHonArc 2.6.24.

Top of Page