Skip to content

Instantly share code, notes, and snippets.

From 95cacb6f03c3e511f3c2cc4c6f6929912e4ae2a1 Mon Sep 17 00:00:00 2001
From: LightGuard <[email protected]>
Date: Thu, 17 Jun 2010 16:45:10 -0600
Subject: [PATCH] Ant+Ivy support -- None of them resolve correctly
---
examples/junit/build.properties | 31 +++
examples/junit/build.xml | 330 ++++++++++++++++++++++++++
examples/junit/ivy-base.xml | 30 +++
examples/junit/ivy-jbossas-embedded-60.xml | 15 ++
// Go grab Groosh so we can do standard shell commands (http://groovy.codehaus.org/Groosh)
@Grapes([
@Grab(group='org.codehaus.groovy.modules', module='groosh', version='[0.3.5,)'),
@GrabConfig(systemClassLoader=true)
])
import static groosh.Groosh.groosh
def shell = groosh()
def phase1_dir = 'import-phase1'
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
@LightGuard
LightGuard / EntityConverter.java
Created March 24, 2011 21:22
EntityConverter for Seam 3
package org.jboss.seam.faces.conversion;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@LightGuard
LightGuard / gist:978094
Created May 18, 2011 06:44 — forked from peteroyle/gist:978086
proposed module struture
parent
- combined
- dist
- src
- main
- assembly (contains assembly.xml, licence.txt, notice.txt, readme.txt)
- docs
- src
- main
- assembly (contains assembly.xml)
@LightGuard
LightGuard / google_feed_usage.html
Created May 31, 2011 18:33
Google Feed API usage
<!DOCTYPE html PUBLIC "-//W4C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google AJAX Search API Sample</title>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
/*
* How to load a feed via the Feeds API.
*/
public void handleAuthorizationException(@Handles CaughtException<AuthorizationException> evt) {
String newTrace = new ExceptionStackOutput(evt.getException(), new StackFrameFilter() {
public StackFrameFilterResult process(StackFrame frame) {
return StackFrameFilterResult.TERMINATE;
}).printTrace();
messages.error("You do not have the necessary permissions to perform that operation", "");
evt.handled();
}
@LightGuard
LightGuard / gist:1315602
Created October 26, 2011 06:18
SEAMFACES-210 idea
diff --git a/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigExtension.java b/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigExtension.java
index 8d9cc59..610be78 100644
--- a/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigExtension.java
+++ b/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigExtension.java
@@ -59,6 +60,14 @@ public class ViewConfigExtension implements Extension {
log.warn("ViewConfig annotation should only be applied to interfaces, and [" + tp.getJavaClass()
+ "] is not an interface.");
} else {
+ // SEAMFACES-210
+ boolean securityNotFound = false;
@LightGuard
LightGuard / gist:1321262
Created October 28, 2011 00:09
seam security create group and add user to group
@Inject
private IdentitySession identitySession;
@Inject
private Identity identity;
@Inject
private UserTransaction tx;
@Before
@LightGuard
LightGuard / reinstall-silverlight.sh
Created January 29, 2012 00:32
reinstall Silverlight on the Mac
#!/bin/sh
killall Safari
killall Google\ Chrome
rm -rf /Library/Internet\ Plug-Ins/Silverlight.plugin
hdiutil attach /Users/tessieporter/Downloads/Silverlight-1.dmg
installer -pkg /Volumes/Silverlight/Silverlight.pkg/ -target "/"
hdiutil detach /Volumes/Silverlight