Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
716a25a2
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
716a25a2
编写于
3月 31, 2009
作者:
X
xdono
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
78897a28
9a4a2361
变更
14
展开全部
隐藏空白更改
内联
并排
Showing
14 changed file
with
1059 addition
and
707 deletion
+1059
-707
corba/make/com/sun/corba/se/sources/Makefile
corba/make/com/sun/corba/se/sources/Makefile
+4
-6
corba/make/sun/rmi/corbalogsources/Makefile
corba/make/sun/rmi/corbalogsources/Makefile
+24
-25
corba/make/tools/Makefile
corba/make/tools/Makefile
+2
-1
corba/make/tools/logutil/Makefile
corba/make/tools/logutil/Makefile
+43
-0
corba/src/share/classes/com/sun/tools/corba/se/logutil/IndentingPrintWriter.java
.../com/sun/tools/corba/se/logutil/IndentingPrintWriter.java
+6
-9
corba/src/share/classes/com/sun/tools/corba/se/logutil/Input.java
...c/share/classes/com/sun/tools/corba/se/logutil/Input.java
+211
-0
corba/src/share/classes/com/sun/tools/corba/se/logutil/InputCode.java
...are/classes/com/sun/tools/corba/se/logutil/InputCode.java
+116
-0
corba/src/share/classes/com/sun/tools/corba/se/logutil/InputException.java
...lasses/com/sun/tools/corba/se/logutil/InputException.java
+94
-0
corba/src/share/classes/com/sun/tools/corba/se/logutil/MC.java
.../src/share/classes/com/sun/tools/corba/se/logutil/MC.java
+559
-0
corba/src/share/classes/com/sun/tools/corba/se/logutil/lib/jscheme.jar
...re/classes/com/sun/tools/corba/se/logutil/lib/jscheme.jar
+0
-0
corba/src/share/classes/com/sun/tools/corba/se/logutil/lib/jschemelogutil.jar
...ses/com/sun/tools/corba/se/logutil/lib/jschemelogutil.jar
+0
-0
corba/src/share/classes/com/sun/tools/corba/se/logutil/scripts/mc
...c/share/classes/com/sun/tools/corba/se/logutil/scripts/mc
+0
-2
corba/src/share/classes/com/sun/tools/corba/se/logutil/scripts/mc.scm
...are/classes/com/sun/tools/corba/se/logutil/scripts/mc.scm
+0
-662
corba/src/share/classes/com/sun/tools/corba/se/logutil/scripts/run
.../share/classes/com/sun/tools/corba/se/logutil/scripts/run
+0
-2
未找到文件。
corba/make/com/sun/corba/se/sources/Makefile
浏览文件 @
716a25a2
...
...
@@ -46,8 +46,6 @@ CORBA_JMK_DIRECTORY=$(TOPDIR)/make/com/sun/corba/minclude/
include
$(CORBA_JMK_DIRECTORY)com_sun_corba_se_PortableActivationIDL.jmk
include
$(CORBA_JMK_DIRECTORY)com_sun_corba_se_impl_logging.jmk
FILES_java
+=
com/sun/corba/se/org/omg/CORBA/ORB.java
#
# Dirs
#
...
...
@@ -80,11 +78,11 @@ ORBUTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/ORBUtil.mc
POA.MC
=
$(SRC_DIR)
/com/sun/corba/se/spi/logging/data/POA.mc
UTIL.MC
=
$(SRC_DIR)
/com/sun/corba/se/spi/logging/data/Util.mc
MC_GENERATE_CLASS
=
$(SRC_DIR)
/com/sun/tools/corba/se/logutil/scripts/mc.scm
-main
main
make-class
MC_GENERATE_LOG_RB
=
$(SRC_DIR)
/com/sun/tools/corba/se/logutil/scripts/mc.scm
-main
main
make-resource
MC_GENERATE_CLASS
=
make-class
MC_GENERATE_LOG_RB
=
make-resource
JSCHEME_GENERATE_CLASS
=
$(BOOT_JAVA_CMD)
jscheme.REPL
$(MC_GENERATE_CLASS)
JSCHEME_GENERATE_LOG_RB
=
$(BOOT_JAVA_CMD)
jscheme.REPL
$(MC_GENERATE_LOG_RB)
JSCHEME_GENERATE_CLASS
=
$(BOOT_JAVA_CMD)
com.sun.tools.corba.se.logutil.MC
$(MC_GENERATE_CLASS)
JSCHEME_GENERATE_LOG_RB
=
$(BOOT_JAVA_CMD)
com.sun.tools.corba.se.logutil.MC
$(MC_GENERATE_LOG_RB)
#
...
...
corba/make/sun/rmi/corbalogsources/Makefile
浏览文件 @
716a25a2
#
# Copyright 2003-200
6
Sun Microsystems, Inc. All Rights Reserved.
# Copyright 2003-200
9
Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -75,15 +75,14 @@ ORBUTIL.MC = $(SRC_DIR)/com/sun/corba/se/spi/logging/data/ORBUtil.mc
POA.MC
=
$(SRC_DIR)
/com/sun/corba/se/spi/logging/data/POA.mc
UTIL.MC
=
$(SRC_DIR)
/com/sun/corba/se/spi/logging/data/Util.mc
MC_GENERATE_CLASS
=
$(SRC_DIR)
/com/sun/tools/corba/se/logutil/scripts/mc.scm
-main
main
make-class
MC_GENERATE_LOG_RB
=
$(SRC_DIR)
/com/sun/tools/corba/se/logutil/scripts/mc.scm
-main
main
make-resource
MC_GENERATE_CLASS
=
make-class
MC_GENERATE_LOG_RB
=
make-resource
JSCHEME_LIB_DIRECTORY
=
$(SRC_DIR)
/com/sun/tools/corba/se/logutil/lib
JSCHEME_CLASSPATH
=
$(JSCHEME_LIB_DIRECTORY)
/jscheme.jar
$(CLASSPATH_SEPARATOR)$(JSCHEME_LIB_DIRECTORY)
/jschemelogutil.jar
JSCHEME_GENERATE_CLASS
=
$(BOOT_JAVA_CMD)
\
-cp
"
$(JSCHEME_CLASSPATH)
"
jscheme.REPL
$(MC_GENERATE_CLASS)
JSCHEME_GENERATE_LOG_RB
=
$(BOOT_JAVA_CMD)
\
-cp
"
$(JSCHEME_CLASSPATH)
"
jscheme.REPL
$(MC_GENERATE_LOG_RB)
MC_CLASSPATH
=
$(BUILDTOOLJARDIR)
/MC.jar
MCJ_GENERATE_CLASS
=
$(BOOT_JAVA_CMD)
\
-cp
"
$(MC_CLASSPATH)
"
com.sun.tools.corba.se.logutil.MC
$(MC_GENERATE_CLASS)
MCJ_GENERATE_LOG_RB
=
$(BOOT_JAVA_CMD)
\
-cp
"
$(MC_CLASSPATH)
"
com.sun.tools.corba.se.logutil.MC
$(MC_GENERATE_LOG_RB)
#
...
...
@@ -104,28 +103,28 @@ $(LOG_GENDIRECTORY):
$(MKDIR)
-p
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/ActivationSystemException.java
:
$(ACTIVATION.MC)
$(
JSCHEME
_GENERATE_CLASS)
$(ACTIVATION.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_CLASS)
$(ACTIVATION.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/IORSystemException.java
:
$(IOR.MC)
$(
JSCHEME
_GENERATE_CLASS)
$(IOR.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_CLASS)
$(IOR.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/InterceptorsSystemException.java
:
$(INTERCEPTORS.MC)
$(
JSCHEME
_GENERATE_CLASS)
$(INTERCEPTORS.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_CLASS)
$(INTERCEPTORS.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/NamingSystemException.java
:
$(NAMING.MC)
$(
JSCHEME
_GENERATE_CLASS)
$(NAMING.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_CLASS)
$(NAMING.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/OMGSystemException.java
:
$(OMG.MC)
$(
JSCHEME
_GENERATE_CLASS)
$(OMG.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_CLASS)
$(OMG.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/ORBUtilSystemException.java
:
$(ORBUTIL.MC)
$(
JSCHEME
_GENERATE_CLASS)
$(ORBUTIL.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_CLASS)
$(ORBUTIL.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/POASystemException.java
:
$(POA.MC)
$(
JSCHEME
_GENERATE_CLASS)
$(POA.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_CLASS)
$(POA.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/UtilSystemException.java
:
$(UTIL.MC)
$(
JSCHEME
_GENERATE_CLASS)
$(UTIL.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_CLASS)
$(UTIL.MC)
$(LOG_GENDIRECTORY)
logresource.generate
:
$(LOG_GENDIRECTORY)/LogStrings.properties
...
...
@@ -142,28 +141,28 @@ $(LOG_GENDIRECTORY)/LogStrings.properties: \
$(CAT)
$(LOG_GENDIRECTORY)
/
*
.resource
>
$(LOG_GENDIRECTORY)
/LogStrings.properties
$(LOG_GENDIRECTORY)/ActivationSystemException.resource
:
$(ACTIVATION.MC)
$(
JSCHEME
_GENERATE_LOG_RB)
$(ACTIVATION.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_LOG_RB)
$(ACTIVATION.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/IORSystemException.resource
:
$(IOR.MC)
$(
JSCHEME
_GENERATE_LOG_RB)
$(IOR.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_LOG_RB)
$(IOR.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/InterceptorsSystemException.resource
:
$(INTERCEPTORS.MC)
$(
JSCHEME
_GENERATE_LOG_RB)
$(INTERCEPTORS.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_LOG_RB)
$(INTERCEPTORS.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/NamingSystemException.resource
:
$(NAMING.MC)
$(
JSCHEME
_GENERATE_LOG_RB)
$(NAMING.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_LOG_RB)
$(NAMING.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/OMGSystemException.resource
:
$(OMG.MC)
$(
JSCHEME
_GENERATE_LOG_RB)
$(OMG.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_LOG_RB)
$(OMG.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/ORBUtilSystemException.resource
:
$(ORBUTIL.MC)
$(
JSCHEME
_GENERATE_LOG_RB)
$(ORBUTIL.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_LOG_RB)
$(ORBUTIL.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/POASystemException.resource
:
$(POA.MC)
$(
JSCHEME
_GENERATE_LOG_RB)
$(POA.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_LOG_RB)
$(POA.MC)
$(LOG_GENDIRECTORY)
$(LOG_GENDIRECTORY)/UtilSystemException.resource
:
$(UTIL.MC)
$(
JSCHEME
_GENERATE_LOG_RB)
$(UTIL.MC)
$(LOG_GENDIRECTORY)
$(
MCJ
_GENERATE_LOG_RB)
$(UTIL.MC)
$(LOG_GENDIRECTORY)
#
...
...
corba/make/tools/Makefile
浏览文件 @
716a25a2
#
# Copyright 1998-200
5
Sun Microsystems, Inc. All Rights Reserved.
# Copyright 1998-200
9
Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
...
...
@@ -33,6 +33,7 @@ include $(BUILDDIR)/common/Defs.gmk
SUBDIRS
=
\
strip_properties
\
idlj
\
logutil
\
all build clean clobber
::
$
(
SUBDIRS-loop
)
...
...
corba/make/tools/logutil/Makefile
0 → 100644
浏览文件 @
716a25a2
#
# Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#
#
# Makefile for building the idlj tool
#
BUILDDIR
=
../..
PACKAGE
=
com.sun.tools.corba.se.logutil
PRODUCT
=
tools
PROGRAM
=
MC
include
$(BUILDDIR)/common/Defs.gmk
BUILDTOOL_SOURCE_ROOT
=
$(SHARE_SRC)
/classes
BUILDTOOL_MAIN
=
$(PKGDIR)
/MC.java
#
# Build tool jar rules.
#
include
$(BUILDDIR)/common/BuildToolJar.gmk
corba/src/share/classes/com/sun/tools/corba/se/logutil/IndentingPrintWriter.java
浏览文件 @
716a25a2
/*
* Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
* Copyright 2003
-2009
Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -30,7 +30,6 @@ import java.io.Writer ;
import
java.io.OutputStream
;
import
java.io.BufferedWriter
;
import
java.io.OutputStreamWriter
;
import
jsint.Pair
;
import
java.util.StringTokenizer
;
public
class
IndentingPrintWriter
extends
PrintWriter
{
...
...
@@ -38,22 +37,20 @@ public class IndentingPrintWriter extends PrintWriter {
private
int
indentWidth
=
4
;
private
String
indentString
=
""
;
public
void
printMsg
(
String
msg
,
Pair
data
)
public
void
printMsg
(
String
msg
,
Object
...
data
)
{
// System.out.println( "printMsg called with msg=" + msg + " data=" + data ) ;
StringTokenizer
st
=
new
StringTokenizer
(
msg
,
"@"
,
true
)
;
StringBuffer
result
=
new
StringBuffer
()
;
Object
head
=
data
.
first
;
Pair
tail
=
(
Pair
)
data
.
rest
;
String
token
=
null
;
int
pos
=
0
;
while
(
st
.
hasMoreTokens
())
{
token
=
st
.
nextToken
()
;
if
(
token
.
equals
(
"@"
))
{
if
(
head
!=
null
)
{
result
.
append
(
head
)
;
head
=
tail
.
first
;
tail
=
(
Pair
)
tail
.
rest
;
if
(
pos
<
data
.
length
)
{
result
.
append
(
data
[
pos
]
);
++
pos
;
}
else
{
throw
new
Error
(
"List too short for message"
)
;
}
...
...
corba/src/share/classes/com/sun/tools/corba/se/logutil/Input.java
0 → 100644
浏览文件 @
716a25a2
/*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
package
com.sun.tools.corba.se.logutil
;
import
java.io.BufferedReader
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileNotFoundException
;
import
java.io.InputStreamReader
;
import
java.io.IOException
;
import
java.util.LinkedList
;
import
java.util.Queue
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
public
class
Input
{
/**
* The name of the package this class will inhabit.
*/
private
String
packageName
;
/**
* The name of the generated class.
*/
private
String
className
;
/**
* The name of the group of exceptions handled by the class.
*/
private
String
groupName
;
/**
* The group of exceptions.
*/
private
Queue
<
InputException
>
exceptions
;
/**
* Represents the current state of parsing the input.
*/
private
enum
State
{
OUTER
,
IN_CLASS
,
IN_EXCEPTION_LIST
};
/**
* Regular expression to match each code line.
*/
private
static
final
Pattern
EXCEPTION_INFO_REGEX
=
Pattern
.
compile
(
"(\\w+)\\s*(\\d+)\\s*(\\w+)"
);
/**
* Parses the specified file to create a new {@link Input}
* object.
*
* @param filename the file to parse.
* @throws FileNotFoundException if the file can't be found.
* @throws IOException if an I/O error occurs.
*/
public
Input
(
final
String
filename
)
throws
FileNotFoundException
,
IOException
{
BufferedReader
r
=
new
BufferedReader
(
new
InputStreamReader
(
new
FileInputStream
(
filename
)));
State
state
=
State
.
OUTER
;
InputException
current
=
null
;
exceptions
=
new
LinkedList
<
InputException
>();
String
line
;
while
((
line
=
r
.
readLine
())
!=
null
)
{
// Skip ; comments
if
(
line
.
startsWith
(
";"
))
continue
;
int
index
=
line
.
indexOf
(
"("
);
if
(
index
==
-
1
)
continue
;
switch
(
state
)
{
case
OUTER:
state
=
State
.
IN_CLASS
;
String
[]
classInfo
=
line
.
substring
(
index
).
split
(
" "
);
packageName
=
classInfo
[
0
].
substring
(
2
,
classInfo
[
0
].
length
()
-
1
);
className
=
classInfo
[
1
].
substring
(
1
,
classInfo
[
1
].
length
()
-
1
);
groupName
=
classInfo
[
2
];
break
;
case
IN_CLASS:
state
=
State
.
IN_EXCEPTION_LIST
;
break
;
case
IN_EXCEPTION_LIST:
boolean
inQuote
=
false
;
boolean
inCode
=
false
;
boolean
end
=
false
;
int
start
=
index
+
1
;
Queue
<
String
>
lines
=
new
LinkedList
<
String
>();
for
(
int
a
=
start
;
a
<
line
.
length
();
++
a
)
{
if
(
line
.
charAt
(
a
)
==
'('
&&
!
inCode
&&
!
inQuote
)
{
if
(
current
==
null
)
current
=
new
InputException
(
line
.
substring
(
start
,
a
).
trim
());
start
=
a
+
1
;
inCode
=
true
;
}
if
(
line
.
charAt
(
a
)
==
'"'
)
inQuote
=
!
inQuote
;
if
(
line
.
charAt
(
a
)
==
')'
&&
!
inQuote
)
{
if
(
inCode
)
{
lines
.
offer
(
line
.
substring
(
start
,
a
));
inCode
=
false
;
}
else
end
=
true
;
}
if
(!
end
&&
a
==
line
.
length
()
-
1
)
line
+=
r
.
readLine
();
}
for
(
String
l
:
lines
)
{
int
stringStart
=
l
.
indexOf
(
"\""
)
+
1
;
int
stringEnd
=
l
.
indexOf
(
"\""
,
stringStart
);
Matcher
matcher
=
EXCEPTION_INFO_REGEX
.
matcher
(
l
.
substring
(
0
,
stringStart
));
if
(
matcher
.
find
())
current
.
add
(
new
InputCode
(
matcher
.
group
(
1
),
Integer
.
parseInt
(
matcher
.
group
(
2
)),
matcher
.
group
(
3
),
l
.
substring
(
stringStart
,
stringEnd
)));
}
exceptions
.
offer
(
current
);
current
=
null
;
break
;
}
}
}
/**
* Returns the name of this group of exceptions.
*
* @return the name of this group of exceptions.
*/
public
String
getGroupName
()
{
return
groupName
;
}
/**
* Returns the name of the package this class will go in.
*
* @return the name of the package.
*/
public
String
getPackageName
()
{
return
packageName
;
}
/**
* Returns the name of the generated class.
*
* @return the name of the class.
*/
public
String
getClassName
()
{
return
className
;
}
/**
* Returns the exceptions contained in this class.
*
* @return the exceptions.
*/
public
Queue
<
InputException
>
getExceptions
()
{
return
exceptions
;
}
/**
* Returns a textual representation of this input.
*
* @return a textual representation.
*/
public
String
toString
()
{
return
getClass
().
getName
()
+
"[packageName="
+
packageName
+
",className="
+
className
+
",groupName="
+
groupName
+
",exceptions="
+
exceptions
+
"]"
;
}
}
corba/src/share/classes/com/sun/tools/corba/se/logutil/InputCode.java
0 → 100644
浏览文件 @
716a25a2
/*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
package
com.sun.tools.corba.se.logutil
;
public
class
InputCode
{
/**
* The name of this code.
*/
private
final
String
name
;
/**
* The code.
*/
private
final
int
code
;
/**
* The log level for this code.
*/
private
final
String
logLevel
;
/**
* The error message for this code.
*/
private
final
String
message
;
/**
* Creates a new error code with the specified name, code,
* log level and error message.
*
* @param name the name of the new code.
* @param code the code itself.
* @param logLevel the level of severity of this error.
* @param message the error message for this code.
*/
public
InputCode
(
final
String
name
,
final
int
code
,
final
String
logLevel
,
final
String
message
)
{
this
.
name
=
name
;
this
.
code
=
code
;
this
.
logLevel
=
logLevel
;
this
.
message
=
message
;
}
/**
* Returns the name of this code.
*
* @return the name of the code.
*/
public
String
getName
()
{
return
name
;
}
/**
* Returns the code.
*
* @return the code.
*/
public
int
getCode
()
{
return
code
;
}
/**
* Returns the severity of this code.
*
* @return the log level severity of the code.
*/
public
String
getLogLevel
()
{
return
logLevel
;
}
/**
* Returns the error message for this code.
*
* @return the error message for this code.
*/
public
String
getMessage
()
{
return
message
;
}
/**
* Returns a textual representation of this code.
*
* @return a textual representation.
*/
public
String
toString
()
{
return
getClass
().
getName
()
+
"[name="
+
name
+
",code="
+
code
+
",logLevel="
+
logLevel
+
",message="
+
message
+
"]"
;
}
}
corba/src/share/classes/com/sun/tools/corba/se/logutil/InputException.java
0 → 100644
浏览文件 @
716a25a2
/*
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
package
com.sun.tools.corba.se.logutil
;
import
java.util.LinkedList
;
import
java.util.Queue
;
public
class
InputException
{
/**
* The name of this exception.
*/
private
final
String
name
;
/**
* The codes associated with this exception.
*/
private
final
Queue
<
InputCode
>
codes
;
/**
* Constructs a new {@link InputException} with the
* specified name.
*
* @param name the name of the new exception;
*/
public
InputException
(
final
String
name
)
{
this
.
name
=
name
;
codes
=
new
LinkedList
<
InputCode
>();
}
/**
* Adds a new code to this exception.
*
* @param c the code to add.
*/
public
void
add
(
InputCode
c
)
{
codes
.
offer
(
c
);
}
/**
* Returns the name of this exception.
*
* @return the exception's name.
*/
public
String
getName
()
{
return
name
;
}
/**
* Returns the codes associated with this exception.
*
* @return the exception's codes.
*/
public
Queue
<
InputCode
>
getCodes
()
{
return
codes
;
}
/**
* Returns a textual representation of this exception.
*
* @return a textual representation.
*/
public
String
toString
()
{
return
getClass
().
getName
()
+
"[name="
+
name
+
",codes="
+
codes
+
"]"
;
}
}
corba/src/share/classes/com/sun/tools/corba/se/logutil/MC.java
0 → 100644
浏览文件 @
716a25a2
此差异已折叠。
点击以展开。
corba/src/share/classes/com/sun/tools/corba/se/logutil/lib/jscheme.jar
已删除
100644 → 0
浏览文件 @
78897a28
文件已删除
corba/src/share/classes/com/sun/tools/corba/se/logutil/lib/jschemelogutil.jar
已删除
100644 → 0
浏览文件 @
78897a28
文件已删除
corba/src/share/classes/com/sun/tools/corba/se/logutil/scripts/mc
已删除
100644 → 0
浏览文件 @
78897a28
#! /bin/sh
java
-cp
lib/jscheme.jar:lib/util.jar jscheme.REPL mc.scm
-main
main
$@
corba/src/share/classes/com/sun/tools/corba/se/logutil/scripts/mc.scm
已删除
100644 → 0
浏览文件 @
78897a28
此差异已折叠。
点击以展开。
corba/src/share/classes/com/sun/tools/corba/se/logutil/scripts/run
已删除
100644 → 0
浏览文件 @
78897a28
#! /bin/sh
java
-cp
${
CLASSPATH
}
:lib/jscheme.jar:lib/util.jar jscheme.REPL mc.scm
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录