Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1306 - development/main/metro/meta/tools/src/main/net/dpml/meta/info/ant

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1306 - development/main/metro/meta/tools/src/main/net/dpml/meta/info/ant
  • Date: Mon, 27 Dec 2004 03:41:42 +0100

Author: niclas
Date: Mon Dec 27 03:41:42 2004
New Revision: 1306

Modified:

development/main/metro/meta/tools/src/main/net/dpml/meta/info/ant/MetaTask.java
Log:
Performance improvement in the MetaTask.

Modified:
development/main/metro/meta/tools/src/main/net/dpml/meta/info/ant/MetaTask.java
==============================================================================
---
development/main/metro/meta/tools/src/main/net/dpml/meta/info/ant/MetaTask.java
(original)
+++
development/main/metro/meta/tools/src/main/net/dpml/meta/info/ant/MetaTask.java
Mon Dec 27 03:41:42 2004
@@ -305,6 +305,19 @@
final JavaClass javaClass = (JavaClass)allClasses.get( i );
if( javaClass.isInterface() )
{
+ final String classname = javaClass.getFullyQualifiedName();
+ final File source = javaClass.getParentSource().getFile();
+ final File dest = getOutputFileForService( classname );
+
+ if( !m_force )
+ {
+ if( dest.exists()
+ && dest.lastModified() >= source.lastModified() )
+ {
+ continue;
+ }
+ }
+
Service service = new ServiceTag( javaClass, flag
).getService();
if( service == null )
{
@@ -318,22 +331,10 @@
// a service descriptor
//

- final String classname = javaClass.getFullyQualifiedName();
- final File source = javaClass.getParentSource().getFile();
- final File dest = getOutputFileForService( classname );
-
- if( !m_force )
- {
- if( dest.exists()
- && dest.lastModified() >= source.lastModified() )
- {
- continue;
- }
- }
final File parent = dest.getParentFile();
if( null != parent )
{
- if( !parent.exists() && !parent.mkdirs() )
+ if( ! parent.exists() && ! parent.mkdirs() )
{
final String message =
"Failed to create output directory: " + parent;
@@ -344,7 +345,19 @@
}
else
{
+ final String classname = javaClass.getFullyQualifiedName();
+ final File source = javaClass.getParentSource().getFile();
+ final File dest = getOutputFileForClass( classname );

+ if( !m_force )
+ {
+ if( dest.exists()
+ && dest.lastModified() >= source.lastModified() )
+ {
+ continue;
+ }
+ }
+
Type type = new TypeTag( javaClass, flag ).getType();
if( type == null )
{
@@ -358,18 +371,6 @@
// a type descriptor
//

- final String classname = javaClass.getFullyQualifiedName();
- final File source = javaClass.getParentSource().getFile();
- final File dest = getOutputFileForClass( classname );
-
- if( !m_force )
- {
- if( dest.exists()
- && dest.lastModified() >= source.lastModified() )
- {
- continue;
- }
- }
final File parent = dest.getParentFile();
if( null != parent )
{



  • svn commit: r1306 - development/main/metro/meta/tools/src/main/net/dpml/meta/info/ant, niclas, 12/26/2004

Archive powered by MHonArc 2.6.24.

Top of Page