[CVS spice] Remove unused/unmaintained code experiment
pdonald-yCVjj/[email protected] 11 Jul 2004 05:57:06 -0000
| Newsgroups | gmane.comp.java.spice.cvs |
|---|---|
| Message-ID | <[email protected]> |
<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>spice/sandbox/jmxtools</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1"><span id="removed">.cvsignore</span></a></tt></td><td></td><td align="right" id="removed">-7</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr class="alt"><td><tt><a href="#file2"><span id="removed">maven.xml</span></a></tt></td><td></td><td align="right" id="removed">-9</td><td nowrap="nowrap">1.2 removed</td></tr>
<tr><td><tt><a href="#file3"><span id="removed">project.properties</span></a></tt></td><td></td><td align="right" id="removed">-69</td><td nowrap="nowrap">1.2 removed</td></tr>
<tr class="alt"><td><tt><a href="#file4"><span id="removed">project.xml</span></a></tt></td><td></td><td align="right" id="removed">-44</td><td nowrap="nowrap">1.7 removed</td></tr>
<tr><td><tt>src/java/org/realityforge/jmxtools/<a href="#file5"><span id="removed">DefaultMX4JWebConsole-schema.dtd</span></a></tt></td><td></td><td align="right" id="removed">-18</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file6"><span id="removed">DefaultMX4JWebConsole.java</span></a></tt></td><td></td><td align="right" id="removed">-205</td><td nowrap="nowrap">1.6 removed</td></tr>
<tr><td><tt> /<a href="#file7"><span id="removed">UserConfig.java</span></a></tt></td><td></td><td align="right" id="removed">-24</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr class="alt"><td><tt>src/test/<a href="#file8"><span id="removed">README.txt</span></a></tt></td><td></td><td align="right" id="removed">-1</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr><td><tt>xdocs/<a href="#file9"><span id="removed">component.menu</span></a></tt></td><td></td><td align="right" id="removed">-4</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr class="alt"><td><tt> /<a href="#file10"><span id="removed">index.xml</span></a></tt></td><td></td><td align="right" id="removed">-13</td><td nowrap="nowrap">1.1 removed</td></tr>
<tr><td></td><td></td><td align="right" id="removed">-394</td><td></td></tr>
</table>
<small id="info">10 removed files</small><br />
<pre class="comment">
Remove unused/unmaintained code experiment
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools<br /></span>
<div class="fileheader" id="removed"><big><b>.cvsignore</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N .cvsignore
--- .cvsignore 6 Oct 2003 02:10:38 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,7 +0,0 @@
</small></pre><pre class="diff" id="removed">-dist
-target
-build.properties
-*.log
-*.el
-*.ipr
-*.iws
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools<br /></span>
<div class="fileheader" id="removed"><big><b>maven.xml</b></big> <small id="info">removed after 1.2</small></div>
<pre class="diff"><small id="info">diff -N maven.xml
--- maven.xml 6 Oct 2003 02:11:20 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,9 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0"?>
-<project
- xmlns:j="jelly:core"
- xmlns:ant="jelly:ant"
- default="jar:install">
-
-</project>
-
-
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools<br /></span>
<div class="fileheader" id="removed"><big><b>project.properties</b></big> <small id="info">removed after 1.2</small></div>
<pre class="diff"><small id="info">diff -N project.properties
--- project.properties 25 Apr 2004 00:44:45 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,69 +0,0 @@
</small></pre><pre class="diff" id="removed">-maven.remote.group=spice
-maven.repo.remote=http://www.ibiblio.com/maven,http://dist.codehaus.org
-
-maven.checkstyle.properties = ${basedir}/../../tools/checkstyle/checkstyle.xml
-maven.checkstyle.license.exists=true
-
-maven.javadoc.links = \
- http://avalon.apache.org/api/, \
- http://dna.jcontainer.org/apidocs/, \
- http://java.sun.com/j2se/1.3/docs/api/
-
-maven.junit.fork=true
-maven.junit.dir=${basedir}/target/test-classes
-
-maven.license.licenseFile=${basedir}/../../LICENSE.txt
-maven.linkcheck.enable=true
-
-maven.xdoc.poweredby.image=
-#maven.xdoc.jsl=target/site.jsl
-
-spice.color1.bright=#FFFFFF
-spice.color1.light=#FFFFCC
-spice.color1.main=#CCCC99
-spice.color1.shaded=#999966
-spice.color1.dark=#666633
-spice.color1.darkest=#333300
-
-maven.ui.body.background=${spice.color1.bright}
-maven.ui.body.foreground=${spice.color1.darkest}
-maven.ui.section.background=${spice.color1.shaded}
-maven.ui.section.foreground=${spice.color1.light}
-maven.ui.subsection.background=${spice.color1.main}
-maven.ui.subsection.foreground=${spice.color1.light}
-maven.ui.table.header.background=${spice.color1.shaded}
-maven.ui.table.header.foreground=${spice.color1.light}
-
-maven.ui.table.row.odd.background=${spice.color1.light}
-maven.ui.table.row.odd.foreground=${spice.color1.dark}
-maven.ui.table.row.even.background=${spice.color1.light}
-maven.ui.table.row.even.foreground=${spice.color1.dark}
-
-maven.ui.banner.background=${spice.color1.bright}
-maven.ui.banner.foreground=${spice.color1.darkest}
-maven.ui.banner.border.top=${spice.color1.bright}
-maven.ui.banner.border.bottom=${spice.color1.shaded}
-
-maven.ui.source.background=${spice.color1.bright}
-maven.ui.source.foreground=${spice.color1.darkest}
-maven.ui.source.border.top=${spice.color1.shaded}
-maven.ui.source.border.bottom=${spice.color1.shaded}
-maven.ui.source.border.right=${spice.color1.shaded}
-maven.ui.source.border.left=${spice.color1.shaded}
-
-maven.ui.navcol.background=${spice.color1.light}
-maven.ui.navcol.background.ns4=${spice.color1.light}
-maven.ui.navcol.foreground=${spice.color1.dark}
-maven.ui.navcol.foreground.ns4=${spice.color1.dark}
-maven.ui.navcol.border.top=${spice.color1.light}
-maven.ui.navcol.border.right=${spice.color1.main}
-maven.ui.navcol.border.bottom=${spice.color1.main}
-
-maven.ui.breadcrumbs.background=${spice.color1.main}
-maven.ui.breadcrumbs.foreground=${spice.color1.dark}
-maven.ui.breadcrumbs.border.top=${spice.color1.light}
-maven.ui.breadcrumbs.border.bottom=${spice.color1.shaded}
-
-maven.ui.href.link=${spice.color1.dark}
-maven.ui.href.link.active=${spice.color1.darkest}
-maven.ui.href.link.selfref=${spice.color1.dark}
</pre></div>
<hr /><a name="file4" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools<br /></span>
<div class="fileheader" id="removed"><big><b>project.xml</b></big> <small id="info">removed after 1.7</small></div>
<pre class="diff"><small id="info">diff -N project.xml
--- project.xml 25 Apr 2004 00:44:45 -0000 1.7
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,44 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0"?>
-<project>
- <extend>${basedir}/../../project.xml</extend>
- <name>Spice JMXTools</name>
- <id>spice-jmxtools</id>
- <currentVersion>1.0</currentVersion>
- <inceptionYear>2003</inceptionYear>
-
- <shortDescription>JMX based components</shortDescription>
-
- <description>
- JMX based components.
- </description>
-
- <developers>
- <developer>
- <name>Peter Donald</name>
- <id>donaldp</id>
-
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>+10</timezone>
- </developer>
- </developers>
-
- <dependencies>
- <dependency>
- <groupId>dna</groupId>
- <artifactId>dna-api</artifactId>
- <version>1.0</version>
- </dependency>
- <dependency>
- <groupId>mx4j</groupId>
- <artifactId>mx4j-jmx</artifactId>
- <version>1.1.1</version>
- </dependency>
- <dependency>
- <groupId>mx4j</groupId>
- <artifactId>mx4j-tools</artifactId>
- <version>1.1.1</version>
- </dependency>
- </dependencies>
-</project>
</pre></div>
<hr /><a name="file5" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools/src/java/org/realityforge/jmxtools<br /></span>
<div class="fileheader" id="removed"><big><b>DefaultMX4JWebConsole-schema.dtd</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N DefaultMX4JWebConsole-schema.dtd
--- DefaultMX4JWebConsole-schema.dtd 6 Oct 2003 01:23:06 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
</small></pre><pre class="diff" id="removed">-<!--
-
- This is the DTD defining the MX Config 1.0
- descriptor (XML) file format/syntax.
-
--->
-
-<!--
-port the port the http adaptor binds to
-bindAddress the address the http adaptor binds to
--->
-<!ELEMENT root (port,bindAddress,users)>
- <!ELEMENT port (#PCDATA)>
- <!ELEMENT bindAddress (#PCDATA)>
- <!ELEMENT users (user)*>
- <!ELEMENT user (name,password)>
- <!ELEMENT name (#PCDATA)>
- <!ELEMENT password (#PCDATA)>
</pre></div>
<hr /><a name="file6" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools/src/java/org/realityforge/jmxtools<br /></span>
<div class="fileheader" id="removed"><big><b>DefaultMX4JWebConsole.java</b></big> <small id="info">removed after 1.6</small></div>
<pre class="diff"><small id="info">diff -N DefaultMX4JWebConsole.java
--- DefaultMX4JWebConsole.java 6 Oct 2003 02:16:40 -0000 1.6
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,205 +0,0 @@
</small></pre><pre class="diff" id="removed">-package org.realityforge.jmxtools;
-
-import java.util.ArrayList;
-import javax.management.Attribute;
-import javax.management.MBeanServer;
-import javax.management.MBeanServerFactory;
-import javax.management.ObjectName;
-
-import org.jcontainer.dna.AbstractLogEnabled;
-import org.jcontainer.dna.Active;
-import org.jcontainer.dna.Composable;
-import org.jcontainer.dna.Configurable;
-import org.jcontainer.dna.Configuration;
-import org.jcontainer.dna.ConfigurationException;
-import org.jcontainer.dna.MissingResourceException;
-import org.jcontainer.dna.ResourceLocator;
-import mx4j.adaptor.http.HttpCommandProcessor;
-
-/**
- * @dna.component
- */
-public class DefaultMX4JWebConsole
- extends AbstractLogEnabled
- implements Composable, Configurable, Active
-{
- private static final String ADDRESS_SECTION = "bindAddress";
- private static final String PORT_SECTION = "port";
- private static final String USERS_SECTION = "users";
- private static final String USER_SECTION = "user";
- private static final String NAME_SECTION = "name";
- private static final String PASSWORD_SECTION = "password";
-
- private static final String DEFAULT_ADDRESS = "0.0.0.0";
- private static final int DEFAULT_PORT = 8080;
-
- private static final String[] ADD_AUTH_PARAM_TYPES = new String[]{String.class.getName(), String.class.getName()};
- private static final String[] ADD_PROCESSOR_PARAM_TYPES = new String[]{String.class.getName(), HttpCommandProcessor.class.getName()};
-
- private MBeanServer _mBeanServer;
-
- private String _address;
- private int _port;
- private UserConfig[] _users;
-
- private ObjectName _httpName;
- private ObjectName _processorName;
-
- /**
- * @dna.dependency type="MBeanServer" optional="true"
- */
- public void compose( final ResourceLocator locator )
- throws MissingResourceException
- {
- if ( locator.contains( MBeanServer.class.getName() ) )
- {
- _mBeanServer = (MBeanServer)
- locator.lookup( MBeanServer.class.getName() );
- }
- }
-
- /**
- * @dna.configuration location="DefaultMX4JWebConsole-schema.dtd"
- */
- public void configure( final Configuration configuration )
- throws ConfigurationException
- {
- _address = configuration.
- getChild( ADDRESS_SECTION ).getValue( DEFAULT_ADDRESS );
- _port = configuration.
- getChild( PORT_SECTION ).getValueAsInteger( DEFAULT_PORT );
-
- final Configuration[] children =
- configuration.getChild( USERS_SECTION ).getChildren( USER_SECTION );
- _users = new UserConfig[ children.length ];
- for ( int i = 0; i < children.length; i++ )
- {
- final Configuration child = children[ i ];
- final String username = child.getChild( NAME_SECTION ).getValue();
- final String password = child.getChild( PASSWORD_SECTION ).getValue();
- _users[ i ] = new UserConfig( username, password );
- }
- }
-
- public void initialize()
- throws Exception
- {
- if ( null == _mBeanServer )
- {
- final ArrayList list = MBeanServerFactory.findMBeanServer( null );
- if ( 1 == list.size() )
- {
- _mBeanServer = (MBeanServer) list.get( 0 );
- }
- else
- {
- final String message =
- "No MBeanServer specified for WebConsole " +
- "and multiple MBeanServers found in JVM. " +
- "Unable to determine which MBeanServer to " +
- "use.";
- getLogger().error( message );
- throw new Exception( message );
- }
- }
- setupHttpAdaptor();
-
- setupCommandProcessors();
-
- setupProcessor();
-
- try
- {
- _mBeanServer.invoke( _httpName, "start", null, null );
- }
- catch ( final Exception e )
- {
- getLogger().error( "Failed to start the MX Server. " +
- "Verify that the port '" + _port +
- "' is available", e );
- throw e;
- }
- }
-
- private void setupHttpAdaptor()
- throws Exception
- {
- getLogger().info( "Starting Http Adaptor on " + _address + ":" + _port );
- _httpName = new ObjectName( "Http:name=HttpAdaptor" );
- _mBeanServer.createMBean( "mx4j.adaptor.http.HttpAdaptor",
- _httpName,
- null );
- _mBeanServer.
- setAttribute( _httpName, new Attribute( "Host", _address ) );
- _mBeanServer.
- setAttribute( _httpName,
- new Attribute( "Port", new Integer( _port ) ) );
-
- // use basic authentication
- _mBeanServer.setAttribute( _httpName,
- new Attribute( "AuthenticationMethod", "basic" ) );
-
- for ( int i = 0; i < _users.length; i++ )
- {
- final UserConfig user = _users[ i ];
- final Object[] params =
- new Object[]{user.getUsername(), user.getPassword()};
- _mBeanServer.invoke( _httpName,
- "addAuthorization",
- params,
- ADD_AUTH_PARAM_TYPES );
- }
- }
-
- protected void setupProcessor()
- throws Exception
- {
- _processorName = new ObjectName( "Http:name=XSLTProcessor" );
- _mBeanServer.createMBean( "mx4j.adaptor.http.XSLTProcessor", _processorName, null );
- _mBeanServer.setAttribute( _httpName, new Attribute( "ProcessorName", _processorName ) );
- }
-
- protected void setupCommandProcessors()
- throws Exception
- {
- }
-
- public void dispose()
- throws Exception
- {
- if ( null != _httpName && _mBeanServer.isRegistered( _httpName ) )
- {
- _mBeanServer.invoke( _httpName, "stop", null, null );
- _mBeanServer.unregisterMBean( _httpName );
- }
- if ( null != _processorName && _mBeanServer.isRegistered( _processorName ) )
- {
- _mBeanServer.unregisterMBean( _processorName );
- }
- }
-
- protected final void addCommandProcessor( final String name,
- final HttpCommandProcessor processor )
- throws Exception
- {
- getmBeanServer().invoke( getHttpName(),
- "addCommandProcessor",
- new Object[]{name, processor},
- ADD_PROCESSOR_PARAM_TYPES );
- }
-
- protected final ObjectName getHttpName()
- {
- return _httpName;
- }
-
- protected final ObjectName getProcessorName()
- {
- return _processorName;
- }
-
- protected final MBeanServer getmBeanServer()
- {
- return _mBeanServer;
- }
-}
</pre></div>
<hr /><a name="file7" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools/src/java/org/realityforge/jmxtools<br /></span>
<div class="fileheader" id="removed"><big><b>UserConfig.java</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N UserConfig.java
--- UserConfig.java 6 Oct 2003 01:17:22 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,24 +0,0 @@
</small></pre><pre class="diff" id="removed">-package org.realityforge.jmxtools;
-
-class UserConfig
-{
- private final String _username;
- private final String _password;
-
- UserConfig( final String username,
- final String password )
- {
- _username = username;
- _password = password;
- }
-
- String getUsername()
- {
- return _username;
- }
-
- String getPassword()
- {
- return _password;
- }
-}
</pre></div>
<hr /><a name="file8" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools/src/test<br /></span>
<div class="fileheader" id="removed"><big><b>README.txt</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N README.txt
--- README.txt 6 Oct 2003 01:01:04 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1 +0,0 @@
</small></pre><pre class="diff" id="removed">-Placeholder until unit test files written.
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file9" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools/xdocs<br /></span>
<div class="fileheader" id="removed"><big><b>component.menu</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N component.menu
--- component.menu 25 Apr 2004 01:15:05 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,4 +0,0 @@
</small></pre><pre class="diff" id="removed">-
- <menu name="Component">
- <item name="Home" href="/index.html"/>
- </menu>
</pre></div>
<hr /><a name="file10" /><div class="file">
<span class="pathname" id="removed">spice/sandbox/jmxtools/xdocs<br /></span>
<div class="fileheader" id="removed"><big><b>index.xml</b></big> <small id="info">removed after 1.1</small></div>
<pre class="diff"><small id="info">diff -N index.xml
--- index.xml 25 Apr 2004 01:15:05 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
</small></pre><pre class="diff" id="removed">-<?xml version="1.0"?>
-<document>
-
- <properties>
- <title>JMXTools</title>
- </properties>
-
- <body>
- <section name="Introduction">
- </section>
- </body>
-
-</document>
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.8</small></center>
</body></html>