Skip to content

Instantly share code, notes, and snippets.

View ceki's full-sized avatar
💭
working on logback model based configuration

Ceki Gülcü ceki

💭
working on logback model based configuration
View GitHub Profile
@ceki
ceki / java
Created June 19, 2022 12:21
Overloading of lambdas
package org.slf4j.skunk;
import java.util.function.Supplier;
public class API {
public static void main(String[] args) {
API api = new API();
Integer i0 = 0;
Integer i1 = 1;
class AbstractSocketAppender extends ... {
ConnectionRunner connectionRunner = ...:
public final void run() {
try {
while (!Thread.currentThread().isInterrupted()) {
Socket socket = connectionRunner.getSocket();
if(socket == null)
break;
package chapters.appenders.socket;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.net.SocketAppender;
import ch.qos.logback.core.status.OnConsoleStatusListener;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
@ceki
ceki / find_guice.txt
Created June 8, 2012 16:31
Search for guice in Test pom files
> find . -name "pom.xml"|xargs grep guice
./maven-settings-builder/pom.xml: <artifactId>guice-plexus-shim</artifactId>
./tesla-shell/pom.xml: <exclude>com.google.inject:guice</exclude>
./tesla-shell-osgi/pom.xml: <exclude>com.google.inject:guice</exclude>
./tesla-shell-osgi/tesla-shell-osgi-gshell-shim/pom.xml: !org.sonatype.guice.bean.*
./tesla-shell-osgi/tesla-shell-osgi-support/pom.xml: org.sonatype.guice.bean.locators
@ceki
ceki / results.txt
Created June 2, 2012 15:09
bootstrap
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Reactor Summary:
[java] [INFO]
[java] [INFO] Tesla ............................................. SUCCESS [1:37.808s]
[java] [INFO] Maven Model ....................................... SUCCESS [46.256s]
[java] [INFO] Maven Settings .................................... SUCCESS [1.433s]
[java] [INFO] Maven Settings Builder ............................ SUCCESS [31.428s]
[java] [INFO] Maven Repository Metadata Model ................... SUCCESS [1.294s]
[java] [INFO] Maven Artifact .................................... SUCCESS [2.029s]
[java] [INFO] Maven Plugin API .................................. SUCCESS [6.178s]
@ceki
ceki / artifacts_missing.txt
Created June 2, 2012 14:10
38 required artifacts are missing.
(1.6.0) het ~/tesla-home/tesla >./bootstrap.sh
which: no ant in (/usr/bin:/usr/local/bin:c:\usr\bin:c:\usr\local\bin:/java/jdk1.6.0_23/bin/)
Using /java/apache-ant-1.8.4/bin/ant
Buildfile: C:\home\ceki\tesla-home\tesla\build.xml
clean-bootstrap:
initTaskDefs:
[echo] Building Eclipse Tesla ...
@ceki
ceki / bootstrap_results.txt
Created June 1, 2012 21:23
bootstrap results
(1.6.0) het ~/tesla-home/tesla >./bootstrap.sh
which: no ant in (/usr/bin:/usr/local/bin:c:\usr\bin:c:\usr\local\bin:/java/jdk1.6.0_23/bin/)
Using /java/apache-ant-1.8.4/bin/ant
Buildfile: C:\home\ceki\tesla-home\tesla\build.xml
clean-bootstrap:
initTaskDefs:
[echo] Building Eclipse Tesla ...
@ceki
ceki / FileLockSimulator.java
Created May 26, 2012 14:58
FileLockSimulator: a small application for simulate the behavior of FileAppender in prudent mode
/**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2011, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* or (per the licensee's choosing)
*
@ceki
ceki / stack trace
Created May 24, 2012 13:16
stack trace for java.lang.ClassNotFoundException: foo.RCPAppender
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:151)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:751)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:417)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:265)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:106)