Skip to Content.
Sympa Menu

notify-dpml - svn commit: r2514 - in development/main/depot: . cli console console/src console/src/main console/src/main/net console/src/main/net/dpml console/src/main/net/dpml/depot console/src/main/net/dpml/depot/console content station/src/main/net/dpml/depot/prefs station/src/main/net/dpml/depot/station

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: r2514 - in development/main/depot: . cli console console/src console/src/main console/src/main/net console/src/main/net/dpml console/src/main/net/dpml/depot console/src/main/net/dpml/depot/console content station/src/main/net/dpml/depot/prefs station/src/main/net/dpml/depot/station
  • Date: Wed, 11 May 2005 15:24:20 +0000

Author: mcconnell AT dpml.net
Date: Wed May 11 15:24:17 2005
New Revision: 2514

Added:
development/main/depot/console/ (props changed)
- copied from r2508, development/main/depot/cli/
development/main/depot/console/build.properties
development/main/depot/console/build.xml
development/main/depot/console/src/
development/main/depot/console/src/main/
development/main/depot/console/src/main/net/
development/main/depot/console/src/main/net/dpml/
development/main/depot/console/src/main/net/dpml/depot/
development/main/depot/console/src/main/net/dpml/depot/console/

development/main/depot/console/src/main/net/dpml/depot/console/DepotClassLoader.java

development/main/depot/console/src/main/net/dpml/depot/console/Environment.java

development/main/depot/console/src/main/net/dpml/depot/console/EnvironmentException.java
development/main/depot/console/src/main/net/dpml/depot/console/Main.java

development/main/depot/console/src/main/net/dpml/depot/console/PropertyResolver.java
development/main/depot/content/build.xml
development/main/depot/station/src/main/net/dpml/depot/prefs/Main.java
Removed:
development/main/depot/cli/

development/main/depot/station/src/main/net/dpml/depot/station/CachePanel.java

development/main/depot/station/src/main/net/dpml/depot/station/ContentHandlerControllerPanel.java

development/main/depot/station/src/main/net/dpml/depot/station/ContentHandlerPanel.java

development/main/depot/station/src/main/net/dpml/depot/station/DefaultCellRenderer.java

development/main/depot/station/src/main/net/dpml/depot/station/GenericTable.java

development/main/depot/station/src/main/net/dpml/depot/station/HostPanel.java

development/main/depot/station/src/main/net/dpml/depot/station/IconHelper.java
development/main/depot/station/src/main/net/dpml/depot/station/Main.java

development/main/depot/station/src/main/net/dpml/depot/station/NodeTableModel.java

development/main/depot/station/src/main/net/dpml/depot/station/ResourcePanel.java

development/main/depot/station/src/main/net/dpml/depot/station/TransitDialog.java
development/main/depot/station/src/main/net/dpml/depot/station/package.html
Modified:
development/main/depot/console/README.TXT
development/main/depot/index.xml

development/main/depot/station/src/main/net/dpml/depot/prefs/CachePanel.java

development/main/depot/station/src/main/net/dpml/depot/prefs/ContentHandlerControllerPanel.java

development/main/depot/station/src/main/net/dpml/depot/prefs/ContentHandlerPanel.java

development/main/depot/station/src/main/net/dpml/depot/prefs/DefaultCellRenderer.java

development/main/depot/station/src/main/net/dpml/depot/prefs/GenericTable.java
development/main/depot/station/src/main/net/dpml/depot/prefs/HostPanel.java

development/main/depot/station/src/main/net/dpml/depot/prefs/IconHelper.java

development/main/depot/station/src/main/net/dpml/depot/prefs/NodeTableModel.java

development/main/depot/station/src/main/net/dpml/depot/prefs/ResourcePanel.java

development/main/depot/station/src/main/net/dpml/depot/prefs/TransitDialog.java
Log:
push station content under prefs package and add classes dealing with version
indepednent cli launching

Modified: development/main/depot/console/README.TXT
==============================================================================
--- development/main/depot/cli/README.TXT (original)
+++ development/main/depot/console/README.TXT Wed May 11 15:24:17 2005
@@ -1,2 +1,7 @@

-A commandline handler that will read a classpath from preferences, create
the initial classloader, and deloy. The cli handler will be 100% standalone
(no dependencies). Preference node selection will be based on a profile name.
\ No newline at end of file
+A commandline handler that will read a classpath from preferences, create
the initial classloader, and deloy. The cli handler will be 100% standalone
(no dependencies). Preference node selection will be based on a profile name.
+
+Example usage:
+
+ $ java -Djava.system.class.loader=net.dpml.depot.console.DepotClassLoader
-jar target\deliverables\jars\*.jar -profile=prefs
+

Added: development/main/depot/console/build.properties
==============================================================================
--- (empty file)
+++ development/main/depot/console/build.properties Wed May 11 15:24:17
2005
@@ -0,0 +1,3 @@
+
+project.test.fork = true
+project.jar.main.class=net.dpml.depot.console.Main

Added: development/main/depot/console/build.xml
==============================================================================
--- (empty file)
+++ development/main/depot/console/build.xml Wed May 11 15:24:17 2005
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<project name="dpml-depot-console" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
+ xmlns:x="plugin:dpml/magic/dpml-magic-core" >
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+</project>

Added:
development/main/depot/console/src/main/net/dpml/depot/console/DepotClassLoader.java
==============================================================================
--- (empty file)
+++
development/main/depot/console/src/main/net/dpml/depot/console/DepotClassLoader.java
Wed May 11 15:24:17 2005
@@ -0,0 +1,80 @@
+/*
+ * Copyright 2004 Stephen J. McConnell.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.depot.console;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Properties;
+import java.util.StringTokenizer;
+import java.util.prefs.Preferences;
+import java.util.logging.Logger;
+import java.util.logging.Level;
+import java.net.URL;
+import java.net.URLClassLoader;
+
+/**
+ * CLI hander for the depot package.
+ *
+ * @author <a href="http://www.dpml.net";>The Digital Product Meta Library</a>
+ * @version $Id: Main.java 2480 2005-05-10 04:44:32Z mcconnell AT dpml.net $
+ */
+public final class DepotClassLoader extends URLClassLoader
+{
+ private boolean m_sealed = false;
+ private final Logger m_logger;
+
+ public DepotClassLoader( ClassLoader parent )
+ {
+ super( new URL[0], parent );
+ m_logger = Logger.getLogger( "depot.classloader" );
+ }
+
+ void setBootstrapClasspath( String classpath ) throws IOException
+ {
+ if( m_sealed )
+ {
+ final String error =
+ "Illegal attempt to modify the bootstrap classpath.";
+ throw new IllegalStateException( error );
+ }
+ StringTokenizer tokenizer = new StringTokenizer( classpath, ";" );
+ while( tokenizer.hasMoreElements() )
+ {
+ String path = (String) tokenizer.nextElement();
+ URL url = resolveURL( path );
+ m_logger.fine( "adding: " + url );
+ addURL( url );
+ }
+ m_sealed = true;
+ }
+
+ private URL resolveURL( String value ) throws IOException
+ {
+ if( value.startsWith( "file:" ) || value.startsWith( "http:" ) ||
value.startsWith( "ftp:" ) )
+ {
+ return new URL( value );
+ }
+ else
+ {
+ File file = new File( value );
+ return file.toURL();
+ }
+ }
+}
+

Added:
development/main/depot/console/src/main/net/dpml/depot/console/Environment.java
==============================================================================
--- (empty file)
+++
development/main/depot/console/src/main/net/dpml/depot/console/Environment.java
Wed May 11 15:24:17 2005
@@ -0,0 +1,594 @@
+/*
+ * Copyright 2004 Stephen J. McConnell.
+ * Copyright 2004 Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.depot.console;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.BufferedReader;
+import java.io.InputStreamReader;
+
+import java.util.Properties;
+import java.util.Enumeration;
+
+
+/**
+ * Encapsulates operating system and shell specific access to environment
+ * variables.
+ *
+ * @author <a href="http://www.dpml.net";>The Digital Product Meta Library</a>
+ * @version $Id: Environment.java 2445 2005-04-28 23:44:22Z
niclas AT hedhman.org $
+ */
+public class Environment extends Properties
+{
+ /**
+ * os.name System property
+ */
+ public static final String OSNAME = System.getProperty( "os.name" );
+
+ /**
+ * user.name System property
+ */
+ public static final String USERNAME = System.getProperty( "user.name" );
+
+ /**
+ * the user's platform specific shell executable
+ */
+ private static String m_SHELL = null;
+
+ /**
+ * the last Env instance created
+ */
+ private static Environment m_INSTANCE = null;
+
+ /**
+ * Creates a snapshot of the current shell environment variables for a
user.
+ *
+ * @throws EnvironmentException if there is an error accessing the
environment
+ */
+ public Environment() throws EnvironmentException
+ {
+ Properties properties = getEnvVariables();
+ Enumeration list = properties.propertyNames();
+ while ( list.hasMoreElements() )
+ {
+ String key = ( String ) list.nextElement();
+ setProperty( key, properties.getProperty( key ) );
+ }
+ m_INSTANCE = this;
+ }
+
+ /**
+ * Gets a copy of the last Environment instance without parsing the
user's shell
+ * environment. Use this method if you do not want to reparse the
+ * environment every time an environment variable is accessed. If an
+ * environment has not been created yet one is created then cloned
+ * and a copy is returned instead of returning null.
+ *
+ * @return a copy of the last Environment object created
+ * @throws EnvironmentException if there is an error accessing the
environment
+ */
+ Environment getLastEnv() throws EnvironmentException
+ {
+ if( m_INSTANCE == null )
+ {
+ m_INSTANCE = new Environment();
+ }
+
+ // return cloned copy so there is no cross interference
+ return ( Environment ) m_INSTANCE.clone();
+ }
+
+
+ /**
+ * Gets the value of a shell environment variable.
+ *
+ * @param name the name of variable
+ * @return the String representation of an environment variable value
+ * @throws EnvironmentException if there is a problem accessing the
environment
+ */
+ public static String getEnvVariable( String name )
+ throws EnvironmentException
+ {
+ String osName = System.getProperty( "os.name" );
+
+ if( isUnix() )
+ {
+ Properties properties = getUnixShellVariables();
+ return properties.getProperty( name );
+ }
+ else if( isWindows() )
+ {
+ return getWindowsShellVariable( name );
+ }
+
+ throw new EnvironmentException( name,
+ "Unrecognized operating system: " + osName );
+ }
+
+ /**
+ * Checks to see if the operating system is a UNIX variant.
+ *
+ * @return true of the OS is a UNIX variant, false otherwise
+ */
+ public static boolean isUnix()
+ {
+ if( -1 != OSNAME.indexOf( "Linux" )
+ || -1 != OSNAME.indexOf( "SunOS" )
+ || -1 != OSNAME.indexOf( "Solaris" )
+ || -1 != OSNAME.indexOf( "MPE/iX" )
+ || -1 != OSNAME.indexOf( "AIX" )
+ || -1 != OSNAME.indexOf( "FreeBSD" )
+ || -1 != OSNAME.indexOf( "Irix" )
+ || -1 != OSNAME.indexOf( "Digital Unix" )
+ || -1 != OSNAME.indexOf( "HP-UX" )
+ || -1 != OSNAME.indexOf( "Mac OS X" ) )
+ {
+ return true;
+ }
+
+ return false;
+ }
+
+
+ /**
+ * Checks to see if the operating system is a Windows variant.
+ *
+ * @return true of the OS is a Windows variant, false otherwise
+ */
+ public static boolean isWindows()
+ {
+ return ( -1 != OSNAME.indexOf( "Windows" ) );
+ }
+
+ /**
+ * Checks to see if the operating system is NetWare.
+ *
+ * @return true of the OS is NetWare, false otherwise
+ */
+ public static boolean isNetWare()
+ {
+ return ( -1 != OSNAME.indexOf( "netware" ) );
+ }
+
+ /**
+ * Checks to see if the operating system is OpenVMS.
+ *
+ * @return true of the OS is a NetWare variant, false otherwise
+ */
+ public static boolean isOpenVMS()
+ {
+ return ( -1 != OSNAME.indexOf( "openvms" ) );
+ }
+
+ /**
+ * Gets all environment variables within a Properties instance where the
+ * key is the environment variable name and value is the value of the
+ * property.
+ *
+ * @return the environment variables and values as Properties
+ * @throws EnvironmentException if os is not recognized
+ */
+ public static Properties getEnvVariables() throws EnvironmentException
+ {
+ if( isUnix() )
+ {
+ return getUnixShellVariables();
+ }
+
+ if( isWindows() )
+ {
+ return getWindowsShellVariables();
+ }
+
+ throw new EnvironmentException(
+ new UnsupportedOperationException( "Environment operations not "
+ + "supported on unrecognized operatings system" ) );
+ }
+
+
+ /**
+ * Gets the user's shell executable.
+ *
+ * @return the shell executable for the user
+ * @throws EnvironmentException the there is a problem accessing shell
+ * information
+ */
+ public static String getUserShell() throws EnvironmentException
+ {
+ if( -1 != OSNAME.indexOf( "Mac OS X" ) )
+ {
+ return getMacUserShell();
+ }
+
+ if( isWindows() )
+ {
+ return getWindowsUserShell();
+ }
+
+ throw new EnvironmentException(
+ new UnsupportedOperationException( "Environment operations not "
+ + "supported on unrecognized operatings system" ) );
+ }
+
+ //
------------------------------------------------------------------------
+ // Private UNIX Shell Operations
+ //
------------------------------------------------------------------------
+
+ /**
+ * Gets the default login shell used by a mac user.
+ *
+ * @return the Mac user's default shell as referenced by cmd:
+ * 'nidump passwd /'
+ * @throws EnvironmentException if os information is not resolvable
+ */
+ private static String getMacUserShell()
+ throws EnvironmentException
+ {
+ Process process = null;
+ BufferedReader reader = null;
+
+ if( null != m_SHELL )
+ {
+ return m_SHELL;
+ }
+
+ try
+ {
+ String entry = null;
+ String [] args = {"nidump", "passwd", "/"};
+ process = Runtime.getRuntime().exec( args );
+ reader = new BufferedReader(
+ new InputStreamReader( process.getInputStream() ) );
+
+ while ( null != ( entry = reader.readLine() ) )
+ {
+ // Skip entries other than the one for this username
+ if( !entry.startsWith( USERNAME ) )
+ {
+ continue;
+ }
+
+ // Get the shell part of the passwd entry
+ int index = entry.lastIndexOf( ':' );
+
+ if( index == -1 )
+ {
+ throw new EnvironmentException(
+ "passwd database contains malformed user entry for "
+ + USERNAME );
+ }
+
+ m_SHELL = entry.substring( index + 1 );
+ return m_SHELL;
+ }
+
+ process.waitFor();
+ reader.close();
+ }
+ catch( Throwable t )
+ {
+ throw new EnvironmentException( t );
+ }
+ finally
+ {
+ if( process != null )
+ {
+ process.destroy();
+ }
+
+ try
+ {
+ if( null != reader )
+ {
+ reader.close();
+ }
+ }
+ catch( IOException e )
+ {
+ // do nothing
+ final boolean ignorable = true;
+ }
+ }
+
+ throw new EnvironmentException( "User " + USERNAME
+ + " is not present in the passwd database" );
+ }
+
+
+ /**
+ * Adds a set of Windows variables to a set of properties.
+ * @return the environment properties
+ * @exception EnvironmentException if an error occurs
+ */
+ private static Properties getUnixShellVariables()
+ throws EnvironmentException
+ {
+ Process process = null;
+ Properties properties = new Properties();
+
+ // Read from process here
+ BufferedReader reader = null;
+
+ // fire up the shell and get echo'd results on stdout
+ try
+ {
+ String [] args = {getUnixEnv()};
+ process = Runtime.getRuntime().exec( args );
+ reader = new BufferedReader(
+ new InputStreamReader( process.getInputStream() ) );
+
+ String line = null;
+ while ( null != ( line = reader.readLine() ) )
+ {
+ int index = line.indexOf( '=' );
+
+ if( -1 == index )
+ {
+ if( line.length() != 0 )
+ {
+ System.err.println(
+ "Skipping line - could not find '=' in"
+ + " line: '" + line + "'" );
+ }
+ continue;
+ }
+
+ String name = line.substring( 0, index );
+ String value = line.substring( index + 1, line.length() );
+ properties.setProperty( name, value );
+ }
+
+ process.waitFor();
+ reader.close();
+ }
+ catch( Throwable t )
+ {
+ throw new EnvironmentException( "NA", t );
+ }
+ finally
+ {
+ process.destroy();
+
+ try
+ {
+ if( null != reader )
+ {
+ reader.close();
+ }
+ }
+ catch( IOException e )
+ {
+ // ignore
+ final boolean ignorable = true;
+ }
+ }
+
+ // Check that we exited normally before returning an invalid output
+ if( 0 != process.exitValue() )
+ {
+ throw new EnvironmentException(
+ "Environment process failed "
+ + " with non-zero exit code of "
+ + process.exitValue() );
+ }
+
+ return properties;
+ }
+
+
+ /**
+ * Gets the UNIX env executable path.
+ *
+ * @return the absolute path to the env program
+ * @throws EnvironmentException if it cannot be found
+ */
+ private static String getUnixEnv() throws EnvironmentException
+ {
+ File env = new File( "/bin/env" );
+
+ if( env.exists() && env.canRead() && env.isFile() )
+ {
+ return env.getAbsolutePath();
+ }
+
+ env = new File( "/usr/bin/env" );
+ if( env.exists() && env.canRead() && env.isFile() )
+ {
+ return env.getAbsolutePath();
+ }
+
+ throw new EnvironmentException(
+ "Could not find the UNIX env executable" );
+ }
+
+
+ //
------------------------------------------------------------------------
+ // Private Windows Shell Operations
+ //
------------------------------------------------------------------------
+
+
+ /**
+ * Gets the shell used by the Windows user.
+ *
+ * @return the shell: cmd.exe or command.com.
+ */
+ private static String getWindowsUserShell()
+ {
+ if( null != m_SHELL )
+ {
+ return m_SHELL;
+ }
+
+ if( -1 != OSNAME.indexOf( "98" )
+ || -1 != OSNAME.indexOf( "95" )
+ || -1 != OSNAME.indexOf( "Me" ) )
+ {
+ m_SHELL = "command.com";
+ return m_SHELL;
+ }
+
+ m_SHELL = "cmd.exe";
+ return m_SHELL;
+ }
+
+
+ /**
+ * Adds a set of Windows variables to a set of properties.
+ * @return the environment properties
+ * @exception EnvironmentException if an error occurs
+ */
+ private static Properties getWindowsShellVariables()
+ throws EnvironmentException
+ {
+ String line = null;
+ Process process = null;
+ BufferedReader reader = null;
+ Properties properties = new Properties();
+
+ // build the command based on the shell used: cmd.exe or command.com
+ StringBuffer buffer = new StringBuffer( getWindowsUserShell() );
+ buffer.append( " /C SET" );
+
+ // fire up the shell and get echo'd results on stdout
+ try
+ {
+ process = Runtime.getRuntime().exec( buffer.toString() );
+ reader = new BufferedReader(
+ new InputStreamReader( process.getInputStream() ) );
+ while ( null != ( line = reader.readLine() ) )
+ {
+ int index = line.indexOf( '=' );
+
+ if( -1 == index )
+ {
+ System.err.println( "Skipping line - could not find '='
in"
+ + " line: '" + line + "'" );
+ continue;
+ }
+
+ String name = line.substring( 0, index );
+ String value = line.substring( index + 1, line.length() );
+ properties.setProperty( name, value );
+ }
+
+ process.waitFor();
+ reader.close();
+ }
+ catch( Throwable t )
+ {
+ throw new EnvironmentException( t );
+ }
+ finally
+ {
+ process.destroy();
+
+ try
+ {
+ if( null != reader )
+ {
+ reader.close();
+ }
+ }
+ catch( IOException e )
+ {
+ // ignore
+ final boolean ignorable = true;
+ }
+ }
+
+ if( 0 != process.exitValue() )
+ {
+ throw new EnvironmentException( "Environment process failed"
+ + " with non-zero exit code of " + process.exitValue() );
+ }
+
+ return properties;
+ }
+
+
+ /**
+ * Gets the value for a windows command shell environment variable.
+ *
+ * @param name the name of the variable
+ * @return the value of the variable
+ * @throws EnvironmentException if there is an error accessing the value
+ */
+ private static String getWindowsShellVariable( String name )
+ throws EnvironmentException
+ {
+ String value = null;
+ Process process = null;
+ BufferedReader reader = null;
+
+ StringBuffer buffer = new StringBuffer( getWindowsUserShell() );
+ buffer.append( " /C echo %" );
+ buffer.append( name );
+ buffer.append( '%' );
+
+ // fire up the shell and get echo'd results on stdout
+ try
+ {
+ process = Runtime.getRuntime().exec( buffer.toString() );
+ reader = new BufferedReader(
+ new InputStreamReader( process.getInputStream() ) );
+ value = reader.readLine();
+ process.waitFor();
+ reader.close();
+ }
+ catch( Throwable t )
+ {
+ throw new EnvironmentException( name, t );
+ }
+ finally
+ {
+ process.destroy();
+
+ try
+ {
+ if( null != reader )
+ {
+ reader.close();
+ }
+ }
+ catch( IOException e )
+ {
+ // ignore
+ final boolean ignorable = true;
+ }
+ }
+
+ if( 0 == process.exitValue() )
+ {
+ // Handle situations where the env property does not exist.
+ if( value.startsWith( "%" ) && value.endsWith( "%" ) )
+ {
+ return null;
+ }
+
+ return value;
+ }
+
+ throw new EnvironmentException(
+ name,
+ "Environment process failed"
+ + " with non-zero exit code of "
+ + process.exitValue() );
+ }
+}

Added:
development/main/depot/console/src/main/net/dpml/depot/console/EnvironmentException.java
==============================================================================
--- (empty file)
+++
development/main/depot/console/src/main/net/dpml/depot/console/EnvironmentException.java
Wed May 11 15:24:17 2005
@@ -0,0 +1,148 @@
+/*
+ * Copyright 2004 Stephen J. McConnell.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.depot.console;
+
+/**
+ * A simple wrapper exception around exceptions that could occur while
accessing
+ * environment parameters.
+ *
+ * @author <a href="http://www.dpml.net";>The Digital Product Meta Library</a>
+ * @version $Id: EnvironmentException.java 2445 2005-04-28 23:44:22Z
niclas AT hedhman.org $
+ */
+public class EnvironmentException extends RuntimeException
+{
+ /**
+ * the environment variable name if available
+ */
+ private final String m_variable;
+
+ /**
+ * root cause
+ */
+ private final Throwable m_cause;
+
+ /**
+ * Creates an exception denoting a failure while attempting to access an
+ * environment variable within an operating system and shell specific
+ * environment that is caused by another exception.
+ *
+ * @param cause the underlying exception that caused the failure
+ */
+ EnvironmentException( final Throwable cause )
+ {
+ super();
+
+ m_variable = null;
+ m_cause = cause;
+ }
+
+
+ /**
+ * Creates an exception denoting a failure while attempting to access an
+ * environment variable within an operating system and shell specific
+ * environment.
+ *
+ * @param message the reason for the access failure
+ */
+ EnvironmentException( final String message )
+ {
+ super( message );
+
+ m_variable = null;
+ m_cause = null;
+ }
+
+
+ /**
+ * Creates an exception denoting a failure while attempting to access an
+ * environment variable within an operating system and shell specific
+ * environment that is caused by another exception.
+ *
+ * @param variable the variable whose value was to be accessed
+ * @param cause the underlying exception that caused the failure
+ */
+ EnvironmentException( final String variable, final Throwable cause )
+ {
+ super();
+
+ m_variable = variable;
+ m_cause = cause;
+ }
+
+
+ /**
+ * Creates an exception denoting a failure while attempting to access an
+ * environment variable within an operating system and shell specific
+ * environment.
+ *
+ * @param variable the variable whose value was to be accessed
+ * @param message the reason for the access failure
+ */
+ EnvironmentException( final String variable, final String message )
+ {
+ super( message );
+
+ m_variable = variable;
+ m_cause = null;
+ }
+
+
+ /**
+ * Gets the variable that was to be accessed.
+ *
+ * @return the value of the variable
+ */
+ public String getVariable()
+ {
+ return m_variable;
+ }
+
+
+ /**
+ * Return the causal exception.
+ *
+ * @return the exception that caused this exception (possibly null)
+ */
+ public Throwable getCause()
+ {
+ return m_cause;
+ }
+
+
+ /**
+ * Prepends variable name to the base message.
+ *
+ * @see java.lang.Throwable#getMessage()
+ */
+ public String getMessage()
+ {
+ String base = super.getMessage();
+
+ if ( null == base )
+ {
+ return "Failed to access " + m_variable + " environment
variable";
+ }
+
+ return "Failed to access " + m_variable
+ + " environment variable - " + base;
+ }
+}
+
+
+

Added:
development/main/depot/console/src/main/net/dpml/depot/console/Main.java
==============================================================================
--- (empty file)
+++ development/main/depot/console/src/main/net/dpml/depot/console/Main.java
Wed May 11 15:24:17 2005
@@ -0,0 +1,348 @@
+/*
+ * Copyright 2004 Stephen J. McConnell.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.depot.console;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Properties;
+import java.util.prefs.Preferences;
+import java.util.logging.Logger;
+import java.util.logging.Level;
+import java.util.StringTokenizer;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.lang.reflect.Method;
+
+/**
+ * CLI hander for the depot package.
+ *
+ * @author <a href="http://www.dpml.net";>The Digital Product Meta Library</a>
+ * @version $Id: Main.java 2480 2005-05-10 04:44:32Z mcconnell AT dpml.net $
+ */
+public final class Main
+{
+ //-----------------------------------------------------------------------
+ // static
+ //-----------------------------------------------------------------------
+
+ /**
+ * DPML home key.
+ */
+ public static final String HOME_KEY = "dpml.home";
+
+ /**
+ * DPML home key.
+ */
+ public static final String DATA_KEY = "dpml.data";
+
+ /**
+ * DPML home key.
+ */
+ public static final String PREFS_KEY = "dpml.prefs";
+
+ /**
+ * Transit system key.
+ */
+ public static final String SYSTEM_KEY = "dpml.system";
+
+ /**
+ * DPML environment variable string.
+ */
+ public static final String HOME_SYMBOL = "DPML_HOME";
+
+ /**
+ * DPML environment variable string.
+ */
+ public static final String SYSTEM_SYMBOL = "DPML_SYSTEM";
+
+ /**
+ * The DPML home directory established via assesment of the the
${dpml.home}
+ * system property and the DPML_HOME environment variable. If neither are
+ * defined the behaviour is platform specific. If the os is Windows,
+ * the value returned is equivalent to $APPDATA\DPML whereas Unix the
+ * environment will return ${user.home}/.dpml.
+ */
+ public static final File DPML_HOME;
+
+ /**
+ * If a system property named "dpml.system" is defined then the value
+ * is assigned otherwise the implementation will look for an environment
+ * variable named "DPML_SYSTEM". If neither case holds, the value assigned
+ * if platform dependent. If the os is Windows, the equivalent of
+ * $PROGRAMFILES\DPML is assigned otherwise the value defaults to
+ * "/usr/share/dpml".
+ */
+ public static final File DPML_SYSTEM;
+
+ /**
+ * The Transit personal data directory. The location of this diectory is
system
+ * dependent.
+ */
+ public static final File DPML_DATA;
+
+ /**
+ * The Transit personal preferences directory. The location of this
diectory is system
+ * dependent.
+ */
+ public static final File DPML_PREFS;
+
+ static
+ {
+ DPML_HOME = resolveHomeDirectory();
+ DPML_SYSTEM = resolveSystemDirectory( DPML_HOME );
+ DPML_DATA = resolveDataDirectory( DPML_HOME );
+ DPML_PREFS = resolvePreferencesDirectory( DPML_HOME );
+ System.setProperty( SYSTEM_KEY, DPML_SYSTEM.getAbsolutePath() );
+ System.setProperty( HOME_KEY, DPML_HOME.getAbsolutePath() );
+ System.setProperty( DATA_KEY, DPML_DATA.getAbsolutePath() );
+ System.setProperty( PREFS_KEY, DPML_PREFS.getAbsolutePath() );
+ }
+
+ public static void main( final String[] args )
+ throws Exception
+ {
+ //
+ // Setup system properties.
+ //
+
+ Preferences profile = getProfileFromArgs( args );
+
+ if( null == profile )
+ {
+ final String error =
+ "Commandline argument -profile=[profile-name] was not
supplied.";
+ System.err.println( error );
+ return;
+ }
+
+ String classpath = resolve( profile.get( "classpath", null ) );
+ if( null == classpath )
+ {
+ final String error =
+ "Requested profile '" + profile + "' does not declare a
classpath.";
+ System.err.println( error );
+ return;
+ }
+ else
+ {
+ ClassLoader system = ClassLoader.getSystemClassLoader();
+ if( system instanceof DepotClassLoader )
+ {
+ DepotClassLoader classloader = (DepotClassLoader) system;
+ classloader.setBootstrapClasspath( classpath );
+ String classname = resolve( profile.get( "classname", null )
);
+ if( null == classname )
+ {
+ final String error =
+ "Requested profile does not declare a classname
attribute."
+ + "\nProfile: " + profile;
+ System.err.println( error );
+ return;
+ }
+ else
+ {
+ Class c = classloader.loadClass( classname );
+ loadClass( c, args );
+ }
+ }
+ else
+ {
+ System.err.println( "# bad system classloader: " +
system.getClass().getName() );
+ }
+ }
+ }
+
+ private static void loadClass( Class c, String[] args ) throws Exception
+ {
+ try
+ {
+ Method method = c.getDeclaredMethod( "main", new Class[]{
String[].class } );
+ Object[] params = new Object[]{ args };
+ method.invoke( null, params );
+ }
+ catch( NoSuchMethodException e )
+ {
+ c.newInstance();
+ }
+ }
+
+ private static URL resolveURL( String value ) throws IOException
+ {
+ if( value.startsWith( "file:" ) || value.startsWith( "http:" ) ||
value.startsWith( "ftp:" ) )
+ {
+ return new URL( value );
+ }
+ else
+ {
+ File file = new File( value );
+ return file.toURL();
+ }
+ }
+
+ private static String resolve( String value )
+ {
+ if( null == value )
+ {
+ return null;
+ }
+ else
+ {
+ Properties properties = System.getProperties();
+ return PropertyResolver.resolve( properties, value );
+ }
+ }
+
+ private static Preferences getProfileFromArgs( String[] args )
+ {
+ Preferences root = Preferences.systemNodeForPackage( Main.class );
+ for( int i=0; i<args.length; i++ )
+ {
+ String arg = args[i];
+ if( arg.startsWith( "-profile=" ) )
+ {
+ String profile = arg.substring( 9 );
+ return root.node( profile );
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Resolve the DPML home directory using assesment of the the ${dpml.home}
+ * system property, the DPML_HOME environment variable. If DPML_HOME is
+ * not declared, the behaviour is platform specific. If the os is
Windows,
+ * the value returned is equivalent to $APPDATA\DPML whereas Unix
environment
+ * will return ${user.home}/.dpml.
+ *
+ * @return the DPML home directory
+ */
+ private static File resolveHomeDirectory()
+ {
+ String home = System.getProperty( HOME_KEY );
+ if( null != home )
+ {
+ return new File( home );
+ }
+ home = Environment.getEnvVariable( HOME_SYMBOL );
+ if( null != home )
+ {
+ return new File( home );
+ }
+ String os = System.getProperty( "os.name" ).toLowerCase();
+ if( os.indexOf( "win" ) >= 0 )
+ {
+ home = Environment.getEnvVariable( "APPDATA" );
+ File data = new File( home );
+ return new File( data, "DPML" );
+ }
+ else
+ {
+ File user = new File( System.getProperty( "user.home" ) );
+ return new File( user, ".dpml" );
+ }
+ }
+
+ /**
+ * Resolve the DPML system home directory. If a system property
+ * named "dpml.system" is defined then the value as a file is
+ * returned otherwise the implementation will look for an environment
+ * variable named "DPML_SYSTEM" which if defined will be
+ * returned as a file. If neither case holds, the value assigned
+ * if platform dependent. If the os is Windows, the equivalent of
+ * $PROGRAMFILES\DPML is returned otherwise the default value
+ * of "/usr/share/dpml" is returned.
+ *
+ * @param dpmlHomeDir the default DPML_HOME value
+ * @return the transit system directory
+ */
+ private static File resolveSystemDirectory( File dpmlHomeDir )
+ {
+ String home = System.getProperty( SYSTEM_KEY );
+ if( null != home )
+ {
+ return new File( home );
+ }
+ home = Environment.getEnvVariable( SYSTEM_SYMBOL );
+ if( null != home )
+ {
+ return new File( home );
+ }
+
+ String os = System.getProperty( "os.name" ).toLowerCase();
+ if( os.indexOf( "win" ) >= 0 )
+ {
+ return new File( dpmlHomeDir, "Shared" );
+ }
+ else
+ {
+ return new File( dpmlHomeDir, "share" );
+ }
+ }
+
+ /**
+ * Resolve the DPML data directory. If the platform is Windows
+ * the returned value is equivalent to ${dpml.home}/Data
+ * whereas the Unix variant returns ${dpml.home}/data.
+ *
+ * @param dir the default DPML_HOME value
+ * @return the transit personal data directory
+ */
+ private static File resolveDataDirectory( File dir )
+ {
+ String os = System.getProperty( "os.name" ).toLowerCase();
+ if( os.indexOf( "win" ) >= 0 )
+ {
+ return new File( dir, "Data" );
+ }
+ else
+ {
+ return new File( dir, "data" );
+ }
+ }
+
+ /**
+ * Resolve the DPML prefs directory. If the platform is Windows
+ * the returned value is equivalent to ${dpml.home}/Preferences
+ * whereas the Unix variant returns ${dpml.home}/prefs.
+ *
+ * @param dir the default DPML_HOME value
+ * @return the transit personal data directory
+ */
+ private static File resolvePreferencesDirectory( File dir )
+ {
+ String os = System.getProperty( "os.name" ).toLowerCase();
+ if( os.indexOf( "win" ) >= 0 )
+ {
+ return new File( dir, "Preferences" );
+ }
+ else
+ {
+ return new File( dir, "prefs" );
+ }
+ }
+
+ /**
+ * Constructor (disabled).
+ */
+ private Main()
+ {
+ // disabled
+ }
+}
+

Added:
development/main/depot/console/src/main/net/dpml/depot/console/PropertyResolver.java
==============================================================================
--- (empty file)
+++
development/main/depot/console/src/main/net/dpml/depot/console/PropertyResolver.java
Wed May 11 15:24:17 2005
@@ -0,0 +1,149 @@
+/*
+ * Copyright 2004 Niclas Hedhman
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.depot.console;
+
+import java.util.Properties;
+import java.util.Stack;
+import java.util.StringTokenizer;
+
+/**
+ * Utility class that handles substitution of property names in the string
+ * for ${value} relative to a supplied set of properties.
+ */
+public final class PropertyResolver
+{
+ //
------------------------------------------------------------------------
+ // static
+ //
------------------------------------------------------------------------
+
+ /**
+ * Symbol substitution from properties.
+ * Replace any occurances of ${[key]} with the value of the property
+ * assigned to the [key] in the supplied properties argument.
+ * @param props the source properties from which substitution is resolved
+ * @param value a string containing possibly multiple ${[value]} sequences
+ * @return the expanded string
+ */
+ public static String resolve( Properties props, String value )
+ {
+ if( value == null )
+ {
+ return null;
+ }
+
+ // optimization for common case.
+ if( value.indexOf( '$' ) < 0 )
+ {
+ return value;
+ }
+ int pos1 = value.indexOf( "${" );
+ if( pos1 < 0 )
+ {
+ return value;
+ }
+
+ Stack stack = new Stack();
+ StringTokenizer st = new StringTokenizer( value, "${}", true );
+
+ while ( st.hasMoreTokens() )
+ {
+ String token = st.nextToken();
+ if( token.equals( "}" ) )
+ {
+ String name = (String) stack.pop();
+ String open = (String) stack.pop();
+ if( open.equals( "${" ) )
+ {
+ String propValue = System.getProperty( name );
+ if( propValue == null )
+ {
+ propValue = props.getProperty( name );
+ }
+ if( propValue == null )
+ {
+ push( stack, "${" + name + "}" );
+ }
+ else
+ {
+ push( stack, propValue );
+ }
+ }
+ else
+ {
+ push( stack, "${" + name + "}" );
+ }
+ }
+ else
+ {
+ if( token.equals( "$" ) )
+ {
+ stack.push( "$" );
+ }
+ else
+ {
+ push( stack, token );
+ }
+ }
+ }
+ String result = "";
+ while ( stack.size() > 0 )
+ {
+ result = stack.pop() + result;
+ }
+ return result;
+ }
+
+ /**
+ * Pushes a value on a stack
+ * @param stack the stack
+ * @param value the value
+ */
+ private static void push( Stack stack , String value )
+ {
+ if( stack.size() > 0 )
+ {
+ String data = (String) stack.pop();
+ if( data.equals( "${" ) )
+ {
+ stack.push( data );
+ stack.push( value );
+ }
+ else
+ {
+ stack.push( data + value );
+ }
+ }
+ else
+ {
+ stack.push( value );
+ }
+ }
+
+ //
------------------------------------------------------------------------
+ // constructor
+ //
------------------------------------------------------------------------
+
+ /**
+ * Null constructor.
+ */
+ private PropertyResolver()
+ {
+ }
+}
+

Added: development/main/depot/content/build.xml
==============================================================================
--- (empty file)
+++ development/main/depot/content/build.xml Wed May 11 15:24:17 2005
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<project name="dpml-depot-content" default="install" basedir="."
+ xmlns:transit="antlib:net.dpml.transit"
+ xmlns:x="plugin:dpml/magic/dpml-magic-core" >
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
+
+ <target name="package" depends="standard.package">
+ <x:export class="net.dpml.depot.content.DepotContentHandlerRegistry"/>
+ </target>
+
+</project>

Modified: development/main/depot/index.xml
==============================================================================
--- development/main/depot/index.xml (original)
+++ development/main/depot/index.xml Wed May 11 15:24:17 2005
@@ -23,6 +23,16 @@

<!-- Station -->

+ <project basedir="console">
+ <info>
+ <group>dpml/depot</group>
+ <name>dpml-depot-console</name>
+ <types>
+ <type>jar</type>
+ </types>
+ </info>
+ </project>
+
<project basedir="content">
<info>
<group>dpml/depot</group>

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/CachePanel.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/CachePanel.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/CachePanel.java
Wed May 11 15:24:17 2005
@@ -16,7 +16,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.awt.Color;
import java.awt.Dimension;

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/ContentHandlerControllerPanel.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/ContentHandlerControllerPanel.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/ContentHandlerControllerPanel.java
Wed May 11 15:24:17 2005
@@ -16,7 +16,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.io.IOException;
import java.awt.Color;

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/ContentHandlerPanel.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/ContentHandlerPanel.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/ContentHandlerPanel.java
Wed May 11 15:24:17 2005
@@ -16,7 +16,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.awt.Color;
import java.awt.Dimension;

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/DefaultCellRenderer.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/DefaultCellRenderer.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/DefaultCellRenderer.java
Wed May 11 15:24:17 2005
@@ -14,7 +14,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.awt.Component;
import java.awt.Font;

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/GenericTable.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/GenericTable.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/GenericTable.java
Wed May 11 15:24:17 2005
@@ -14,7 +14,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/HostPanel.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/HostPanel.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/HostPanel.java
Wed May 11 15:24:17 2005
@@ -16,7 +16,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.awt.Color;
import java.awt.Dimension;

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/IconHelper.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/IconHelper.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/IconHelper.java
Wed May 11 15:24:17 2005
@@ -16,7 +16,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.net.URL;


Added: development/main/depot/station/src/main/net/dpml/depot/prefs/Main.java
==============================================================================
--- (empty file)
+++ development/main/depot/station/src/main/net/dpml/depot/prefs/Main.java
Wed May 11 15:24:17 2005
@@ -0,0 +1,118 @@
+/*
+ * Copyright 2004 Stephen J. McConnell.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.
+ *
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.dpml.depot.prefs;
+
+import java.util.prefs.Preferences;
+import java.util.logging.Logger;
+import java.util.logging.Level;
+
+import javax.swing.SwingUtilities;
+
+import net.dpml.transit.Transit;
+
+
+/**
+ * CLI hander for the depot package.
+ *
+ * @author <a href="http://www.dpml.net";>The Digital Product Meta Library</a>
+ * @version $Id: Main.java 2480 2005-05-10 04:44:32Z mcconnell AT dpml.net $
+ */
+public final class Main
+{
+ public static void main( final String[] args )
+ throws Exception
+ {
+ //
+ // Setup transit protocol handler
+ //
+
+ System.setProperty( "java.protocol.handler.pkgs", "net.dpml.transit"
);
+ System.setProperty( "java.util.logging.config.class",
"net.dpml.transit.logging.ConfigurationHandler" );
+
+ Logger logger = Logger.getLogger( "depot" );
+
+
+
+ //
+ // check if a prefs reset has been requested
+ //
+
+ for( int i=0; i < args.length; i++ )
+ {
+ String arg = args[i];
+ if( arg.equals( "-reset" ) )
+ {
+ try
+ {
+ Preferences usr = Preferences.userNodeForPackage(
Transit.class );
+ logger.info( "resetting preferences: " + usr );
+ usr.removeNode();
+ usr.flush();
+ Preferences sys = Preferences.systemNodeForPackage(
Transit.class );
+ logger.info( "resetting preferences: " + sys );
+ sys.removeNode();
+ sys.flush();
+ }
+ catch( Throwable e )
+ {
+ logger.log( Level.SEVERE, "preference rest failed", e );
+ }
+ }
+ }
+
+ //
+ // check if a prefs are enabled (default is true)
+ //
+
+ System.setProperty( "dpml.transit.preferences.enabled", "true" );
+
+ //
+ //
+
+ SwingUtilities.invokeLater(
+ new Runnable() {
+ public void run()
+ {
+ setup();
+ }
+ }
+ );
+ }
+
+ private static void setup()
+ {
+ try
+ {
+ new TransitDialog();
+ }
+ catch( Exception e )
+ {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * Constructor (disabled).
+ */
+ private Main()
+ {
+ // disabled
+ }
+}
+

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/NodeTableModel.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/NodeTableModel.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/NodeTableModel.java
Wed May 11 15:24:17 2005
@@ -14,7 +14,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeEvent;

Modified:
development/main/depot/station/src/main/net/dpml/depot/prefs/ResourcePanel.java
==============================================================================
---
development/main/depot/station/src/main/net/dpml/depot/prefs/ResourcePanel.java
(original)
+++
development/main/depot/station/src/main/net/dpml/depot/prefs/ResourcePanel.java
Wed May 11 15:24:17 2005
@@ -16,7 +16,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.awt.Color;
import java.awt.Dimension;

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 15:24:17 2005
@@ -16,7 +16,7 @@
* limitations under the License.
*/

-package net.dpml.transit.prefs;
+package net.dpml.depot.prefs;

import java.net.URL;




  • svn commit: r2514 - in development/main/depot: . cli console console/src console/src/main console/src/main/net console/src/main/net/dpml console/src/main/net/dpml/depot console/src/main/net/dpml/depot/console content station/src/main/net/dpml/depot/prefs station/src/main/net/dpml/depot/station, mcconnell, 05/11/2005

Archive powered by MHonArc 2.6.24.

Top of Page