Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2279 - in development/main/transit/core: handler/src/main/net/dpml/transit plugin/src/main/net/dpml/transit/control

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: r2279 - in development/main/transit/core: handler/src/main/net/dpml/transit plugin/src/main/net/dpml/transit/control
  • Date: Wed, 13 Apr 2005 13:29:22 -0400

Author: mcconnell AT dpml.net
Date: Wed Apr 13 13:29:19 2005
New Revision: 2279

Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/Main.java

development/main/transit/core/plugin/src/main/net/dpml/transit/control/CommandHandler.java
Log:
add check for server mode so we don't go logging help info when starting
transit as a server

Modified:
development/main/transit/core/handler/src/main/net/dpml/transit/Main.java
==============================================================================
--- development/main/transit/core/handler/src/main/net/dpml/transit/Main.java
(original)
+++ development/main/transit/core/handler/src/main/net/dpml/transit/Main.java
Wed Apr 13 13:29:19 2005
@@ -214,6 +214,7 @@
data.put( "urn:transit.repository.monitor", repoMonitor );
data.put( "urn:transit.cache.monitor", cacheMonitor );
data.put( "urn:transit.network.monitor", netMonitor );
+ data.put( "urn:transit.server", new Boolean( server ) );
data.put( "urn:transit.args", arguments );
Map map = new Dictionary( data );


Modified:
development/main/transit/core/plugin/src/main/net/dpml/transit/control/CommandHandler.java
==============================================================================
---
development/main/transit/core/plugin/src/main/net/dpml/transit/control/CommandHandler.java
(original)
+++
development/main/transit/core/plugin/src/main/net/dpml/transit/control/CommandHandler.java
Wed Apr 13 13:29:19 2005
@@ -164,13 +164,17 @@
String target = line.getOptionValue( "load" );
m_payload = getLoadArguments( target );
}
- else if( line.hasOption( "server" ) )
+ else if( line.hasOption( "Xserver" ) )
{
m_command = "server";
}
else if( false == line.hasOption( "Xversion" ) )
{
- m_command = "unknown";
+ Boolean server = (Boolean) map.get( "urn:transit.server" );
+ if( !server.booleanValue() )
+ {
+ m_command = "help";
+ }
}
}

@@ -208,7 +212,7 @@
handleLoadCommand( target );
}
}
- else if( "unknown".equals( m_command ) )
+ else if( "help".equals( m_command ) )
{
handleHelpMessage();
}



  • svn commit: r2279 - in development/main/transit/core: handler/src/main/net/dpml/transit plugin/src/main/net/dpml/transit/control, mcconnell, 04/13/2005

Archive powered by MHonArc 2.6.24.

Top of Page