Skip to content

Instantly share code, notes, and snippets.

View tonit's full-sized avatar
🍼
Growing Developer Culture

Toni Menzel tonit

🍼
Growing Developer Culture
View GitHub Profile
@tonit
tonit / Exam2_API3.java
Created March 28, 2011 12:22
See: you don't write starting or stopping a particular container. Its delegated to the ReactorStrategy
public void reactorRun( StagedExamReactorFactory strategy ) throws Exception
{
TestContainerFactory factory = getFactory();
Option[] options = new Option[]{ junitBundles(), easyMockBundles() };
ExxamReactor reactor = new DefaultExamReactor( factory );
TestProbeProvider probe = makeProbe();
reactor.addProbe( probe );
@tonit
tonit / Pax_Exam_Swoosh_Player.java
Created April 1, 2011 09:34
Fully functional alternative Pax Exam Driver. Lets your write fully functional setup-tests "in a tweet".
/*
* Copyright 2011 Toni Menzel.
*
* Licensed 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
@tonit
tonit / gist:987443
Created May 23, 2011 19:52
bndtools problem
zazu:bndtools tonit$ ant build p2
Buildfile: /Users/tonit/devel/oss/bndtools/build.xml
build:
init:
[bndprepare] java.lang.AbstractMethodError
[bndprepare] at aQute.bnd.build.Project.getBundle(Project.java:769)
[bndprepare] at aQute.bnd.build.Project.getBundles(Project.java:424)
[bndprepare] at aQute.bnd.build.Project.parseBuildpath(Project.java:343)
@tonit
tonit / gist:995593
Created May 27, 2011 16:14
ops4j infra 2011
New OPS4J Channels in May 2011
Information:
http://ops4j1.jira.com/wiki/ --> Wiki
ops4j@googlegroups.com --> New Mailinglist
ops4j-notify@googlegroups.com --> Notification List
http://twitter.com/ops4j --> Twitter Channel
#OPS4J on freenode: IRC
Development:
@tonit
tonit / gist:996674
Created May 28, 2011 06:58
Eclipse Helios Fedora Crash
[tonit@fazu eclipse]$ ./eclipse
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x007e3afc, pid=6432, tid=3077768896
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK Client VM (20.0-b11 mixed mode linux-x86 )
# Derivative: IcedTea6 1.10.1
# Distribution: Fedora release 15 (Lovelock), package fedora-57.1.10.1.fc15-i386
@tonit
tonit / gist:998752
Created May 30, 2011 11:22
oss.sonatype.org release failed
[INFO] [DEBUG] (f) packaging = pom
[INFO] [DEBUG] (f) pomFile = /Users/tonit/devel/oss/exxam/target/checkout/pom.xml
[INFO] [DEBUG] (f) updateReleaseInfo = false
[INFO] [DEBUG] -- end configuration --
[INFO] [INFO] Installing /Users/tonit/devel/oss/exxam/target/checkout/pom.xml to /Users/tonit/.m2/repository/org/ops4j/pax/exam-reactor/2.1.0/exam-reactor-2.1.0.pom
[INFO] [DEBUG] Installing org.ops4j.pax:exam-reactor/maven-metadata.xml to /Users/tonit/.m2/repository/org/ops4j/pax/exam-reactor/maven-metadata-local.xml
[INFO] [INFO] Installing /Users/tonit/devel/oss/exxam/target/checkout/target/exam-reactor-2.1.0.pom.asc to /Users/tonit/.m2/repository/org/ops4j/pax/exam-reactor/2.1.0/exam-reactor-2.1.0.pom.asc
[INFO] [DEBUG] Installing org.ops4j.pax:exam-reactor/maven-metadata.xml to /Users/tonit/.m2/repository/org/ops4j/pax/exam-reactor/maven-metadata-local.xml
[INFO] [INFO]
[INFO] [INFO] --- maven-deploy-plugin:2.5:deploy (default-deploy) @ exam-reactor ---
154 [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System (Version: 2.3.0) created.
178 [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam System (Version: 2.3.0) created.
Jan 5, 2012 1:39:35 PM org.ops4j.pax.runner.Run start
INFO: Using only arguments from command line
Jan 5, 2012 1:39:36 PM org.ops4j.pax.scanner.internal.ProvisionServiceImpl scan
INFO: Scan bundles from [scan-bundle:link:classpath:META-INF/links/org.ops4j.pax.exam.rbc.link@update@2]
Jan 5, 2012 1:39:36 PM org.ops4j.pax.scanner.internal.ProvisionServiceImpl scan
INFO: Scan bundles from [scan-bundle:link:classpath:META-INF/links/org.ops4j.pax.exam.inject.link@update@2]
Jan 5, 2012 1:39:36 PM org.ops4j.pax.scanner.internal.ProvisionServiceImpl scan
INFO: Scan bundles from [scan-bundle:link:classpath:META-INF/links/org.ops4j.pax.extender.service.link@update@2]
@tonit
tonit / install.sh
Created August 20, 2012 11:07
Chef Omnibus for Mac OS X 10.8
#!/bin/bash
# This is the current stable release to default to, with Omnibus patch level (e.g. 10.12.0-1)
# Note that the chef-full template downloads 'x.y.z' not 'x.y.z-r' which should be a duplicate of the latest -r
release_version="10.12.0-1"
use_shell=0
# Check whether a command exists - returns 0 if it does, 1 if it does not
exists() {
if command -v $1 &>/dev/null
Export-Package: \
org.neo4j.graphdb;version=${Bundle-Version},\
org.neo4j.graphdb.config;version=${Bundle-Version},\
org.neo4j.graphdb.event;version=${Bundle-Version},\
org.neo4j.graphdb.factory;version=${Bundle-Version},\
org.neo4j.graphdb.index;version=${Bundle-Version},\
org.neo4j.graphdb.traversal;version=${Bundle-Version},\
org.neo4j.helpers;version=${Bundle-Version},\
org.neo4j.helpers.collection;version=${Bundle-Version},\
org.neo4j.helpers.progress;version=${Bundle-Version},\
{
"service.pid": "org.ops4j.pax.logging",
"log4j.rootLogger" : "DEBUG, CONSOLE",
"log4j.appender.CONSOLE": "org.apache.log4j.ConsoleAppender",
"log4j.appender.CONSOLE.layout":"org.apache.log4j.PatternLayout",
"log4j.appender.CONSOLE.layout.ConversionPattern":"%d %-5p [%t] %C{2} (%F:%L) - %m%n",
"log4j.logger.org.eclipse.jetty":"WARN",
"log4j.logger.org.apache.felix":"DEBUG"
}