code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
package seedswapapplication
/*
* ClientController is the main controller for navigating between pages in the user interface.
* Any intermediate pages that do not need access to the database are handled in ClientController
*/
class ClientController {
/*
* The login action directs to the login.gsp page for a user to log in.
*/
def login =
{
if(session.username)
{
flash.message = "You must be logged out to log in. Please log out."
redirect(url:"/")
}
}
/*
* The register action directs to the the page for a new farmer to register
*/
def register =
{
if(session.username)
{
flash.message = "You must be logged out to register. Please log out."
redirect(url:"/")
}
}
/*
* This action directs to the home page for administrators
*/
def adminPage =
{
if(!session.isAdmin)
{
flash.message = "You must be logged in as an admin to access this page."
redirect(url:"/")
}
}
/*
* This action directs to a page with a form for creating a new seed
*/
def createSeedPage =
{
if(!session.username)
{
flash.message = "You must be logged in to offer seeds. Please log in or register."
redirect(url:"/")
}
}
/*
* This action directs to a page with a form for searching for seeds by scientific name or hardiness zone
*/
def searchSeedPage = {}
/*
* This action resets all necessary session variables to ensure no one is logged in
*/
def logout =
{
session.isAdmin=false
if(session.username)
{
redirect(url:"/")
flash.message = "Goodbye ${session.username}"
session.loggedInMessage = null
session.username = null
}
else
{
flash.message = "You are not logged in."
redirect(url:"/")
}
}
}
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/controllers/seedswapapplication/ClientController.groovy | Groovy | gpl3 | 1,814 |
<!doctype html>
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
<div id="page-body">
<h1>These are the seeds that match your search for "${query}"</h1>
<g:each var="seed" in="${seedList}">
<g:link controller="seedStorage" action="displaySeed" params="[id:"${seed.id}"]"><li>${seed.commonName}</li></g:link> offered by: ${seed.farmerName}
</g:each>
</div>
</body>
</html> | 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/seedStorage/searchResults.gsp | Groovy Server Pages | gpl3 | 469 |
<!doctype html>
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
<div id="page-body">
<p>Common Name: ${seed.commonName}</p>
<p>Scientific Name: ${seed.scientificName}</p>
<p>Hardiness Zone Growing Region: ${seed.hardiness}</p>
<p>Special Requirements: ${seed.specialRequirements}</p>
<p>Growing Tips: ${seed.tips}</p>
<p>Harvesting Information: ${seed.harvesting}</p>
<p>Growing Season Available: ${seed.seasonAvailable}</p>
</div>
</body>
</html>
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/seedStorage/displaySeed.gsp | Groovy Server Pages | gpl3 | 556 |
<!doctype html>
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
<div id="page-body">
<h1>These are the seeds for ${username}</h1>
<g:each var="seed" in="${seedList}">
<g:link controller="seedStorage" action="displaySeed" params="[id:"${seed.id}"]"><li>${seed.commonName}</li></g:link>
</g:each>
</div>
</body>
</html>
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/seedStorage/viewSeeds.gsp | Groovy Server Pages | gpl3 | 418 |
<!doctype html>
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
<div id="page-body">
<h1>Select a Farmer to Unlock:</h1>
<g:each var='farmer' in="${lockedList}"><li><g:link controller="userStorage" action="unlockFarmer" params="[login:"${farmer.login}"]">${farmer.login}</g:link></li></g:each>
</div>
</body>
</html>
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/userStorage/unlockFarmerPage.gsp | Groovy Server Pages | gpl3 | 403 |
<!doctype html>
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
<div id="page-body">
${flash.message}
<h1>Welcome to the Seed Swap Application</h1>
<p>Here you can list, trade, and sell your seeds. Don't let your business go to the birds! Click the login link in the navigation bar on the left to login</p>
</div>
</body>
</html>
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/index.gsp | Groovy Server Pages | gpl3 | 410 |
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
${flash.message}
<g:form controller="seedStorage" action="searchResults" style="padding-left:200px">
<div id="page-body" style="width:220px">
<label>Search For: </label> <input type=text name="query"/>
<label>by Scientific Name</label> <input type="radio" name="scientificName"/>
<label>by Hardiness Zone</label> <input type="radio" name="hardinessZone"/>
<label></label> <input type="submit" value="Search" />
</div>
</g:form>
</body>
</html> | 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/client/searchSeedPage.gsp | Groovy Server Pages | gpl3 | 598 |
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
${flash.message}
<g:form controller="userStorage" action="authenticate" style="padding-left:200px">
<div id="page-body" style="width:220px">
<label>Name:</label> <input type="text" name="username"/>
<label>Password:</label> <input type="password" name="password"/>
<label></label> <input type="submit" value="Login" />
</div>
</g:form>
</body>
</html> | 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/client/login.gsp | Groovy Server Pages | gpl3 | 501 |
<!doctype html>
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
<div id="page-body">
<h1>Welcome Admin</h1>
</div>
</body>
</html>
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/client/adminPage.gsp | Groovy Server Pages | gpl3 | 213 |
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
${flash.message}
<g:form controller="seedStorage" action="createSeed" style="padding-left:200px">
<div id="page-body" style="width:220px">
<label>Common Name:</label> <input type=text name="commonName"/>
<label>Scientific Name:</label> <input type=text name="scientificName"/>
<label>Hardiness Zone Growing Region:</label> <input type="text" name="hardiness"/>
<label>Special Requirements:</label> <input type="text" name="specialRequirements"/>
<label>Growing Tips:</label> <input type="text" name="tips"/>
<label>Harvesting Information:</label> <input type=text name="harvesting"/>
<label>Growing Season Available:</label> <input type="text" name="seasonAvailable"/>
<label></label> <input type="submit" value="Register" />
</div>
</g:form>
</body>
</html> | 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/client/createSeedPage.gsp | Groovy Server Pages | gpl3 | 933 |
<html>
<head>
<meta name="layout" content="main"/>
<title>Seed Swap Application</title>
</head>
<body>
${flash.message}
<g:form controller="userStorage" action="createFarmer" style="padding-left:200px">
<div id="page-body" style="width:220px">
<label>Name:</label> <input type=text name="name"/>
<label>Email:</label> <input type=email name="email"/>
<label>Login Id:</label> <input type="text" name="username"/>
<label>Password:</label> <input type="password" name="password"/>
<label>Climate Zone:</label> <input type="text" name="zone"/>
<label>Address:</label> <input type=text name="address"/>
<label>Interests:</label> <input type="text" name="interests"/>
<label></label> <input type="submit" value="Register" />
</div>
</g:form>
</body>
</html> | 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/client/register.gsp | Groovy Server Pages | gpl3 | 824 |
<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><g:layoutTitle default="Grails"/></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon">
<link rel="apple-touch-icon" href="${resource(dir: 'images', file: 'apple-touch-icon.png')}">
<link rel="apple-touch-icon" sizes="114x114" href="${resource(dir: 'images', file: 'apple-touch-icon-retina.png')}">
<link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
<link rel="stylesheet" href="${resource(dir: 'css', file: 'mobile.css')}" type="text/css">
<g:layoutHead/>
<r:layoutResources />
</head>
<body>
<div id="grailsLogo" role="banner"><g:link url="/SeedSwapApplication/"><img src="${resource(dir: 'images', file: 'seed_swap_logo.png')}" alt="Grails"/></g:link>${session.loggedInMessage}</div>
<div id="navbar">
<h2>Site Navigation</h2>
<ul>
<li><g:link url="/SeedSwapApplication/">Home</g:link></li>
<g:if test="${!session.username}">
<li><g:link controller="client" action="login">Login</g:link></li>
<li><g:link controller="client" action="register">Register</g:link></li>
</g:if>
<g:elseif test="${session.isAdmin==true}">
<li><g:link controller="client" action="adminPage">Admin Page</g:link>
<li><g:link controller="userStorage" action="unlockFarmerPage">Unlock A User</g:link>
<li><g:link controller="client" action="logout">Log out</g:link></li>
</g:elseif>
<g:else>
<li><g:link controller="client" action="createSeedPage">Offer a Seed</g:link></li>
<li><g:link controller="seedStorage" action="viewSeeds">View My Seeds</g:link></li>
<li><g:link controller="client" action="searchSeedPage">Search for Seeds</g:link></li>
<li><g:link controller="client" action="logout">Log out</g:link></li>
</g:else>
</ul>
</div>
<g:layoutBody/>
<div class="footer" role="contentinfo"></div>
<div id="spinner" class="spinner" style="display:none;"><g:message code="spinner.alt" default="Loading…"/></div>
<g:javascript library="application"/>
<r:layoutResources />
</body>
</html> | 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/layouts/main.gsp | Groovy Server Pages | gpl3 | 2,711 |
<!doctype html>
<html>
<head>
<title>Grails Runtime Exception</title>
<meta name="layout" content="main">
<link rel="stylesheet" href="${resource(dir: 'css', file: 'errors.css')}" type="text/css">
</head>
<body>
<g:renderException exception="${exception}" />
</body>
</html> | 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/views/error.gsp | Groovy Server Pages | gpl3 | 286 |
package seedswapapplication
/*
* The Admin class is an information holder for all info pertaining to a single system administrator
*/
class Admin {
static constraints = {
login(unique:true)
password(password:true)
}
String login
String password
}
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/domain/seedswapapplication/Admin.groovy | Groovy | gpl3 | 269 |
package seedswapapplication
/*
* The Farmer class is an information holder for all info pertaining to a single farmer
*/
class Farmer {
static constraints = {
login(unique:true)
password(password:true)
}
String login
String password
Integer loginAttempts
String name
String email
String climateZone
String address
String interests
}
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/domain/seedswapapplication/Farmer.groovy | Groovy | gpl3 | 373 |
package seedswapapplication
/*
* The Seed class is an information holder for all info pertaining to a single kind of seed offered
*/
class Seed {
static constraints = {
}
String commonName
String scientificName
String hardiness
String specialRequirements
String tips
String harvesting
String seasonAvailable
String farmerName
}
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/grails-app/domain/seedswapapplication/Seed.groovy | Groovy | gpl3 | 357 |
if (typeof jQuery !== 'undefined') {
(function($) {
$('#spinner').ajaxStart(function() {
$(this).fadeIn();
}).ajaxStop(function() {
$(this).fadeOut();
});
})(jQuery);
}
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/web-app/js/application.js | JavaScript | gpl3 | 183 |
/* FONT STACK */
body,
input, select, textarea {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}
h1, h2, h3, h4, h5, h6 {
line-height: 1.1;
}
#navbar {
background-color: #eee;
border: .2em solid #fff;
margin: 2em 2em 1em;
padding: 1em;
width: 12em;
float: left;
-moz-box-shadow: 0px 0px 1.25em #ccc;
-webkit-box-shadow: 0px 0px 1.25em #ccc;
box-shadow: 0px 0px 1.25em #ccc;
-moz-border-radius: 0.6em;
-webkit-border-radius: 0.6em;
border-radius: 0.6em;
}
.ie6 #navbar {
display: inline; /* float double margin fix http://www.positioniseverything.net/explorer/doubled-margin.html */
}
#navbar ul {
font-size: 0.9em;
list-style-type: none;
margin-bottom: 0.6em;
padding: 0;
}
#navbar li {
line-height: 1.3;
}
#navbar h1 {
text-transform: uppercase;
font-size: 1.1em;
margin: 0 0 0.3em;
}
#page-body {
margin: 2em 1em 1.25em 18em;
}
h2 {
margin-top: 1em;
margin-bottom: 0.3em;
font-size: 1em;
}
p {
line-height: 1.5;
margin: 0.25em 0;
}
#controller-list ul {
list-style-position: inside;
}
#controller-list li {
line-height: 1.3;
list-style-position: inside;
margin: 0.25em 0;
}
@media screen and (max-width: 480px) {
#navbar {
display: none;
}
#page-body {
margin: 0 1em 1em;
}
#page-body h1 {
margin-top: 0;
}
}
/* BASE LAYOUT */
html {
background-color: #ddd;
background-image: -moz-linear-gradient(center top, #aaa, #ddd);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #aaa), color-stop(1, #ddd));
background-image: linear-gradient(top, #aaa, #ddd);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr = '#aaaaaa', EndColorStr = '#dddddd');
background-repeat: no-repeat;
height: 100%;
/* change the box model to exclude the padding from the calculation of 100% height (IE8+) */
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html.no-cssgradients {
background-color: #aaa;
}
.ie6 html {
height: 100%;
}
html * {
margin: 0;
}
body {
background: #ffffff;
color: #333333;
margin: 0 auto;
max-width: 960px;
overflow-x: hidden; /* prevents box-shadow causing a horizontal scrollbar in firefox when viewport < 960px wide */
-moz-box-shadow: 0 0 0.3em #255b17;
-webkit-box-shadow: 0 0 0.3em #255b17;
box-shadow: 0 0 0.3em #255b17;
}
#grailsLogo {
background-color: #abbf78;
}
/* replace with .no-boxshadow body if you have modernizr available */
.ie6 body,
.ie7 body,
.ie8 body {
border-color: #255b17;
border-style: solid;
border-width: 0 1px;
}
.ie6 body {
height: 100%;
}
a:link, a:visited, a:hover {
color: #48802c;
}
a:hover, a:active {
outline: none; /* prevents outline in webkit on active links but retains it for tab focus */
}
h1 {
color: #48802c;
font-weight: normal;
font-size: 1.25em;
margin: 0.8em 0 0.3em 0;
}
ul {
padding: 0;
}
img {
border: 0;
}
/* GENERAL */
#grailsLogo a {
display: inline-block;
margin: 1em;
}
.content {
}
.content h1 {
border-bottom: 1px solid #CCCCCC;
margin: 0.8em 1em 0.3em;
padding: 0 0.25em;
}
.scaffold-list h1 {
border: none;
}
.footer {
background: #abbf78;
color: #000;
clear: both;
font-size: 0.8em;
margin-top: 1.5em;
padding: 1em;
min-height: 1em;
}
.footer a {
color: #255b17;
}
.spinner {
background: url(../images/spinner.gif) 50% 50% no-repeat transparent;
height: 16px;
width: 16px;
padding: 0.5em;
position: absolute;
right: 0;
top: 0;
text-indent: -9999px;
}
/* NAVIGATION MENU */
.nav {
background-color: #efefef;
padding: 0.5em 0.75em;
-moz-box-shadow: 0 0 3px 1px #aaaaaa;
-webkit-box-shadow: 0 0 3px 1px #aaaaaa;
box-shadow: 0 0 3px 1px #aaaaaa;
zoom: 1;
}
.nav ul {
overflow: hidden;
padding-left: 0;
zoom: 1;
}
.nav li {
display: block;
float: left;
list-style-type: none;
margin-right: 0.5em;
padding: 0;
}
.nav a {
color: #666666;
display: block;
padding: 0.25em 0.7em;
text-decoration: none;
-moz-border-radius: 0.3em;
-webkit-border-radius: 0.3em;
border-radius: 0.3em;
}
.nav a:active, .nav a:visited {
color: #666666;
}
.nav a:focus, .nav a:hover {
background-color: #999999;
color: #ffffff;
outline: none;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}
.no-borderradius .nav a:focus, .no-borderradius .nav a:hover {
background-color: transparent;
color: #444444;
text-decoration: underline;
}
.nav a.home, .nav a.list, .nav a.create {
background-position: 0.7em center;
background-repeat: no-repeat;
text-indent: 25px;
}
.nav a.home {
background-image: url(../images/skin/house.png);
}
.nav a.list {
background-image: url(../images/skin/database_table.png);
}
.nav a.create {
background-image: url(../images/skin/database_add.png);
}
/* CREATE/EDIT FORMS AND SHOW PAGES */
fieldset,
.property-list {
margin: 0.6em 1.25em 0 1.25em;
padding: 0.3em 1.8em 1.25em;
position: relative;
zoom: 1;
border: none;
}
.property-list .fieldcontain {
list-style: none;
overflow: hidden;
zoom: 1;
}
.fieldcontain {
margin-top: 1em;
}
.fieldcontain label,
.fieldcontain .property-label {
color: #666666;
text-align: right;
width: 25%;
}
.fieldcontain .property-label {
float: left;
}
.fieldcontain .property-value {
display: block;
margin-left: 27%;
}
label {
cursor: pointer;
display: inline-block;
margin: 0 0.25em 0 0;
}
input, select, textarea {
background-color: #fcfcfc;
border: 1px solid #cccccc;
font-size: 1em;
padding: 0.2em 0.4em;
}
select {
padding: 0.2em 0.2em 0.2em 0;
}
select[multiple] {
vertical-align: top;
}
textarea {
width: 250px;
height: 150px;
overflow: auto; /* IE always renders vertical scrollbar without this */
vertical-align: top;
}
input[type=checkbox], input[type=radio] {
background-color: transparent;
border: 0;
padding: 0;
}
input:focus, select:focus, textarea:focus {
background-color: #ffffff;
border: 1px solid #eeeeee;
outline: 0;
-moz-box-shadow: 0 0 0.5em #ffffff;
-webkit-box-shadow: 0 0 0.5em #ffffff;
box-shadow: 0 0 0.5em #ffffff;
}
.required-indicator {
color: #48802C;
display: inline-block;
font-weight: bold;
margin-left: 0.3em;
position: relative;
top: 0.1em;
}
ul.one-to-many {
display: inline-block;
list-style-position: inside;
vertical-align: top;
}
.ie6 ul.one-to-many, .ie7 ul.one-to-many {
display: inline;
zoom: 1;
}
ul.one-to-many li.add {
list-style-type: none;
}
/* EMBEDDED PROPERTIES */
fieldset.embedded {
background-color: transparent;
border: 1px solid #CCCCCC;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
fieldset.embedded legend {
margin: 0 1em;
}
/* MESSAGES AND ERRORS */
.errors,
.message {
font-size: 0.8em;
line-height: 2;
margin: 1em 2em;
padding: 0.25em;
}
.message {
background: #f3f3ff;
border: 1px solid #b2d1ff;
color: #006dba;
-moz-box-shadow: 0 0 0.25em #b2d1ff;
-webkit-box-shadow: 0 0 0.25em #b2d1ff;
box-shadow: 0 0 0.25em #b2d1ff;
}
.errors {
background: #fff3f3;
border: 1px solid #ffaaaa;
color: #cc0000;
-moz-box-shadow: 0 0 0.25em #ff8888;
-webkit-box-shadow: 0 0 0.25em #ff8888;
box-shadow: 0 0 0.25em #ff8888;
}
.errors ul,
.message {
padding: 0;
}
.errors li {
list-style: none;
background: transparent url(../images/skin/exclamation.png) 0.5em 50% no-repeat;
text-indent: 2.2em;
}
.message {
background: transparent url(../images/skin/information.png) 0.5em 50% no-repeat;
text-indent: 2.2em;
}
/* form fields with errors */
.error input, .error select, .error textarea {
background: #fff3f3;
border-color: #ffaaaa;
color: #cc0000;
}
.error input:focus, .error select:focus, .error textarea:focus {
-moz-box-shadow: 0 0 0.5em #ffaaaa;
-webkit-box-shadow: 0 0 0.5em #ffaaaa;
box-shadow: 0 0 0.5em #ffaaaa;
}
/* same effects for browsers that support HTML5 client-side validation (these have to be specified separately or IE will ignore the entire rule) */
input:invalid, select:invalid, textarea:invalid {
background: #fff3f3;
border-color: #ffaaaa;
color: #cc0000;
}
input:invalid:focus, select:invalid:focus, textarea:invalid:focus {
-moz-box-shadow: 0 0 0.5em #ffaaaa;
-webkit-box-shadow: 0 0 0.5em #ffaaaa;
box-shadow: 0 0 0.5em #ffaaaa;
}
/* TABLES */
table {
border-top: 1px solid #DFDFDF;
border-collapse: collapse;
width: 100%;
margin-bottom: 1em;
}
tr {
border: 0;
}
tr>td:first-child, tr>th:first-child {
padding-left: 1.25em;
}
tr>td:last-child, tr>th:last-child {
padding-right: 1.25em;
}
td, th {
line-height: 1.5em;
padding: 0.5em 0.6em;
text-align: left;
vertical-align: top;
}
th {
background-color: #efefef;
background-image: -moz-linear-gradient(top, #ffffff, #eaeaea);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ffffff), color-stop(1, #eaeaea));
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr = '#ffffff', EndColorStr = '#eaeaea');
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#eaeaea')";
color: #666666;
font-weight: bold;
line-height: 1.7em;
padding: 0.2em 0.6em;
}
thead th {
white-space: nowrap;
}
th a {
display: block;
text-decoration: none;
}
th a:link, th a:visited {
color: #666666;
}
th a:hover, th a:focus {
color: #333333;
}
th.sortable a {
background-position: right;
background-repeat: no-repeat;
padding-right: 1.1em;
}
th.asc a {
background-image: url(../images/skin/sorted_asc.gif);
}
th.desc a {
background-image: url(../images/skin/sorted_desc.gif);
}
.odd {
background: #f7f7f7;
}
.even {
background: #ffffff;
}
th:hover, tr:hover {
background: #E1F2B6;
}
/* PAGINATION */
.pagination {
border-top: 0;
margin: 0;
padding: 0.3em 0.2em;
text-align: center;
-moz-box-shadow: 0 0 3px 1px #AAAAAA;
-webkit-box-shadow: 0 0 3px 1px #AAAAAA;
box-shadow: 0 0 3px 1px #AAAAAA;
background-color: #EFEFEF;
}
.pagination a,
.pagination .currentStep {
color: #666666;
display: inline-block;
margin: 0 0.1em;
padding: 0.25em 0.7em;
text-decoration: none;
-moz-border-radius: 0.3em;
-webkit-border-radius: 0.3em;
border-radius: 0.3em;
}
.pagination a:hover, .pagination a:focus,
.pagination .currentStep {
background-color: #999999;
color: #ffffff;
outline: none;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}
.no-borderradius .pagination a:hover, .no-borderradius .pagination a:focus,
.no-borderradius .pagination .currentStep {
background-color: transparent;
color: #444444;
text-decoration: underline;
}
/* ACTION BUTTONS */
.buttons {
background-color: #efefef;
overflow: hidden;
padding: 0.3em;
-moz-box-shadow: 0 0 3px 1px #aaaaaa;
-webkit-box-shadow: 0 0 3px 1px #aaaaaa;
box-shadow: 0 0 3px 1px #aaaaaa;
margin: 0.1em 0 0 0;
border: none;
}
.buttons input,
.buttons a {
background-color: transparent;
border: 0;
color: #666666;
cursor: pointer;
display: inline-block;
margin: 0 0.25em 0;
overflow: visible;
padding: 0.25em 0.7em;
text-decoration: none;
-moz-border-radius: 0.3em;
-webkit-border-radius: 0.3em;
border-radius: 0.3em;
}
.buttons input:hover, .buttons input:focus,
.buttons a:hover, .buttons a:focus {
background-color: #999999;
color: #ffffff;
outline: none;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.no-borderradius .buttons input:hover, .no-borderradius .buttons input:focus,
.no-borderradius .buttons a:hover, .no-borderradius .buttons a:focus {
background-color: transparent;
color: #444444;
text-decoration: underline;
}
.buttons .delete, .buttons .edit, .buttons .save {
background-position: 0.7em center;
background-repeat: no-repeat;
text-indent: 25px;
}
.buttons .delete {
background-image: url(../images/skin/database_delete.png);
}
.buttons .edit {
background-image: url(../images/skin/database_edit.png);
}
.buttons .save {
background-image: url(../images/skin/database_save.png);
}
a.skip {
position: absolute;
left: -9999px;
}
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/web-app/css/main.css | CSS | gpl3 | 12,187 |
/* Styles for mobile devices */
@media screen and (max-width: 480px) {
.nav {
padding: 0.5em;
}
.nav li {
margin: 0 0.5em 0 0;
padding: 0.25em;
}
/* Hide individual steps in pagination, just have next & previous */
.pagination .step, .pagination .currentStep {
display: none;
}
.pagination .prevLink {
float: left;
}
.pagination .nextLink {
float: right;
}
/* pagination needs to wrap around floated buttons */
.pagination {
overflow: hidden;
}
/* slightly smaller margin around content body */
fieldset,
.property-list {
padding: 0.3em 1em 1em;
}
input, textarea {
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
select, input[type=checkbox], input[type=radio], input[type=submit], input[type=button], input[type=reset] {
width: auto;
}
/* hide all but the first column of list tables */
.scaffold-list td:not(:first-child),
.scaffold-list th:not(:first-child) {
display: none;
}
.scaffold-list thead th {
text-align: center;
}
/* stack form elements */
.fieldcontain {
margin-top: 0.6em;
}
.fieldcontain label,
.fieldcontain .property-label,
.fieldcontain .property-value {
display: block;
float: none;
margin: 0 0 0.25em 0;
text-align: left;
width: auto;
}
.errors ul,
.message p {
margin: 0.5em;
}
.error ul {
margin-left: 0;
}
}
| 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/web-app/css/mobile.css | CSS | gpl3 | 1,432 |
h1, h2 {
margin: 10px 25px 5px;
}
h2 {
font-size: 1.1em;
}
.filename {
font-style: italic;
}
.exceptionMessage {
margin: 10px;
border: 1px solid #000;
padding: 5px;
background-color: #E9E9E9;
}
.stack,
.snippet {
margin: 0 25px 10px;
}
.stack,
.snippet {
border: 1px solid #ccc;
-mox-box-shadow: 0 0 2px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
box-shadow: 0 0 2px rgba(0,0,0,0.2);
}
/* error details */
.error-details {
border-top: 1px solid #FFAAAA;
-mox-box-shadow: 0 0 2px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
box-shadow: 0 0 2px rgba(0,0,0,0.2);
border-bottom: 1px solid #FFAAAA;
-mox-box-shadow: 0 0 2px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2);
box-shadow: 0 0 2px rgba(0,0,0,0.2);
background-color:#FFF3F3;
line-height: 1.5;
overflow: hidden;
padding: 5px;
padding-left:25px;
}
.error-details dt {
clear: left;
float: left;
font-weight: bold;
margin-right: 5px;
}
.error-details dt:after {
content: ":";
}
.error-details dd {
display: block;
}
/* stack trace */
.stack {
padding: 5px;
overflow: auto;
height: 150px;
}
/* code snippet */
.snippet {
background-color: #fff;
font-family: monospace;
}
.snippet .line {
display: block;
}
.snippet .lineNumber {
background-color: #ddd;
color: #999;
display: inline-block;
margin-right: 5px;
padding: 0 3px;
text-align: right;
width: 3em;
}
.snippet .error {
background-color: #fff3f3;
font-weight: bold;
}
.snippet .error .lineNumber {
background-color: #faa;
color: #333;
font-weight: bold;
}
.snippet .line:first-child .lineNumber {
padding-top: 5px;
}
.snippet .line:last-child .lineNumber {
padding-bottom: 5px;
} | 00agents-cs2340-seedswap-project | trunk/SeedSwapApplication/web-app/css/errors.css | CSS | gpl3 | 1,736 |
package com.syh.appshare.modules.history;
import android.app.Activity;
public class ShareHistoryActivity extends Activity{
}
| 101app | trunk/101app/src/com/syh/appshare/modules/history/ShareHistoryActivity.java | Java | asf20 | 135 |
package com.syh.appshare.modules.share;
import com.syh.appshare.R;
import android.app.Activity;
import android.os.Bundle;
public class ShareDetailActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.act_share_detail);
}
}
| 101app | trunk/101app/src/com/syh/appshare/modules/share/ShareDetailActivity.java | Java | asf20 | 350 |
package com.syh.appshare.modules.share;
import android.app.Activity;
public class ShareActivity extends Activity {
}
| 101app | trunk/101app/src/com/syh/appshare/modules/share/ShareActivity.java | Java | asf20 | 127 |
package com.syh.appshare.modules.search;
import android.app.Activity;
public class SearchActivity extends Activity {
}
| 101app | trunk/101app/src/com/syh/appshare/modules/search/SearchActivity.java | Java | asf20 | 129 |
package com.syh.appshare.modules.news;
import android.app.Activity;
public class NewsActivity extends Activity {
}
| 101app | trunk/101app/src/com/syh/appshare/modules/news/NewsActivity.java | Java | asf20 | 125 |
package com.syh.appshare.services;
import java.util.List;
import com.syh.appshare.Constants;
import com.syh.appshare.Memory;
import com.syh.appshare.common.utils.LogUtil;
import com.syh.appshare.common.utils.Utils;
import com.syh.appshare.objects.InstalledApkInfo;
import android.app.ActivityManager;
import android.app.Service;
import android.app.ActivityManager.RunningTaskInfo;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
/**
* 检测当前程序的后台服务
* @author shenyh
*
*/
public class ShareServices extends Service {
private final String tag="service";
private final int MAX_TASK=1,NOTIFY=2;
private ActivityManager activityManager;
/**
* 正在运行的程序
*/
private List<RunningTaskInfo> runningTasks;
/**
* 上一个应用程序包名
*/
private String lastPackageName=null;
private Handler handler=new Handler(){
@Override
public void handleMessage(Message msg) {
switch(msg.what){
case NOTIFY:{
String packageName=msg.getData().getString(Constants.PACKAGE_NAME_TAG);
String className=msg.getData().getString(Constants.CLASS_NAME_TAG);
Utils.notifyShare(getApplicationContext(), packageName, className);
break;
}
}
}
};
@Override
public IBinder onBind(Intent arg0) {
// TODO Auto-generated method stub
return null;
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
activityManager=(ActivityManager) getSystemService(ACTIVITY_SERVICE);
new Thread(){
@Override
public void run() {
try {
while(true){
LogUtil.debug(tag, "ShareServices is running. lastPackageName:"+lastPackageName);
//检测栈
// 获取当前正在运行的任务
runningTasks = activityManager.getRunningTasks(MAX_TASK);
if(runningTasks!=null){
String packageName=runningTasks.get(0).baseActivity.getPackageName();
if(isWhiteList(packageName)){
String className=runningTasks.get(0).baseActivity.getClassName();
if(!packageName.equals(lastPackageName)){
lastPackageName=packageName;
Message msg=new Message();
msg.what=NOTIFY;
Bundle data=new Bundle();
data.putString(Constants.PACKAGE_NAME_TAG, packageName);
data.putString(Constants.CLASS_NAME_TAG, className);
msg.setData(data);
handler.sendMessage(msg);
}
}
}
Thread.sleep(1000);
}
} catch (InterruptedException e) {
LogUtil.error(tag, "check app InterruptedException e:"+e.toString());
e.printStackTrace();
} catch (Exception e) {
LogUtil.error(tag, "check app Exception e:"+e.toString());
e.printStackTrace();
}
}
}.start();
return super.onStartCommand(intent, flags, startId);
}
/**
* 包名是否在白名单中(白名单为非系统应用)
* @param packageName
* @return
*/
private boolean isWhiteList(String packageName){
List<InstalledApkInfo> installedApkList=Memory.getInstance(ShareServices.this).getInstalledApkList();
for(int i=0;i<installedApkList.size();i++){
if(installedApkList.get(i).packageName.equals(packageName)){
return true;
}
}
return false;
}
}
| 101app | trunk/101app/src/com/syh/appshare/services/ShareServices.java | Java | asf20 | 3,422 |
package com.syh.appshare;
import java.util.List;
import android.content.Context;
import com.syh.appshare.common.utils.Utils;
import com.syh.appshare.objects.InstalledApkInfo;
public class Memory {
private static Memory INSTANCE = null;
private static Context context;
private Memory() {
}
public static synchronized Memory getInstance(Context c) {
if (INSTANCE == null) {
INSTANCE = new Memory();
}
context=c;
return INSTANCE;
}
private List<InstalledApkInfo> installedApkList=null;
public List<InstalledApkInfo> getInstalledApkList(){
if(installedApkList==null){
installedApkList=Utils.getInstalledApkList(context);
}
return installedApkList;
}
}
| 101app | trunk/101app/src/com/syh/appshare/Memory.java | Java | asf20 | 720 |
package com.syh.appshare;
public class Constants {
public final static int LogError=4,LogDebug=3,LogInfo=2;
public final static int LogLevel=LogDebug;
public final static int SHARE_NOTIFY_TAG=1;
public final static String PACKAGE_NAME_TAG="PACKAGE_NAME_TAG";
public final static String CLASS_NAME_TAG="CLASS_NAME_TAG";
}
| 101app | trunk/101app/src/com/syh/appshare/Constants.java | Java | asf20 | 344 |
package com.syh.appshare.objects;
import java.io.Serializable;
/**
* 分享的应用对象
* @author shenyh
*
*/
public class APP implements Serializable{
private static final long serialVersionUID = -2372314353808592795L;
//必要属性
/**
* 包名
*/
public String packageName;
/**
* versionCode
*/
public String versionCode;
/**
* versionName
*/
public String versionName;
//其他属性
/**
* 图标Url
*/
public String iconUrl;
/**
* 分类
*/
public String type;
/**
* 分享次数
*/
public String shareCount;
/**
* 分享理由
*/
public String shareReason;
/**
* 是否已安装,默认为false
*/
public boolean hasInstalled=false;
/**
* 分享的时间
*/
public long shareTime;
}
| 101app | trunk/101app/src/com/syh/appshare/objects/APP.java | Java | asf20 | 816 |
package com.syh.appshare.objects;
import java.io.Serializable;
import android.graphics.drawable.Drawable;
/**
* @作者:沈扬红
* @日期:2011-4-15
* @描述:封装已安装软件数据
*/
public class InstalledApkInfo implements Serializable {
public static final long serialVersionUID = 1L;
public Drawable apk_icon;//程序图标
public String apk_name;//程序名称
public String apk_version;//程序版本
public String packageName;//程序包名称
public boolean needUpdate;//是否需要更新
public String version_code;//版本code
public String className;//main activity class
public InstalledApkInfo(Drawable apk_icon,String apk_name, String apk_version, String packageName) {
this.apk_icon = apk_icon;
this.apk_name = apk_name;
this.apk_version = apk_version;
this.packageName = packageName;
}
public InstalledApkInfo(Drawable apk_icon,String apk_name, String apk_version, String packageName, boolean needUpdate,String apk_version_code,String className) {
this.apk_icon = apk_icon;
this.apk_name = apk_name;
this.apk_version = apk_version;
this.packageName = packageName;
this.needUpdate = needUpdate;
this.version_code=apk_version_code;
this.className=className;
}
}
| 101app | trunk/101app/src/com/syh/appshare/objects/InstalledApkInfo.java | Java | asf20 | 1,307 |
package com.syh.appshare;
import java.util.ArrayList;
import java.util.List;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.TabHost;
import com.syh.appshare.common.utils.LogUtil;
import com.syh.appshare.modules.news.NewsActivity;
import com.syh.appshare.services.ShareServices;
public class MainActivity extends TabActivity {
public final String tag="main";
public static MainActivity instance;
public TabHost tabHost;
/**
* 保存tabActivity中activity标签
*/
private List<String> tabList=new ArrayList<String>();
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initActivity();
}
private void initActivity(){
//启动服务
startService(new Intent(this,ShareServices.class));
instance=MainActivity.this;
tabHost=getTabHost();
Intent intent=new Intent(MainActivity.this,NewsActivity.class);
setCrurentTab("SourceCatalog", intent);
try {
//隐藏标签栏
getTabWidget().setVisibility(View.GONE);
} catch (Exception e) {
e.printStackTrace();
}
}
public void setCrurentTab(String tabSpec,Intent intent){
if(!tabList.contains(tabSpec)){
tabHost.addTab(tabHost.newTabSpec(tabSpec)
.setIndicator(tabSpec, getResources().getDrawable(R.drawable.icon))
.setContent(intent));
tabList.add(tabSpec);
}
tabHost.setCurrentTabByTag(tabSpec);
}
@Override
protected void onDestroy() {
super.onDestroy();
instance=null;
}
/**
* 返回当前tab标签的前一个标签
* @return @return true:返回成功 false:返回失败
* @author wangweiwei
* 2012-3-15
*/
public boolean backPrevTab() {
if(tabList.size()>1) {
tabList.remove(tabList.size()-1);
tabHost.setCurrentTabByTag(tabList.get(tabList.size()-1));
return true;
}
return false;
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
LogUtil.debug(tag, "MainActivity onKeyDown.");
return super.onKeyDown(keyCode, event);
}
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
LogUtil.debug(tag, "MainActivity onKeyUp.");
if(keyCode==KeyEvent.KEYCODE_BACK ){
if(goBack()){
LogUtil.debug(tag, "goBack is true");
return true;
}else{
LogUtil.debug(tag, "goBack is false");
finish();
}
return true;
}
return super.onKeyUp(keyCode, event);
}
/**
* 是否消耗掉返回事件
* @return
*/
private boolean goBack(){
return backPrevTab();
}
} | 101app | trunk/101app/src/com/syh/appshare/MainActivity.java | Java | asf20 | 2,684 |
package com.syh.appshare.common.utils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import com.syh.appshare.Constants;
import com.syh.appshare.R;
import com.syh.appshare.objects.InstalledApkInfo;
public class Utils {
private final static String tag="util";
/**
*
* @param context
* @param packageName
* @param className
*/
public static void notifyShare(Context context, String packageName,String className) {
try {
LogUtil.debug(tag, "notifyShare packageName:" + packageName+"className:"+className);
NotificationManager nfm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
String appName=getAppName(context,packageName);
String hint = context.getString(R.string.share_hint).replace("**", appName);
String title = hint;
String content=appName+" 版本号:"+getVersionName(context,packageName);
Notification notification = new Notification(R.drawable.icon_small, hint,System.currentTimeMillis());
notification.flags = Notification.FLAG_AUTO_CANCEL;// 点击自动清除通知
Intent openintent = new Intent();
openintent.setClassName(context.getPackageName(), "com.syh.appshare.modules.share.ShareDetailActivity");
Bundle data = new Bundle();
data.putString(Constants.PACKAGE_NAME_TAG, packageName);
data.putString(Constants.CLASS_NAME_TAG, className);
openintent.putExtras(data);
PendingIntent contentIntent = PendingIntent.getActivity(context,Constants.SHARE_NOTIFY_TAG, openintent, 0);
notification.setLatestEventInfo(context, title, content, contentIntent);
nfm.notify(Constants.SHARE_NOTIFY_TAG, notification);
} catch (Exception e) {
e.printStackTrace();
LogUtil.error(tag, "notifyShare e:" + e.toString());
}
}
/**
* 获取应用名称
* @param context
* @param packageName
* @return
*/
public static String getAppName(Context context,String packageName){
try {
return context.getPackageManager().getPackageInfo(packageName, 0).applicationInfo.loadLabel(context.getPackageManager()).toString();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
/**
* 获取VersionName
* @param context
* @param packageName
* @return
*/
public static String getVersionName(Context context,String packageName){
try {
return context.getPackageManager().getPackageInfo(packageName, 0).versionName;
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
/**
* 获取已安装APK列表
* @param context
* @return
*/
public static List<InstalledApkInfo> getInstalledApkList(Context context){
LinkedList<InstalledApkInfo> installedApkList = new LinkedList<InstalledApkInfo>();
PackageManager pManager = context.getPackageManager();
List<PackageInfo> appList = getAllInstalledApplications(context);
Drawable apk_icon;
String apk_ame;
String apk_version;
String packageName;
String apk_version_code;// syh 2011-06-29
boolean needUpdate;
List<ResolveInfo> infoList = getLocalApps(context); // syh
Map<String, String> infoMap = new HashMap<String, String>();
for (int i = 0; i < infoList.size(); i++) {
infoMap.put(infoList.get(i).activityInfo.packageName, infoList
.get(i).activityInfo.name);
}
for (int i = 0; i < appList.size(); i++) {
PackageInfo pinfo = appList.get(i);
apk_icon = pManager.getApplicationIcon(pinfo.applicationInfo);
apk_ame = pManager.getApplicationLabel(pinfo.applicationInfo).toString();
apk_version = pinfo.versionName;
packageName = pinfo.applicationInfo.packageName;
apk_version_code = pinfo.versionCode + "";
String className = infoMap.get(packageName);
needUpdate = false;
installedApkList.add(new InstalledApkInfo(apk_icon,apk_ame,
apk_version, packageName, needUpdate, apk_version_code,
className));
}
return installedApkList;
}
/**
* 获取已安装apk包信息
* @param context
* @return
*/
private static List<PackageInfo> getAllInstalledApplications(Context context) {
List<PackageInfo> apps = new ArrayList<PackageInfo>();
PackageManager pm = context.getPackageManager();
// 获取手机内所有应用
List<PackageInfo> packageInfoList = pm.getInstalledPackages(0);
for (int i = 0; i < packageInfoList.size(); i++) {
PackageInfo packageInfo = (PackageInfo) packageInfoList.get(i);
// 判断是否为非系统预装的应用程序
if ((packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) <= 0) {
// 去除非本资源包的安装包
if (!packageInfo.packageName.equalsIgnoreCase(context
.getPackageName())) {
apps.add(packageInfo);
}
}
}
return apps;
}
/**
* 获取已安装系统启动信息
* @param context
* @return
*/
private static List<ResolveInfo> getLocalApps(Context context) {
List<ResolveInfo> mApps = new LinkedList<ResolveInfo>();
Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
mApps = context.getPackageManager().queryIntentActivities(intent, 0);
return mApps;
}
}
| 101app | trunk/101app/src/com/syh/appshare/common/utils/Utils.java | Java | asf20 | 5,702 |
package com.syh.appshare.common.utils;
import android.util.Log;
import com.syh.appshare.Constants;
public class LogUtil {
public static void error(String tag,String msg){
if(Constants.LogLevel<=Constants.LogError){
Log.e(tag, msg);
}
}
public static void debug(String tag,String msg){
if(Constants.LogLevel<=Constants.LogDebug){
Log.d(tag, msg);
}
}
public static void info(String tag,String msg){
if(Constants.LogLevel<=Constants.LogInfo){
Log.i(tag, msg);
}
}
}
| 101app | trunk/101app/src/com/syh/appshare/common/utils/LogUtil.java | Java | asf20 | 525 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.log4j.net;
import java.net.Socket;
import java.net.ServerSocket;
import java.io.IOException;
import org.apache.log4j.Logger;
import org.apache.log4j.LogManager;
import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.MDC;
import org.apache.log4j.helpers.LogLog;
import org.apache.log4j.net.SocketNode;
import org.apache.log4j.net.SocketServer;
/**
* This SocketServer exits after certain number of connections from a
* client. This number is determined the totalsTest parameter, that is
* the first argument on the commmand line. The second argument,
* prefix, determines the prefix of the configuration file to
* use. Each run of the server will use a different properties
* file. For the i-th run, the path to the file is
* (prefix+i+".properties").
*
* @author Ceki Gulcu */
public class ShortSocketServer {
static Logger cat = Logger.getLogger(ShortSocketServer.class);
public
static
void main(String args[]) throws Exception {
int totalTests = 0;
String prefix = null;
if(args.length == 2) {
totalTests = Integer.parseInt(args[0]);
prefix = args[1];
} else {
usage("Wrong number of arguments.");
}
int port = Integer.valueOf(System.getProperty("port", "12345"));
LogLog.debug("Listening on port " + port);
ServerSocket serverSocket = new ServerSocket(port);
MDC.put("hostID", "shortSocketServer");
for(int i = 1; i <= totalTests; i++) {
PropertyConfigurator.configure(prefix+i+".properties");
LogLog.debug("Waiting to accept a new client.");
Socket socket = serverSocket.accept();
LogLog.debug("Connected to client at " + socket.getInetAddress());
LogLog.debug("Starting new socket node.");
SocketNode sn = new SocketNode(socket, LogManager.getLoggerRepository());
Thread t = new Thread(sn);
t.start();
t.join();
}
}
static
void usage(String msg) {
System.err.println(msg);
System.err.println(
"Usage: java " +ShortSocketServer.class.getName() + " totalTests configFilePrefix");
System.exit(1);
}
}
| 001-log4cxx | trunk/src/test/java/org/apache/log4j/net/ShortSocketServer.java | Java | asf20 | 2,899 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
EXTRA_DIST = *.xml *.properties
# if we are building in a separate build tree, then copy all necessary files
all-local:
@if test "$(top_srcdir)" != "$(top_builddir)"; then \
echo "Copying test suite data files ..." ; \
list='$(EXTRA_DIST)'; for file in $$list; do \
cp -p $(srcdir)/$$file . ; \
done \
fi
| 001-log4cxx | trunk/src/test/resources/input/rolling/Makefile.am | Makefile | asf20 | 1,106 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
EXTRA_DIST = log4j.dtd *.xml
# if we are building in a separate build tree, then copy all necessary files
all-local:
@if test "$(top_srcdir)" != "$(top_builddir)"; then \
echo "Copying test suite data files ..." ; \
list='$(EXTRA_DIST)'; for file in $$list; do \
cp -p $(srcdir)/$$file . ; \
done \
fi
| 001-log4cxx | trunk/src/test/resources/input/xml/Makefile.am | Makefile | asf20 | 1,103 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
SUBDIRS = ndc xml rolling
EXTRA_DIST = *.properties
# if we are building in a separate build tree, then copy all necessary files
all-local:
@if test "$(top_srcdir)" != "$(top_builddir)"; then \
echo "Copying test suite data files ..." ; \
list='$(EXTRA_DIST)'; for file in $$list; do \
cp -p $(srcdir)/$$file . ; \
done \
fi
| 001-log4cxx | trunk/src/test/resources/input/Makefile.am | Makefile | asf20 | 1,126 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
EXTRA_DIST = *.properties
# if we are building in a separate build tree, then copy all necessary files
all-local:
@if test "$(top_srcdir)" != "$(top_builddir)"; then \
echo "Copying test suite data files ..." ; \
list='$(EXTRA_DIST)'; for file in $$list; do \
cp -p $(srcdir)/$$file . ; \
done \
fi
| 001-log4cxx | trunk/src/test/resources/input/ndc/Makefile.am | Makefile | asf20 | 1,100 |
TRACE some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 1
TRACE some5 T5 MDC-TEST5 [main] root - Message 2
DEBUG some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 3
DEBUG some5 T5 MDC-TEST5 [main] root - Message 4
INFO some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 5
WARN some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 6
FATAL some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 7
DEBUG some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 8
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test5(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
ERROR some5 T5 MDC-TEST5 [main] root - Message 9
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test5(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
| 001-log4cxx | trunk/src/test/resources/witness/socketServer.5 | Roff | asf20 | 1,857 |
FATAL HierarchyThresholdTestCase = m5
| 001-log4cxx | trunk/src/test/resources/witness/hierarchyThreshold.2 | Roff Manpage | asf20 | 38 |
[main] DEBUG atternLayoutTest : Message 0
[main] DEBUG root : Message 0
[main] INFO atternLayoutTest : Message 1
[main] INFO root : Message 1
[main] WARN atternLayoutTest : Message 2
[main] WARN root : Message 2
[main] ERROR atternLayoutTest : Message 3
[main] ERROR root : Message 3
[main] FATAL atternLayoutTest : Message 4
[main] FATAL root : Message 4 | 001-log4cxx | trunk/src/test/resources/witness/patternLayout.9 | Roff | asf20 | 359 |
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Hello]]></log4j:message>
<log4j:properties>
<log4j:data name="key1" value="val1"/>
<log4j:data name="key2" value="val2"/>
</log4j:properties>
</log4j:event>
| 001-log4cxx | trunk/src/test/resources/witness/xmlLayout.mdc.1 | Roff Manpage | asf20 | 288 |
TRACE HierarchyThresholdTestCase = m0
DEBUG HierarchyThresholdTestCase = m1
INFO HierarchyThresholdTestCase = m2
WARN HierarchyThresholdTestCase = m3
ERROR HierarchyThresholdTestCase = m4
FATAL HierarchyThresholdTestCase = m5
| 001-log4cxx | trunk/src/test/resources/witness/hierarchyThreshold.7 | Roff Manpage | asf20 | 226 |
[main] DEBUG org.apache.log4j.xml.DOMTestCase - Message 0
[main] DEBUG root - Message 0
[main] INFO org.apache.log4j.xml.DOMTestCase - Message 1
[main] INFO root - Message 1
[main] WARN org.apache.log4j.xml.DOMTestCase - Message 2
[main] WARN root - Message 2
[main] ERROR org.apache.log4j.xml.DOMTestCase - Message 3
[main] ERROR root - Message 3
[main] FATAL org.apache.log4j.xml.DOMTestCase - Message 4
[main] FATAL root - Message 4
| 001-log4cxx | trunk/src/test/resources/witness/dom.A2.2 | Roff | asf20 | 446 |
DEBUG xml.DOMTestCase - Message 0
DEBUG xml.DOMTestCase - Message 0
DEBUG root - Message 0
INFO xml.DOMTestCase - Message 1
INFO xml.DOMTestCase - Message 1
INFO root - Message 1
WARN xml.DOMTestCase - Message 2
WARN xml.DOMTestCase - Message 2
WARN root - Message 2
ERROR xml.DOMTestCase - Message 3
ERROR xml.DOMTestCase - Message 3
ERROR root - Message 3
FATAL xml.DOMTestCase - Message 4
FATAL xml.DOMTestCase - Message 4
FATAL root - Message 4
| 001-log4cxx | trunk/src/test/resources/witness/dom.A1.2 | Roff | asf20 | 455 |
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase$X" timestamp="XXX" level="INFO" thread="main">
<log4j:message><![CDATA[in X() constructor]]></log4j:message>
<log4j:locationInfo class="X" method="X" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="TRACE" thread="main">
<log4j:message><![CDATA[Message 0]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="TRACE" thread="main">
<log4j:message><![CDATA[Message 0]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Message 1]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Message 1]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="INFO" thread="main">
<log4j:message><![CDATA[Message 2]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="INFO" thread="main">
<log4j:message><![CDATA[Message 2]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="WARN" thread="main">
<log4j:message><![CDATA[Message 3]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="WARN" thread="main">
<log4j:message><![CDATA[Message 3]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="ERROR" thread="main">
<log4j:message><![CDATA[Message 4]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="ERROR" thread="main">
<log4j:message><![CDATA[Message 4]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="FATAL" thread="main">
<log4j:message><![CDATA[Message 5]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="FATAL" thread="main">
<log4j:message><![CDATA[Message 5]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Message 6]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Message 6]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="ERROR" thread="main">
<log4j:message><![CDATA[Message 7]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="ERROR" thread="main">
<log4j:message><![CDATA[Message 7]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="common" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
| 001-log4cxx | trunk/src/test/resources/witness/xmlLayout.2 | Roff Manpage | asf20 | 4,439 |
[main] DEBUG atternLayoutTest - Message 0
[main] DEBUG root - Message 0
[main] INFO atternLayoutTest - Message 1
[main] INFO root - Message 1
[main] WARN atternLayoutTest - Message 2
[main] WARN root - Message 2
[main] ERROR atternLayoutTest - Message 3
[main] ERROR root - Message 3
[main] FATAL atternLayoutTest - Message 4
[main] FATAL root - Message 4 | 001-log4cxx | trunk/src/test/resources/witness/patternLayout.6 | Roff | asf20 | 369 |
DEBUG xml.CustomLevelTestCase - Message 1
INFO xml.CustomLevelTestCase - Message 2
WARN xml.CustomLevelTestCase - Message 3
ERROR xml.CustomLevelTestCase - Message 4
TRACE xml.CustomLevelTestCase - Message 5
| 001-log4cxx | trunk/src/test/resources/witness/customLevel.1 | Roff Manpage | asf20 | 210 |
[main] DEBUG atternLayoutTest - Message 0
[main] DEBUG root - Message 0
[main] INFO atternLayoutTest - Message 1
[main] INFO root - Message 1
[main] WARN atternLayoutTest - Message 2
[main] WARN root - Message 2
[main] ERROR atternLayoutTest - Message 3
[main] ERROR root - Message 3
[main] FATAL atternLayoutTest - Message 4
[main] FATAL root - Message 4 | 001-log4cxx | trunk/src/test/resources/witness/patternLayout.7 | Roff | asf20 | 369 |
[main] DEBUG atternLayoutTest - Message 0
[main] DEBUG root - Message 0
[main] INFO atternLayoutTest - Message 1
[main] INFO root - Message 1
[main] WARN atternLayoutTest - Message 2
[main] WARN root - Message 2
[main] ERROR atternLayoutTest - Message 3
[main] ERROR root - Message 3
[main] FATAL atternLayoutTest - Message 4
[main] FATAL root - Message 4 | 001-log4cxx | trunk/src/test/resources/witness/patternLayout.8 | Roff | asf20 | 359 |
[main] DEBUG org.apache.log4j.xml.DOMTestCase - Message 0
[main] DEBUG root - Message 0
[main] INFO org.apache.log4j.xml.DOMTestCase - Message 1
[main] INFO root - Message 1
[main] WARN org.apache.log4j.xml.DOMTestCase - Message 2
[main] WARN root - Message 2
[main] ERROR org.apache.log4j.xml.DOMTestCase - Message 3
[main] ERROR root - Message 3
[main] FATAL org.apache.log4j.xml.DOMTestCase - Message 4
[main] FATAL root - Message 4
| 001-log4cxx | trunk/src/test/resources/witness/dom.A2.1 | Roff | asf20 | 446 |
TRACE customLogger.XLoggerTestCase - Message 0
DEBUG customLogger.XLoggerTestCase - Message 1
WARN customLogger.XLoggerTestCase - Message 2
ERROR customLogger.XLoggerTestCase - Message 3
FATAL customLogger.XLoggerTestCase - Message 4
DEBUG customLogger.XLoggerTestCase - Message 5
| 001-log4cxx | trunk/src/test/resources/witness/customLogger.1 | Roff Manpage | asf20 | 282 |
TRACE xml.CustomLevelTestCase - Message 5
| 001-log4cxx | trunk/src/test/resources/witness/customLevel.3 | Roff Manpage | asf20 | 42 |
INFO HierarchyThresholdTestCase = m2
WARN HierarchyThresholdTestCase = m3
ERROR HierarchyThresholdTestCase = m4
FATAL HierarchyThresholdTestCase = m5
| 001-log4cxx | trunk/src/test/resources/witness/hierarchyThreshold.5 | Roff Manpage | asf20 | 150 |
TRACE HierarchyThresholdTestCase = m0
DEBUG HierarchyThresholdTestCase = m1
INFO HierarchyThresholdTestCase = m2
WARN HierarchyThresholdTestCase = m3
ERROR HierarchyThresholdTestCase = m4
FATAL HierarchyThresholdTestCase = m5
| 001-log4cxx | trunk/src/test/resources/witness/hierarchyThreshold.8 | Roff Manpage | asf20 | 226 |
TRACE T1 [main] org.apache.log4j.net.SocketServerTestCase Message 1
TRACE T1 [main] root Message 2
DEBUG T1 [main] org.apache.log4j.net.SocketServerTestCase Message 3
DEBUG T1 [main] root Message 4
INFO T1 [main] org.apache.log4j.net.SocketServerTestCase Message 5
WARN T1 [main] org.apache.log4j.net.SocketServerTestCase Message 6
FATAL T1 [main] org.apache.log4j.net.SocketServerTestCase Message 7
DEBUG T1 [main] org.apache.log4j.net.SocketServerTestCase Message 8
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test1(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
ERROR T1 [main] root Message 9
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test1(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
| 001-log4cxx | trunk/src/test/resources/witness/socketServer.1 | Roff | asf20 | 1,821 |
TRACE T2 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 1
TRACE T2 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 2
DEBUG T2 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 3
DEBUG T2 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 4
INFO T2 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 5
WARN T2 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 6
FATAL T2 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 7
DEBUG T2 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 8
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test2(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
ERROR T2 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 9
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test2(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
| 001-log4cxx | trunk/src/test/resources/witness/socketServer.2 | Roff | asf20 | 2,022 |
TRACE some T4 MDC-TEST4 [main] SocketServerTestCase - Message 1
TRACE some T4 MDC-TEST4 [main] root - Message 2
DEBUG some T4 MDC-TEST4 [main] SocketServerTestCase - Message 3
DEBUG some T4 MDC-TEST4 [main] root - Message 4
INFO some T4 MDC-TEST4 [main] SocketServerTestCase - Message 5
WARN some T4 MDC-TEST4 [main] SocketServerTestCase - Message 6
FATAL some T4 MDC-TEST4 [main] SocketServerTestCase - Message 7
DEBUG some T4 MDC-TEST4 [main] SocketServerTestCase - Message 8
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test4(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
ERROR some T4 MDC-TEST4 [main] root - Message 9
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test4(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
| 001-log4cxx | trunk/src/test/resources/witness/socketServer.4 | Roff | asf20 | 1,848 |
[main] DEBUG atternLayoutTest - Message 0
[main] DEBUG root - Message 0
[main] INFO atternLayoutTest - Message 1
[main] INFO root - Message 1
[main] WARN atternLayoutTest - Message 2
[main] WARN root - Message 2
[main] ERROR atternLayoutTest - Message 3
[main] ERROR root - Message 3
[main] FATAL atternLayoutTest - Message 4
[main] FATAL root - Message 4 | 001-log4cxx | trunk/src/test/resources/witness/patternLayout.5 | Roff | asf20 | 369 |
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Hello]]></log4j:message>
<log4j:properties>
<log4j:data name="<blahKey value='blah'/>" value="blahValue"/>
<log4j:data name="blahAttribute" value="<blah value='blah'>"/>
</log4j:properties>
</log4j:event>
| 001-log4cxx | trunk/src/test/resources/witness/xmlLayout.mdc.2 | Roff Manpage | asf20 | 348 |
TRACE customLogger.XLoggerTestCase - Message 0
| 001-log4cxx | trunk/src/test/resources/witness/customLogger.2 | Roff Manpage | asf20 | 47 |
DEBUG xml.CustomLevelTestCase - Message 1
INFO xml.CustomLevelTestCase - Message 2
WARN xml.CustomLevelTestCase - Message 3
ERROR xml.CustomLevelTestCase - Message 4
TRACE xml.CustomLevelTestCase - Message 5
| 001-log4cxx | trunk/src/test/resources/witness/customLevel.4 | Roff Manpage | asf20 | 210 |
TimeBasedRollingTest - Hello---2
TimeBasedRollingTest - Hello---3
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test2.2 | Roff Manpage | asf20 | 66 |
TimeBasedRollingTest - Hello---0
TimeBasedRollingTest - Hello---1
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test1.1 | Roff Manpage | asf20 | 66 |
TimeBasedRollingTest - Hello---0
TimeBasedRollingTest - Hello---1
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test5.1 | Roff Manpage | asf20 | 66 |
TimeBasedRollingTest - Hello---2
TimeBasedRollingTest - Hello---3
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test1.2 | Roff Manpage | asf20 | 66 |
TimeBasedRollingTest - Hello---2
TimeBasedRollingTest - Hello---3
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test5.2 | Roff Manpage | asf20 | 66 |
Hello---0
Hello---1
Hello---2
Hello---3
Hello---4
Hello---5
Hello---6
Hello---7
Hello---8
Hello---9
| 001-log4cxx | trunk/src/test/resources/witness/rolling/sbr-test2.1 | Roff Manpage | asf20 | 100 |
TimeBasedRollingTest - Hello---0
TimeBasedRollingTest - Hello---1
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test2.1 | Roff Manpage | asf20 | 66 |
TimeBasedRollingTest - Hello---0
TimeBasedRollingTest - Hello---1
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test4.1 | Roff Manpage | asf20 | 66 |
TimeBasedRollingTest - Hello---4
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test5.3 | Roff Manpage | asf20 | 33 |
TimeBasedRollingTest - Hello---4
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test2.3 | Roff Manpage | asf20 | 33 |
TimeBasedRollingTest - Hello---4
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test4.3 | Roff Manpage | asf20 | 33 |
TimeBasedRollingTest - Hello---4
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test3.3 | Roff Manpage | asf20 | 33 |
TimeBasedRollingTest - Hello---4
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test1.3 | Roff Manpage | asf20 | 33 |
TimeBasedRollingTest - Hello---2
TimeBasedRollingTest - Hello---3
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test4.2 | Roff Manpage | asf20 | 66 |
TimeBasedRollingTest - Hello---4
| 001-log4cxx | trunk/src/test/resources/witness/rolling/tbr-test6.3 | Roff Manpage | asf20 | 33 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
EXTRA_DIST = sbr-test* \
tbr-test*
# if we are building in a separate build tree, then copy all necessary files
all-local:
@if test "$(top_srcdir)" != "$(top_builddir)"; then \
echo "Copying test suite data files ..." ; \
list='$(EXTRA_DIST)'; for file in $$list; do \
cp -p $(srcdir)/$$file . ; \
done \
fi
| 001-log4cxx | trunk/src/test/resources/witness/rolling/Makefile.am | Makefile | asf20 | 1,122 |
WARN HierarchyThresholdTestCase = m3
ERROR HierarchyThresholdTestCase = m4
FATAL HierarchyThresholdTestCase = m5
| 001-log4cxx | trunk/src/test/resources/witness/hierarchyThreshold.4 | Roff Manpage | asf20 | 113 |
TRACE some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 1
TRACE some7 T7 client-test7 MDC-TEST7 [main] root - Message 2
DEBUG some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 3
DEBUG some7 T7 client-test7 MDC-TEST7 [main] root - Message 4
INFO some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 5
WARN some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 6
FATAL some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 7
DEBUG some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 8
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test7(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
ERROR some7 T7 client-test7 MDC-TEST7 [main] root - Message 9
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test7(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
| 001-log4cxx | trunk/src/test/resources/witness/socketServer.7 | Roff | asf20 | 1,974 |
TRACE some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 1
TRACE some8 T8 shortSocketServer MDC-TEST8 [main] root - Message 2
DEBUG some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 3
DEBUG some8 T8 shortSocketServer MDC-TEST8 [main] root - Message 4
INFO some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 5
WARN some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 6
FATAL some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 7
DEBUG some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 8
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test8(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
ERROR some8 T8 shortSocketServer MDC-TEST8 [main] root - Message 9
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test8(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
| 001-log4cxx | trunk/src/test/resources/witness/socketServer.8 | Roff | asf20 | 2,019 |
[main] DEBUG atternLayoutTest - Message 0
[main] DEBUG root - Message 0
[main] INFO atternLayoutTest - Message 1
[main] INFO root - Message 1
[main] WARN atternLayoutTest - Message 2
[main] WARN root - Message 2
[main] ERROR atternLayoutTest - Message 3
[main] ERROR root - Message 3
[main] FATAL atternLayoutTest - Message 4
[main] FATAL root - Message 4 | 001-log4cxx | trunk/src/test/resources/witness/patternLayout.3 | Roff | asf20 | 369 |
[main] DEBUG atternLayoutTest - Message 0
[main] DEBUG root - Message 0
[main] INFO atternLayoutTest - Message 1
[main] INFO root - Message 1
[main] WARN atternLayoutTest - Message 2
[main] WARN root - Message 2
[main] ERROR atternLayoutTest - Message 3
[main] ERROR root - Message 3
[main] FATAL atternLayoutTest - Message 4
[main] FATAL root - Message 4
| 001-log4cxx | trunk/src/test/resources/witness/patternLayout.2 | Roff | asf20 | 370 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
EXTRA_DIST = UTF-* \
ascii.log \
latin1.log
# if we are building in a separate build tree, then copy all necessary files
all-local:
@if test "$(top_srcdir)" != "$(top_builddir)"; then \
echo "Copying test suite data files ..." ; \
list='$(EXTRA_DIST)'; for file in $$list; do \
cp -p $(srcdir)/$$file . ; \
done \
fi
| 001-log4cxx | trunk/src/test/resources/witness/encoding/Makefile.am | Makefile | asf20 | 1,144 |
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="TRACE" thread="main">
<log4j:message><![CDATA[Message with embedded <![CDATA[<hello>hi</hello>]]>]]><![CDATA[.]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="testCDATA" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Message with embedded <![CDATA[<hello>hi</hello>]]>]]><![CDATA[.]]></log4j:message>
<log4j:locationInfo class="XMLLayoutTestCase" method="testCDATA" file="XMLLayoutTestCase.java" line="X"/>
</log4j:event>
| 001-log4cxx | trunk/src/test/resources/witness/xmlLayout.3 | Roff Manpage | asf20 | 678 |
DEBUG xml.DOMTestCase - Message 0
DEBUG xml.DOMTestCase - Message 0
DEBUG root - Message 0
INFO xml.DOMTestCase - Message 1
INFO xml.DOMTestCase - Message 1
INFO root - Message 1
WARN xml.DOMTestCase - Message 2
WARN xml.DOMTestCase - Message 2
WARN root - Message 2
ERROR xml.DOMTestCase - Message 3
ERROR xml.DOMTestCase - Message 3
ERROR root - Message 3
FATAL xml.DOMTestCase - Message 4
FATAL xml.DOMTestCase - Message 4
FATAL root - Message 4
| 001-log4cxx | trunk/src/test/resources/witness/dom.A1.1 | Roff | asf20 | 455 |
TRACE T3 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 1
TRACE T3 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 2
DEBUG T3 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 3
DEBUG T3 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 4
INFO T3 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 5
WARN T3 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 6
FATAL T3 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 7
DEBUG T3 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 8
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test3(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
ERROR T3 [main] SocketServerTestCase (socketservertestcase.cpp:XXX) Message 9
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test3(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
| 001-log4cxx | trunk/src/test/resources/witness/socketServer.3 | Roff | asf20 | 2,022 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
SUBDIRS = encoding ndc rolling
EXTRA_DIST = LevelMatchFilter* \
LevelRangeFilter* \
NDCMatchFilter* \
custom* \
dom.* \
hierarchyThreshold.* \
l7d.* \
patternLayout.* \
socketServer.* \
xmlLayout.* \
fallback \
simple \
ttcc
# if we are building in a separate build tree, then copy all necessary files
all-local:
@if test "$(top_srcdir)" != "$(top_builddir)"; then \
echo "Copying test suite data files ..." ; \
list='$(EXTRA_DIST)'; for file in $$list; do \
cp -p $(srcdir)/$$file . ; \
done \
fi
| 001-log4cxx | trunk/src/test/resources/witness/Makefile.am | Makefile | asf20 | 1,455 |
DEBUG xml.CustomLevelTestCase - Message 1
INFO xml.CustomLevelTestCase - Message 2
WARN xml.CustomLevelTestCase - Message 3
ERROR xml.CustomLevelTestCase - Message 4
TRACE xml.CustomLevelTestCase - Message 5
| 001-log4cxx | trunk/src/test/resources/witness/customLevel.2 | Roff Manpage | asf20 | 210 |
[main] DEBUG atternLayoutTest - Message 0
[main] DEBUG root - Message 0
[main] INFO atternLayoutTest - Message 1
[main] INFO root - Message 1
[main] WARN atternLayoutTest - Message 2
[main] WARN root - Message 2
[main] ERROR atternLayoutTest - Message 3
[main] ERROR root - Message 3
[main] FATAL atternLayoutTest - Message 4
[main] FATAL root - Message 4 | 001-log4cxx | trunk/src/test/resources/witness/patternLayout.4 | Roff | asf20 | 369 |
starting mdc pattern test
empty mdc, no key specified in pattern : {}
empty mdc, key1 in pattern :
empty mdc, key2 in pattern :
empty mdc, key3 in pattern :
empty mdc, key1, key2, and key3 in pattern : ,,
filled mdc, no key specified in pattern : {{key1,value1}{key2,value2}}
filled mdc, key1 in pattern : value1
filled mdc, key2 in pattern : value2
filled mdc, key3 in pattern :
filled mdc, key1, key2, and key3 in pattern : value1,value2,
finished mdc pattern test
| 001-log4cxx | trunk/src/test/resources/witness/patternLayout.mdc.2 | Roff Manpage | asf20 | 471 |
DEBUG - Message 0
DEBUG - Message 0
INFO - Message 1
INFO - Message 1
WARN - Message 2
WARN - Message 2
ERROR - Message 3
ERROR - Message 3
FATAL - Message 4
FATAL - Message 4
| 001-log4cxx | trunk/src/test/resources/witness/patternLayout.1 | Roff Manpage | asf20 | 180 |
T1 INFO - This is the English, US test.
T1 WARN - Hello world.
T1 ERROR - No resource is associated with key "bogusMsg".
T1 ERROR - bogusMsg
T1 ERROR - This is test number 1 with string argument log4j.
T1 ERROR - No resource is associated with key "bogus2".
T1 INFO - bogus2
T1 INFO - Ceci est le test en francais pour la France.
T1 WARN - Bonjour la France.
T1 ERROR - No resource is associated with key "bogusMsg".
T1 ERROR - bogusMsg
T1 ERROR - Ceci est le test numero 2 contenant l'argument log4j.
T1 ERROR - No resource is associated with key "bogus2".
T1 INFO - bogus2
T1 INFO - Ceci est le test en francais pour la p'tite Suisse.
T1 WARN - Bonjour la France.
T1 ERROR - No resource is associated with key "bogusMsg".
T1 ERROR - bogusMsg
T1 ERROR - Ceci est le test numero 3 contenant l'argument log4j.
T1 ERROR - No resource is associated with key "bogus2".
T1 INFO - bogus2
| 001-log4cxx | trunk/src/test/resources/witness/l7d.1 | Roff | asf20 | 891 |
TRACE some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 1
TRACE some6 T6 client-test6 MDC-TEST6 [main] root - Message 2
DEBUG some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 3
DEBUG some6 T6 client-test6 MDC-TEST6 [main] root - Message 4
INFO some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 5
WARN some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 6
FATAL some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 7
DEBUG some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 8
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test6(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
ERROR some6 T6 client-test6 MDC-TEST6 [main] root - Message 9
java.lang.Exception: Just testing
at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
at org.apache.log4j.net.SocketServerTestCase.test6(SocketServerTestCase.java:XXX)
at junit.framework.TestCase.runTest(TestCase.java:XXX)
at junit.framework.TestCase.runBare(TestCase.java:XXX)
at junit.framework.TestResult$1.protect(TestResult.java:XXX)
at junit.framework.TestResult.runProtected(TestResult.java:XXX)
at junit.framework.TestResult.run(TestResult.java:XXX)
at junit.framework.TestCase.run(TestCase.java:XXX)
at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
at junit.framework.TestSuite.run(TestSuite.java:XXX)
| 001-log4cxx | trunk/src/test/resources/witness/socketServer.6 | Roff | asf20 | 1,974 |
ERROR HierarchyThresholdTestCase = m4
FATAL HierarchyThresholdTestCase = m5
| 001-log4cxx | trunk/src/test/resources/witness/hierarchyThreshold.3 | Roff Manpage | asf20 | 76 |
DEBUG - Hello World {{key1,va11}{key2,va12}}
| 001-log4cxx | trunk/src/test/resources/witness/patternLayout.mdc.1 | Roff | asf20 | 45 |
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase$X" timestamp="XXX" level="INFO" thread="main">
<log4j:message><![CDATA[in X() constructor]]></log4j:message>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="TRACE" thread="main">
<log4j:message><![CDATA[Message 0]]></log4j:message>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="TRACE" thread="main">
<log4j:message><![CDATA[Message 0]]></log4j:message>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Message 1]]></log4j:message>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Message 1]]></log4j:message>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="INFO" thread="main">
<log4j:message><![CDATA[Message 2]]></log4j:message>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="INFO" thread="main">
<log4j:message><![CDATA[Message 2]]></log4j:message>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="WARN" thread="main">
<log4j:message><![CDATA[Message 3]]></log4j:message>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="WARN" thread="main">
<log4j:message><![CDATA[Message 3]]></log4j:message>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="ERROR" thread="main">
<log4j:message><![CDATA[Message 4]]></log4j:message>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="ERROR" thread="main">
<log4j:message><![CDATA[Message 4]]></log4j:message>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="FATAL" thread="main">
<log4j:message><![CDATA[Message 5]]></log4j:message>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="FATAL" thread="main">
<log4j:message><![CDATA[Message 5]]></log4j:message>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Message 6]]></log4j:message>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="DEBUG" thread="main">
<log4j:message><![CDATA[Message 6]]></log4j:message>
</log4j:event>
<log4j:event logger="org.apache.log4j.xml.XMLLayoutTestCase" timestamp="XXX" level="ERROR" thread="main">
<log4j:message><![CDATA[Message 7]]></log4j:message>
</log4j:event>
<log4j:event logger="root" timestamp="XXX" level="ERROR" thread="main">
<log4j:message><![CDATA[Message 7]]></log4j:message>
</log4j:event>
| 001-log4cxx | trunk/src/test/resources/witness/xmlLayout.1 | Roff Manpage | asf20 | 2,709 |
DEBUG null - m1
INFO null - m2
WARN null - m3
ERROR null - m4
FATAL null - m5
DEBUG n1 - m1
INFO n1 - m2
WARN n1 - m3
ERROR n1 - m4
FATAL n1 - m5
DEBUG n1 n2 n3 - m1
INFO n1 n2 n3 - m2
WARN n1 n2 n3 - m3
ERROR n1 n2 n3 - m4
FATAL n1 n2 n3 - m5
DEBUG n1 n2 - m1
INFO n1 n2 - m2
WARN n1 n2 - m3
ERROR n1 n2 - m4
FATAL n1 n2 - m5
DEBUG null - m1
INFO null - m2
WARN null - m3
ERROR null - m4
FATAL null - m5
| 001-log4cxx | trunk/src/test/resources/witness/ndc/NDC.1 | Roff | asf20 | 415 |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
EXTRA_DIST = NDC.*
# if we are building in a separate build tree, then copy all necessary files
all-local:
@if test "$(top_srcdir)" != "$(top_builddir)"; then \
echo "Copying test suite data files ..." ; \
list='$(EXTRA_DIST)'; for file in $$list; do \
cp -p $(srcdir)/$$file . ; \
done \
fi
| 001-log4cxx | trunk/src/test/resources/witness/ndc/Makefile.am | Makefile | asf20 | 1,093 |
DEBUG HierarchyThresholdTestCase = m1
INFO HierarchyThresholdTestCase = m2
WARN HierarchyThresholdTestCase = m3
ERROR HierarchyThresholdTestCase = m4
FATAL HierarchyThresholdTestCase = m5
| 001-log4cxx | trunk/src/test/resources/witness/hierarchyThreshold.6 | Roff Manpage | asf20 | 188 |