spice-jndikit stable port information

Package: spice-jndikit
Version: 1.2
Revision: 1
Source: http://dist.codehaus.org/spice/distributions/%n-%v-src.tar.gz
Source-MD5: f70ee576be3c52126ed711c92a28360b
SourceDirectory: %n-%v
Source2: http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-velocity-20030303.205659.jar
Source2-MD5: 7f65c8da0fe603ab2c1f61cc6f64d2aa
Source3: http://www.ibiblio.org/maven/velocity/jars/velocity-1.4-dev.jar
Source3-MD5: 2436797a103de7c0bfb5bccefbaebe12
PatchFile: %n.patch
PatchFile-MD5: a3f48790fd3c2457138d56c291fdf6e7
PatchScript: <<
perl -pi -e 's, patch -p1 < %{PatchFile}
<<
BuildDepends: <<
ant-base (>= 1.6.5-1),
fink (>= 0.24.12-1),
fink-mirrors (>= 0.22.1.1-1),
system-java-dev (>= 1.4-1)
<<
Depends: system-java (>= 1.4-1)
Type: java(1.4)
CompileScript: <<
#!/bin/sh -ex

mkdir -p target/lib
mv ../*.jar target/lib
ant dist -Dnoget=true
<<
InstallScript: <<
install -d -m 755 %i/share/doc/%N
mv dist/docs/* %i/share/doc/%N/
<<
JarFiles: dist/*.jar
Homepage: http://jakarta.apache.org/spice-jndikit/
Maintainer: Benjamin Reed
Description: Toolkit for constructing JNDI providers
DescDetail: <<
JNDI Kit is a toolkit designed to help with the construction of
JNDI providers. The toolkit also provides users with ready made
memory-based and RMI-based contexts.
<<
License: BSD

spice-jndikit stable port .patch

diff -uNr spice-jndikit-1.2/build.xml spice-jndikit-1.2-new/build.xml
--- spice-jndikit-1.2/build.xml 2006-01-17 00:18:12.000000000 -0500
+++ spice-jndikit-1.2-new/build.xml 2006-06-28 14:17:51.000000000 -0400
@@ -58,7 +58,7 @@



-
+



@@ -78,7 +78,7 @@



-
+



@@ -165,4 +165,4 @@



-
\ No newline at end of file
+
diff -uNr spice-jndikit-1.2/src/java/org/codehaus/spice/jndikit/rmi/server/RMINamingProviderImpl.java spice-jndikit-1.2-new/src/java/org/codehaus/spice/jndikit/rmi/server/RMINamingProviderImpl.java
--- spice-jndikit-1.2/src/java/org/codehaus/spice/jndikit/rmi/server/RMINamingProviderImpl.java 2006-01-17 00:18:12.000000000 -0500
+++ spice-jndikit-1.2-new/src/java/org/codehaus/spice/jndikit/rmi/server/RMINamingProviderImpl.java 2006-06-28 14:16:24.000000000 -0400
@@ -76,12 +76,12 @@
{
//Remember that the bindings returned by this
//actually have a nested Binding as an object
- final NamingEnumeration enum = m_root.listBindings( name );
+ final NamingEnumeration e = m_root.listBindings( name );
final ArrayList pairs = new ArrayList();

- while( enum.hasMore() )
+ while( e.hasMore() )
{
- final Binding binding = (Binding)enum.next();
+ final Binding binding = (Binding)e.next();
final Object object = binding.getObject();

String className = null;
@@ -114,12 +114,12 @@
{
//Remember that the bindings returned by this
//actually have a nested Binding as an object
- final NamingEnumeration enum = m_root.listBindings( name );
+ final NamingEnumeration e = m_root.listBindings( name );
final ArrayList bindings = new ArrayList();

- while( enum.hasMore() )
+ while( e.hasMore() )
{
- final Binding binding = (Binding)enum.next();
+ final Binding binding = (Binding)e.next();
Object object = binding.getObject();
String className = null;

diff -uNr spice-jndikit-1.2/src/test/org/codehaus/spice/jndikit/test/AbstractContextTestCase.java spice-jndikit-1.2-new/src/test/org/codehaus/spice/jndikit/test/AbstractContextTestCase.java
--- spice-jndikit-1.2/src/test/org/codehaus/spice/jndikit/test/AbstractContextTestCase.java 2006-01-17 00:18:12.000000000 -0500
+++ spice-jndikit-1.2-new/src/test/org/codehaus/spice/jndikit/test/AbstractContextTestCase.java 2006-06-28 14:16:24.000000000 -0400
@@ -105,17 +105,17 @@
m_context.unbind( "O7" );
m_context.unbind( "O8" );

- final NamingEnumeration enum = m_context.list( "" );
+ final NamingEnumeration e = m_context.list( "" );

- if( enum.hasMoreElements() )
+ if( e.hasMoreElements() )
{
fail( "Failed to unbind all test elements: ie " +
- enum.nextElement() );
+ e.nextElement() );
}

try
{
- enum.nextElement();
+ e.nextElement();
fail( "Expected nextElement() to throw NoSuchElementException" );
}
catch( final NoSuchElementException nsee )
@@ -175,17 +175,17 @@
m_context.unbind( "x/O2" );
m_context.unbind( "x/O3" );

- final Enumeration enum = m_context.list( "x/" );
+ final Enumeration e = m_context.list( "x/" );

- if( enum.hasMoreElements() )
+ if( e.hasMoreElements() )
{
fail( "Failed to unbind all test elements: ie " +
- enum.nextElement() );
+ e.nextElement() );
}

try
{
- enum.nextElement();
+ e.nextElement();
fail( "Expected nextElement() to throw NoSuchElementException" );
}
catch( final NoSuchElementException nsee )
@@ -298,17 +298,17 @@
m_context.unbind( "x/O3" );


- final Enumeration enum = m_context.list( "x/y" );
+ final Enumeration e = m_context.list( "x/y" );

- if( enum.hasMoreElements() )
+ if( e.hasMoreElements() )
{
fail( "Failed to unbind all test elements: ie " +
- enum.nextElement() );
+ e.nextElement() );
}

try
{
- enum.nextElement();
+ e.nextElement();
fail( "Expected nextElement() to throw NoSuchElementException" );
}
catch( final NoSuchElementException nsee )
@@ -1068,11 +1068,11 @@
ExceptionReferenceable trigger = new ExceptionReferenceable();
m_context.bind( "o4", trigger );

- NamingEnumeration enum = m_context.listBindings( "" );
- assertTrue( enum.hasMore() );
+ NamingEnumeration e = m_context.listBindings( "" );
+ assertTrue( e.hasMore() );
try
{
- Object result = enum.next();
+ Object result = e.next();
fail( "Expected nextElement to throw NamingExceptionn, but returned "
+ result );
}
@@ -1100,11 +1100,11 @@
ExceptionReferenceable trigger = new ExceptionReferenceable();
m_context.bind( "o5", trigger );

- NamingEnumeration enum = m_context.listBindings( "" );
- assertTrue( enum.hasMoreElements() );
+ NamingEnumeration e = m_context.listBindings( "" );
+ assertTrue( e.hasMoreElements() );
try
{
- Object result = enum.nextElement();
+ Object result = e.nextElement();
fail( "Expected nextElement to throw NoSuchElementException, but returned "
+ result );
}

spice-jndikit _unstable_ port .patch