forked from pool/netcomponents
This commit is contained in:
committed by
Git OBS Bridge
parent
5141de02da
commit
ea8cbf6e0e
@@ -1,6 +1,7 @@
|
||||
diff -Naur ../NetComponents-1.3.8.orig/build.xml ./build.xml
|
||||
--- ../NetComponents-1.3.8.orig/build.xml 2001-11-30 04:20:12.000000000 +0100
|
||||
+++ ./build.xml 2006-09-21 12:32:48.000000000 +0200
|
||||
Nur in NetComponents-1.3.8: build.
|
||||
diff -ru NetComponents-1.3.8.orig/build.xml NetComponents-1.3.8/build.xml
|
||||
--- NetComponents-1.3.8.orig/build.xml 2001-11-30 04:20:12.000000000 +0100
|
||||
+++ NetComponents-1.3.8/build.xml 2007-07-23 21:13:39.462024000 +0200
|
||||
@@ -33,7 +33,9 @@
|
||||
excludes="examples/**"
|
||||
debug="${build.debug}"
|
||||
@@ -33,3 +34,199 @@ diff -Naur ../NetComponents-1.3.8.orig/build.xml ./build.xml
|
||||
<!--
|
||||
overview="${build.src.dir}/com/oroinc/overview.html"
|
||||
-->
|
||||
diff -ru NetComponents-1.3.8.orig/src/java/com/oroinc/net/ftp/FTP.java NetComponents-1.3.8/src/java/com/oroinc/net/ftp/FTP.java
|
||||
--- NetComponents-1.3.8.orig/src/java/com/oroinc/net/ftp/FTP.java 2001-11-30 04:20:12.000000000 +0100
|
||||
+++ NetComponents-1.3.8/src/java/com/oroinc/net/ftp/FTP.java 2007-07-23 21:10:49.091561000 +0200
|
||||
@@ -522,16 +522,16 @@
|
||||
* @return The entire text from the last FTP response as a String.
|
||||
***/
|
||||
public String getReplyString() {
|
||||
- Enumeration enum;
|
||||
+ Enumeration myenum;
|
||||
StringBuffer buffer;
|
||||
|
||||
if(!_newReplyString)
|
||||
return _replyString;
|
||||
|
||||
buffer = new StringBuffer(256);
|
||||
- enum = _replyLines.elements();
|
||||
- while(enum.hasMoreElements()) {
|
||||
- buffer.append((String)enum.nextElement());
|
||||
+ myenum = _replyLines.elements();
|
||||
+ while(myenum.hasMoreElements()) {
|
||||
+ buffer.append((String)myenum.nextElement());
|
||||
buffer.append(SocketClient.NETASCII_EOL);
|
||||
}
|
||||
|
||||
diff -ru NetComponents-1.3.8.orig/src/java/com/oroinc/net/pop3/POP3Client.java NetComponents-1.3.8/src/java/com/oroinc/net/pop3/POP3Client.java
|
||||
--- NetComponents-1.3.8.orig/src/java/com/oroinc/net/pop3/POP3Client.java 2001-11-30 04:20:12.000000000 +0100
|
||||
+++ NetComponents-1.3.8/src/java/com/oroinc/net/pop3/POP3Client.java 2007-07-23 21:10:49.142516000 +0200
|
||||
@@ -355,7 +355,7 @@
|
||||
***/
|
||||
public POP3MessageInfo[] listMessages() throws IOException {
|
||||
POP3MessageInfo[] messages;
|
||||
- Enumeration enum;
|
||||
+ Enumeration myenum;
|
||||
int line;
|
||||
|
||||
if(getState() != TRANSACTION_STATE)
|
||||
@@ -366,14 +366,14 @@
|
||||
|
||||
// This could be a zero length array if no messages present
|
||||
messages = new POP3MessageInfo[_replyLines.size() - 2];
|
||||
- enum = _replyLines.elements();
|
||||
+ myenum = _replyLines.elements();
|
||||
|
||||
// Skip first line
|
||||
- enum.nextElement();
|
||||
+ myenum.nextElement();
|
||||
|
||||
// Fetch lines.
|
||||
for(line = 0; line < messages.length; line++)
|
||||
- messages[line] = __parseStatus((String)enum.nextElement());
|
||||
+ messages[line] = __parseStatus((String)myenum.nextElement());
|
||||
|
||||
return messages;
|
||||
}
|
||||
@@ -426,7 +426,7 @@
|
||||
***/
|
||||
public POP3MessageInfo[] listUniqueIdentifiers() throws IOException {
|
||||
POP3MessageInfo[] messages;
|
||||
- Enumeration enum;
|
||||
+ Enumeration myenum;
|
||||
int line;
|
||||
|
||||
if(getState() != TRANSACTION_STATE)
|
||||
@@ -437,14 +437,14 @@
|
||||
|
||||
// This could be a zero length array if no messages present
|
||||
messages = new POP3MessageInfo[_replyLines.size() - 2];
|
||||
- enum = _replyLines.elements();
|
||||
+ myenum = _replyLines.elements();
|
||||
|
||||
// Skip first line
|
||||
- enum.nextElement();
|
||||
+ myenum.nextElement();
|
||||
|
||||
// Fetch lines.
|
||||
for(line = 0; line < messages.length; line++)
|
||||
- messages[line] = __parseUID((String)enum.nextElement());
|
||||
+ messages[line] = __parseUID((String)myenum.nextElement());
|
||||
|
||||
return messages;
|
||||
}
|
||||
diff -ru NetComponents-1.3.8.orig/src/java/com/oroinc/net/pop3/POP3.java NetComponents-1.3.8/src/java/com/oroinc/net/pop3/POP3.java
|
||||
--- NetComponents-1.3.8.orig/src/java/com/oroinc/net/pop3/POP3.java 2001-11-30 04:20:12.000000000 +0100
|
||||
+++ NetComponents-1.3.8/src/java/com/oroinc/net/pop3/POP3.java 2007-07-23 21:10:49.130525000 +0200
|
||||
@@ -305,12 +305,12 @@
|
||||
* @return The last server response.
|
||||
***/
|
||||
public String getReplyString() {
|
||||
- Enumeration enum;
|
||||
+ Enumeration myenum;
|
||||
StringBuffer buffer = new StringBuffer(256);
|
||||
|
||||
- enum = _replyLines.elements();
|
||||
- while(enum.hasMoreElements()) {
|
||||
- buffer.append((String)enum.nextElement());
|
||||
+ myenum = _replyLines.elements();
|
||||
+ while(myenum.hasMoreElements()) {
|
||||
+ buffer.append((String)myenum.nextElement());
|
||||
buffer.append(SocketClient.NETASCII_EOL);
|
||||
}
|
||||
|
||||
diff -ru NetComponents-1.3.8.orig/src/java/com/oroinc/net/ProtocolCommandSupport.java NetComponents-1.3.8/src/java/com/oroinc/net/ProtocolCommandSupport.java
|
||||
--- NetComponents-1.3.8.orig/src/java/com/oroinc/net/ProtocolCommandSupport.java 2001-11-30 04:20:12.000000000 +0100
|
||||
+++ NetComponents-1.3.8/src/java/com/oroinc/net/ProtocolCommandSupport.java 2007-07-23 21:10:49.239414000 +0200
|
||||
@@ -66,16 +66,16 @@
|
||||
* including all arguments.
|
||||
***/
|
||||
public void fireCommandSent(String command, String message){
|
||||
- Enumeration enum;
|
||||
+ Enumeration myenum;
|
||||
ProtocolCommandEvent event;
|
||||
ProtocolCommandListener listener;
|
||||
|
||||
- enum = __listeners.getListeners();
|
||||
+ myenum = __listeners.getListeners();
|
||||
|
||||
event = new ProtocolCommandEvent(__source, command, message);
|
||||
|
||||
- while(enum.hasMoreElements()) {
|
||||
- listener = (ProtocolCommandListener)enum.nextElement();
|
||||
+ while(myenum.hasMoreElements()) {
|
||||
+ listener = (ProtocolCommandListener)myenum.nextElement();
|
||||
listener.protocolCommandSent(event);
|
||||
}
|
||||
}
|
||||
@@ -94,16 +94,16 @@
|
||||
* @param message The entire reply as received from the server.
|
||||
***/
|
||||
public void fireReplyReceived(int replyCode, String message){
|
||||
- Enumeration enum;
|
||||
+ Enumeration myenum;
|
||||
ProtocolCommandEvent event;
|
||||
ProtocolCommandListener listener;
|
||||
|
||||
- enum = __listeners.getListeners();
|
||||
+ myenum = __listeners.getListeners();
|
||||
|
||||
event = new ProtocolCommandEvent(__source, replyCode, message);
|
||||
|
||||
- while(enum.hasMoreElements()) {
|
||||
- listener = (ProtocolCommandListener)enum.nextElement();
|
||||
+ while(myenum.hasMoreElements()) {
|
||||
+ listener = (ProtocolCommandListener)myenum.nextElement();
|
||||
listener.protocolReplyReceived(event);
|
||||
}
|
||||
}
|
||||
diff -ru NetComponents-1.3.8.orig/src/java/com/oroinc/net/smtp/SMTP.java NetComponents-1.3.8/src/java/com/oroinc/net/smtp/SMTP.java
|
||||
--- NetComponents-1.3.8.orig/src/java/com/oroinc/net/smtp/SMTP.java 2001-11-30 04:20:12.000000000 +0100
|
||||
+++ NetComponents-1.3.8/src/java/com/oroinc/net/smtp/SMTP.java 2007-07-23 21:10:49.192463000 +0200
|
||||
@@ -410,16 +410,16 @@
|
||||
* @return The entire text from the last SMTP response as a String.
|
||||
***/
|
||||
public String getReplyString() {
|
||||
- Enumeration enum;
|
||||
+ Enumeration myenum;
|
||||
StringBuffer buffer;
|
||||
|
||||
if(!_newReplyString)
|
||||
return _replyString;
|
||||
|
||||
buffer = new StringBuffer(256);
|
||||
- enum = _replyLines.elements();
|
||||
- while(enum.hasMoreElements()) {
|
||||
- buffer.append((String)enum.nextElement());
|
||||
+ myenum = _replyLines.elements();
|
||||
+ while(myenum.hasMoreElements()) {
|
||||
+ buffer.append((String)myenum.nextElement());
|
||||
buffer.append(SocketClient.NETASCII_EOL);
|
||||
}
|
||||
|
||||
diff -ru NetComponents-1.3.8.orig/src/java/examples/mail.java NetComponents-1.3.8/src/java/examples/mail.java
|
||||
--- NetComponents-1.3.8.orig/src/java/examples/mail.java 2001-11-30 04:20:12.000000000 +0100
|
||||
+++ NetComponents-1.3.8/src/java/examples/mail.java 2007-07-23 21:10:49.013639000 +0200
|
||||
@@ -43,7 +43,7 @@
|
||||
Writer writer;
|
||||
SimpleSMTPHeader header;
|
||||
SMTPClient client;
|
||||
- Enumeration enum;
|
||||
+ Enumeration myenum;
|
||||
|
||||
if(args.length < 1) {
|
||||
System.err.println("Usage: mail smtpserver");
|
||||
@@ -115,10 +115,10 @@
|
||||
client.setSender(sender);
|
||||
client.addRecipient(recipient);
|
||||
|
||||
- enum = ccList.elements();
|
||||
+ myenum = ccList.elements();
|
||||
|
||||
- while(enum.hasMoreElements())
|
||||
- client.addRecipient((String)enum.nextElement());
|
||||
+ while(myenum.hasMoreElements())
|
||||
+ client.addRecipient((String)myenum.nextElement());
|
||||
|
||||
writer = client.sendMessageData();
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 23 21:14:48 CEST 2007 - coolo@suse.de
|
||||
|
||||
- fix build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 21 13:06:09 CEST 2006 - skh@suse.de
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package netcomponents (Version 1.3.8)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
@@ -16,8 +16,8 @@ BuildRequires: ant java2-devel-packages xml-commons-apis
|
||||
%define section free
|
||||
Summary: Internet Protocol Suite Java Library
|
||||
Version: 1.3.8
|
||||
Release: 24
|
||||
License: LGPL
|
||||
Release: 90
|
||||
License: LGPL v2 or later
|
||||
Group: Development/Libraries/Java
|
||||
Source: http://www.savarese.org/downloads/NetComponents/NetComponents-1.3.8-src.tar.gz
|
||||
Patch: %{name}-java14compat.patch
|
||||
@@ -66,7 +66,7 @@ This package contains the javadoc documentation for netcomponents.
|
||||
|
||||
%prep
|
||||
%setup -q -n NetComponents-%{version}
|
||||
%patch
|
||||
%patch -p1
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
%build
|
||||
@@ -107,7 +107,9 @@ fi
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
%changelog -n netcomponents
|
||||
%changelog
|
||||
* Mon Jul 23 2007 - coolo@suse.de
|
||||
- fix build
|
||||
* Thu Sep 21 2006 - skh@suse.de
|
||||
- don't try to build with icecream within SUSE build system
|
||||
- use source=1.4 and target=1.4 for build with java 1.5
|
||||
|
||||
Reference in New Issue
Block a user