notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2517 - in development/main/depot: console/src/main/net/dpml/depot/console station/src/main/net/dpml/depot/prefs
- From: mcconnell AT dpml.net
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2517 - in development/main/depot: console/src/main/net/dpml/depot/console station/src/main/net/dpml/depot/prefs
- Date: Wed, 11 May 2005 18:32:30 +0000
Author: mcconnell AT dpml.net
Date: Wed May 11 18:32:19 2005
New Revision: 2517
Modified:
development/main/depot/console/src/main/net/dpml/depot/console/Main.java
development/main/depot/station/src/main/net/dpml/depot/prefs/TransitDialog.java
Log:
housekeeping
Modified:
development/main/depot/console/src/main/net/dpml/depot/console/Main.java
==============================================================================
--- development/main/depot/console/src/main/net/dpml/depot/console/Main.java
(original)
+++ development/main/depot/console/src/main/net/dpml/depot/console/Main.java
Wed May 11 18:32:19 2005
@@ -41,6 +41,8 @@
// static
//-----------------------------------------------------------------------
+ private static String DEPOT_STATION_CLASSPATH =
"@DEPOT-STATION-CLASSPATH@";
+
/**
* DPML home key.
*/
@@ -131,7 +133,8 @@
return;
}
- String classpath = resolve( profile.get( "classpath", null ) );
+ String classpath = resolveClasspath( profile );
+
if( null == classpath )
{
final String error =
@@ -168,6 +171,19 @@
}
}
+ private static String resolveClasspath( Preferences profile )
+ {
+ String classpath = resolve( profile.get( "classpath", null ) );
+ if( null != classpath )
+ {
+ return classpath;
+ }
+ else
+ {
+ return "${dpml.system}/cache/" + DEPOT_STATION_CLASSPATH;
+ }
+ }
+
private static void loadClass( Class c, String[] args ) throws Exception
{
try
Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/TransitDialog.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/TransitDialog.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/TransitDialog.java
Wed May 11 18:32:19 2005
@@ -104,13 +104,13 @@
String classname = UIManager.getSystemLookAndFeelClassName();
UIManager.setLookAndFeel( classname );
- setTitle( "DPML Transit" );
+ setTitle( "DPML Depot" );
Dimension size = new Dimension( DEFAULT_DIALOG_WIDTH,
DEFAULT_DIALOG_HEIGHT );
setSize( size );
JLabel label =
IconHelper.createImageIconJLabel(
- Transit.class.getClassLoader(), DPML_ICON_FILENAME, "", "DPML
Transit" );
+ Transit.class.getClassLoader(), DPML_ICON_FILENAME, "", "DPML
Depot" );
label.setBorder( new EmptyBorder( 5, 0, 0, 0 ) );
JTabbedPane tabbedPane = new JTabbedPane();
- svn commit: r2517 - in development/main/depot: console/src/main/net/dpml/depot/console station/src/main/net/dpml/depot/prefs, mcconnell, 05/11/2005
Archive powered by MHonArc 2.6.24.