Skip to content

Instantly share code, notes, and snippets.

View jfuerth's full-sized avatar

Jonathan Fuerth jfuerth

View GitHub Profile
@jfuerth
jfuerth / context.xml
Created November 29, 2011 17:16
Get weld bootstrapped in Tomcat (save under META-INF/context.xml)
<!--
This context.xml causes Tomcat to insert Weld's CDI BeanManager into
the JNDI context at java:/comp/env/BeanManager. This is required in
Tomcat because Weld's normal boostrap doesn't work: the JNDI context
is read-only to the webapp.
For details, see http://docs.jboss.org/weld/reference/1.0.0/en-US/html/environments.html
-->
<Context>
<Resource name="BeanManager"
@jfuerth
jfuerth / OrientationSensorReading.java
Created March 16, 2012 22:09
Builder Pattern compatible with Errai Marshalling
package ca.fuerth.demo.client.shared;
import java.util.Date;
import org.jboss.errai.common.client.api.annotations.Portable;
import org.jboss.errai.marshalling.client.api.annotations.MapsTo;
@Portable
public final class OrientationSensorReading {
diff --git a/se-parent/se-errai/pom.xml b/se-parent/se-errai/pom.xml
index 8713010..33578b3 100644
--- a/se-parent/se-errai/pom.xml
+++ b/se-parent/se-errai/pom.xml
@@ -19,9 +19,18 @@
<jetty.version>6.1.25</jetty.version>
<slf4j.version>1.6.1</slf4j.version>
<uel.impl.version>2.1.2-b04</uel.impl.version>
+ <errai.marshalling.server.classOutput>${baseDir}/src/main/webapp/WEB-INF/classes</errai.marshalling.server.classOutput>
</properties>
<!-- Profile that must be enabled when running integration tests (any test that extends GWTTestCase directly or indirectly) -->
<profile>
<id>integration-test</id>
<properties>
<profile.testOutputDirectory>\${basedir}/target/test-classes</profile.testOutputDirectory>
</properties>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
jfuerth@unused:~/git/jacoco-plugin(master)$ mvn release:prepare -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jenkins-ci.plugins:jacoco:hpi:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for com.cloudbees:maven-license-plugin is missing. @ org.jenkins-ci.plugins:plugin:1.424.6, /Users/jfuerth/.m2/repository/org/jenkins-ci/plugins/plugin/1.424.6/plugin-1.424.6.pom, line 191, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
jfuerth@unused:~/git/jacoco-plugin(master)$ mvn release:perform -e -Pjenkins
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jenkins-ci.plugins:jacoco:hpi:1.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for com.cloudbees:maven-license-plugin is missing. @ org.jenkins-ci.plugins:plugin:1.424.6, /Users/jfuerth/.m2/repository/org/jenkins-ci/plugins/plugin/1.424.6/plugin-1.424.6.pom, line 191, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
package org.jboss.errai.databinding.client;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.HasValue;
import com.google.gwt.user.client.ui.Widget;
import java.util.HashMap;
import java.util.List;
@jfuerth
jfuerth / gist:3714719
Created September 13, 2012 14:38
GeneratedErraiEntityManager
package org.jboss.errai.jpa.client.local;
import com.google.gwt.core.client.UnsafeNativeLong;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.regexp.shared.RegExp;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Comparator;
[INFO] Validating units:
[INFO] Errors in 'org/uberfire/backend/util/LoggingHelper.java'
[INFO] Line 27: No source code is available for type org.slf4j.Logger; did you forget to inherit a required module?
[INFO] Line 44: No source code is available for type org.slf4j.LoggerFactory; did you forget to inherit a required module?
[INFO] Errors in 'org/uberfire/java/nio/fs/base/AbstractPath.java'
[INFO] Line 46: No source code is available for type java.util.regex.Pattern; did you forget to inherit a required module?
[INFO] Line 69: The method getAbsolutePath() is undefined for the type File
[INFO] Line 219: The constructor URI(String, String, String, null) is undefined
[INFO] Line 225: The constructor URI(String, String, String, null) is undefined
[INFO] Line 244: No source code is available for type org.apache.commons.io.FilenameUtils; did you forget to inherit a required module?
@jfuerth
jfuerth / gist:4484333
Created January 8, 2013 14:51
pom.xml snippet that adds junit-4-perfrunner as a test dependency
<dependency>
<groupId>org.jboss.perfrunner</groupId>
<artifactId>junit-4-perfrunner</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>