This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v1.3.0-alpha.3 ./oc cluster up | |
-- Checking OpenShift client ... OK | |
-- Checking Docker client ... OK | |
-- Checking for existing OpenShift container ... OK | |
-- Checking for openshift/origin:v1.3.0-alpha.3 image ... | |
Pulling image openshift/origin:v1.3.0-alpha.3 | |
Pulled 0/3 layers, 3% complete | |
Pulled 1/3 layers, 70% complete | |
Pulled 2/3 layers, 96% complete | |
Pulled 3/3 layers, 100% complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Total, Run, Failures, Errors, Skips :: path/to/surefire-reports/class-file.txt" | |
num=0; tot=0; tests=$(find */*/*/target/surefire-reports/ */*/target/surefire-reports/ -mindepth 1 -maxdepth 1 -name "*.txt" 2>/dev/null|sort); for d in $tests; do (( num++ )); cnt=""; cnt=$(cat $d | grep -v "Tests run" | grep "Time elapsed" | wc -l); tot=$(( tot + cnt )); cat $d | grep "Tests run" | sed "s#Tests run: \([0-9]\+\), Failures: \([0-9]\+\), Errors: \([0-9]\+\), Skipped: \([0-9]\+\), Time elapsed: .\+ in \(.\+\).*#\1 ${cnt} \2 \3 \4 :: ${d}#"; done; echo ""; echo "Total classes: $num"; echo "Total tests run: $tot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jboss.tools.openshift.core.server.behavior; | |
import org.eclipse.wst.server.core.IModule; | |
import org.eclipse.wst.server.core.IServerAttributes; | |
import org.jboss.ide.eclipse.as.wtp.core.server.behavior.ISubsystemController; | |
import org.jboss.ide.eclipse.as.wtp.core.util.ServerModelUtilities; | |
import org.jboss.tools.as.core.internal.modules.ModuleDeploymentPrefsUtil; | |
import org.jboss.tools.as.core.server.controllable.subsystems.internal.ModuleDeployPathController; | |
import org.jboss.tools.openshift.core.server.OpenShiftServerUtils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ souk oc new-app kubernetes/guestbook --loglevel=8 | |
I0223 17:35:53.816765 68173 loader.go:241] Config loaded from file /Users/fbricon/.kube/config | |
I0223 17:35:53.818840 68173 loader.go:241] Config loaded from file /Users/fbricon/.kube/config | |
I0223 17:35:53.822502 68173 debugging.go:99] GET https://10.1.2.2:8443/oapi | |
I0223 17:35:53.822526 68173 debugging.go:106] Request Headers: | |
I0223 17:35:53.822533 68173 debugging.go:109] User-Agent: oc/v1.1 (darwin/amd64) openshift/1904cc3 | |
I0223 17:35:53.822539 68173 debugging.go:109] Authorization: Bearer RK0Dgj4x42z2sGa9eCoyXYsttEMAuPxflxvF55408EM | |
I0223 17:35:53.852285 68173 debugging.go:124] Response Status: 200 OK in 29 milliseconds | |
I0223 17:35:53.852311 68173 debugging.go:127] Response Headers: | |
I0223 17:35:53.852318 68173 debugging.go:130] Content-Type: application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata" : { | |
"name" : "nodejs-example", | |
"namespace" : "fred", | |
"selfLink" : "/oapi/v1/namespaces/fred/buildconfigs/nodejs-example", | |
"uid" : "3a0364f0-9c5f-11e5-b172-5254002560a2", | |
"resourceVersion" : "37755", | |
"creationTimestamp" : "2015-12-06T21:20:51Z", | |
"labels" : {"template" : "nodejs-example"}, | |
"annotations" : {"description" : "Defines how to build the application"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: org.eclipse.equinox.p2.engine code=4 An error occurred while collecting items to be installed | |
at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:249) | |
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$2.commit(ProfileTransactionImpl.java:488) | |
at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:323) | |
at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:701) | |
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:2903) | |
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2847) | |
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:2828) | |
at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2759) | |
at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:539) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
browser.registerBrowserFunction("openInIDE", new IBrowserFunction() { | |
@Override | |
public Object function(Object[] browserArgs) { | |
String function = browserArgs[0].toString(); | |
String arg = browserArgs[1].toString(); | |
switch (function) { | |
case "quickstart": | |
openQuickstart(parent.getShell(), arg); | |
break; | |
case "wizard": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.takari.polyglot:polyglot-translate-plugin:0.1.6:translate (default-cli) on project wtf: The parameters 'output', 'input' for goal io.takari.polyglot:polyglot-translate-plugin:0.1.6:translate are missing or invalid | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:220) | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) | |
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) | |
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) | |
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) | |
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) | |
at org.apache.maven.DefaultMaven.doExecute(D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************************* | |
* Copyright (c) 2015 Red Hat, Inc. and others. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* JBoss by Red Hat - Initial implementation. | |
************************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this adds a "truncate(#)" method to String | |
// see http://www.vertigrated.com/blog/2009/11/how-to-add-a-truncateint-len-method-to-stringgstring-in-groovy/ | |
String.metaClass.truncate = { len -> | |
if (delegate == null) {return''} | |
if (delegate.length() > len) {return delegate[0..(len - 2)] + "\u2026"} | |
return delegate | |
} | |
def query= "hibernate" | |
int size = 20 |