leosimons 2002/11/01 07:16:54
Added: xcommander diff WARNING
sevak WARNING
phyre WARNING
infomover WARNING
enterprise WARNING
db WARNING
Log:
add warning messages (about alpha/maintainance) so users won't get upset.
Revision Changes Path
1.1 jakarta-avalon-apps/xcommander/diff
Index: diff
===================================================================
Index: src/java/org/apache/avalon/xcommander/XCommanderHandler.java
===================================================================
RCS file:
/home/cvspublic/jakarta-avalon-apps/xcommander/src/java/org/apache/avalon/xcommander/XCommanderHandler.java,v
retrieving revision 1.4
diff -u -r1.4 XCommanderHandler.java
--- src/java/org/apache/avalon/xcommander/XCommanderHandler.java 20 May 2002
10:20:18 -0000 1.4
+++ src/java/org/apache/avalon/xcommander/XCommanderHandler.java 4 Sep 2002
21:52:23 -0000
@@ -23,6 +23,7 @@
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
+import java.io.CharArrayWriter;
/**
* This handles an individual incoming XCommander request.
@@ -150,20 +151,18 @@
// read the input. When a zero byte is encountered,
// pass the input to the SAX parser.
- String inputLine;
- int streamResult;
- char buf[] = new char[ 1 ];
+ final CharArrayWriter inputBuffer = new CharArrayWriter();
+ int lastChar;
do
{
- inputLine = "";
+ inputBuffer.reset();
- do
+ while( (lastChar = m_in.read()) > 0 )
{
- streamResult = m_in.read( buf, 0, 1 );
- inputLine += buf[ 0 ];
- } while( buf[ 0 ] != '\u0000' );
+ inputBuffer.write( lastChar );
+ }
- inputLine = inputLine.substring( 0, ( inputLine.length() - 1 ) );
+ String inputLine = inputBuffer.toString();
if( -1 != inputLine.indexOf( "<command" ) )
{
@@ -173,7 +172,7 @@
}
m_parser.parse( new InputSource( new StringReader( inputLine )
) );
}
- } while( streamResult != -1 );
+ } while( lastChar != -1 );
//Finish
m_out.flush();
1.1 jakarta-avalon-apps/xcommander/WARNING
Index: WARNING
===================================================================
***************************** W A R N I N G **********************************
This package is in maintainance mode only. This means that there will be no
new official releases. No new features are being added. We intend to
eventually drop this package completely.
You have been warned.
***************************** W A R N I N G **********************************
1.1 jakarta-avalon-apps/sevak/WARNING
Index: WARNING
===================================================================
***************************** W A R N I N G **********************************
All user accessible points in this software package are to be considered
"alpha". This means that the developer team is not investing _any_ effort
in providing back compatibility between alpha releases.
This software will continue to be released as "alpha" until both code,
schemas and APIs will be considered stable.
Until then, there will be no warranty that newer versions will maintain back
compatibility even in the most simple cases.
On the other hand, once "beta" status is reached, back incompatible changes
will be made only if absolutely necessary to reach "final" status.
The Avalon development team understands the importance of reliable
software as well as the importance of protecting user investiments by the
creation of a solid development platform that doesn't change.
On the other hand, being the Avalon project a pioneer in many fields, this
cannot be guaranteed before a final status is reached for the software.
Until then, no effort will be provided to guarantee back compatibility.
You have been warned.
***************************** W A R N I N G **********************************
1.1 jakarta-avalon-apps/phyre/WARNING
Index: WARNING
===================================================================
***************************** W A R N I N G **********************************
All user accessible points in this software package are to be considered
"alpha". This means that the developer team is not investing _any_ effort
in providing back compatibility between alpha releases.
This software will continue to be released as "alpha" until both code,
schemas and APIs will be considered stable.
Until then, there will be no warranty that newer versions will maintain back
compatibility even in the most simple cases.
On the other hand, once "beta" status is reached, back incompatible changes
will be made only if absolutely necessary to reach "final" status.
The Avalon development team understands the importance of reliable
software as well as the importance of protecting user investiments by the
creation of a solid development platform that doesn't change.
On the other hand, being the Avalon project a pioneer in many fields, this
cannot be guaranteed before a final status is reached for the software.
Until then, no effort will be provided to guarantee back compatibility.
You have been warned.
***************************** W A R N I N G **********************************
1.1 jakarta-avalon-apps/infomover/WARNING
Index: WARNING
===================================================================
***************************** W A R N I N G **********************************
All user accessible points in this software package are to be considered
"alpha". This means that the developer team is not investing _any_ effort
in providing back compatibility between alpha releases.
This software will continue to be released as "alpha" until both code,
schemas and APIs will be considered stable.
Until then, there will be no warranty that newer versions will maintain back
compatibility even in the most simple cases.
On the other hand, once "beta" status is reached, back incompatible changes
will be made only if absolutely necessary to reach "final" status.
The Avalon development team understands the importance of reliable
software as well as the importance of protecting user investiments by the
creation of a solid development platform that doesn't change.
On the other hand, being the Avalon project a pioneer in many fields, this
cannot be guaranteed before a final status is reached for the software.
Until then, no effort will be provided to guarantee back compatibility.
You have been warned.
***************************** W A R N I N G **********************************
1.1 jakarta-avalon-apps/enterprise/WARNING
Index: WARNING
===================================================================
***************************** W A R N I N G **********************************
All user accessible points in this software package are to be considered
"alpha". This means that the developer team is not investing _any_ effort
in providing back compatibility between alpha releases.
This software will continue to be released as "alpha" until both code,
schemas and APIs will be considered stable.
Until then, there will be no warranty that newer versions will maintain back
compatibility even in the most simple cases.
On the other hand, once "beta" status is reached, back incompatible changes
will be made only if absolutely necessary to reach "final" status.
The Avalon development team understands the importance of reliable
software as well as the importance of protecting user investiments by the
creation of a solid development platform that doesn't change.
On the other hand, being the Avalon project a pioneer in many fields, this
cannot be guaranteed before a final status is reached for the software.
Until then, no effort will be provided to guarantee back compatibility.
You have been warned.
***************************** W A R N I N G **********************************
1.1 jakarta-avalon-apps/db/WARNING
Index: WARNING
===================================================================
***************************** W A R N I N G **********************************
All user accessible points in this software package are to be considered
"alpha". This means that the developer team is not investing _any_ effort
in providing back compatibility between alpha releases.
This software will continue to be released as "alpha" until both code,
schemas and APIs will be considered stable.
Until then, there will be no warranty that newer versions will maintain back
compatibility even in the most simple cases.
On the other hand, once "beta" status is reached, back incompatible changes
will be made only if absolutely necessary to reach "final" status.
The Avalon development team understands the importance of reliable
software as well as the importance of protecting user investiments by the
creation of a solid development platform that doesn't change.
On the other hand, being the Avalon project a pioneer in many fields, this
cannot be guaranteed before a final status is reached for the software.
Until then, no effort will be provided to guarantee back compatibility.
You have been warned.
***************************** W A R N I N G **********************************
--
To unsubscribe, e-mail: <mailto:avalon-cvs-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@;jakarta.apache.org>