Skip to content

Instantly share code, notes, and snippets.

View ALRubinger's full-sized avatar

Andrew Lee Rubinger ALRubinger

View GitHub Profile
Something else
[alr@alr-laptop shrinkwrap]$ git diff
diff --git a/impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/container/ContainerBase.java b/impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/containe
index 29ebe9d..2fb6483 100644
--- a/impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/container/ContainerBase.java
+++ b/impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/container/ContainerBase.java
@@ -381,49 +381,19 @@ public abstract class ContainerBase<T extends Archive<T>> extends AssignableBase
@Override
public int hashCode()
{
- final int prime = 31;
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ jbossas-embedded-examples-slsb ---
[INFO] org.jboss.jbossas.embedded.examples:jbossas-embedded-examples-slsb:jar:6.0.0-SNAPSHOT
[INFO] \- org.jboss.jbossas:jboss-as-depchain:pom:6.0.0.20100721-M4:compile
[INFO] \- org.jboss.jbossas:jboss-as-server:jar:6.0.0.20100721-M4:compile
[INFO] +- org.jboss.scanning:scanning-plugins:jar:1.0.0.Alpha5:compile
[INFO] | +- org.jboss.scanning:scanning-spi:jar:1.0.0.Alpha5:compile
[INFO] | \- org.jboss.scanning:scanning-impl:jar:1.0.0.Alpha5:compile
[INFO] \- org.jboss.scanning:scanning-deployers:jar:1.0.0.Alpha5:compile
log4j:WARN No appenders could be found for logger (org.mobicents.servlet.sip.startup.SipStandardService).
log4j:WARN Please initialize the log4j system properly.
Aug 13, 2010 1:29:58 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-127.0.0.1-12345
Aug 13, 2010 1:29:58 PM org.apache.catalina.core.StandardService start
INFO: Starting service mobicents-sip-servlets
Aug 13, 2010 1:29:58 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Aug 13, 2010 1:29:58 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-127.0.0.1-12345
public interface Descriptor
{
/**
* Exports the descriptor XML as a {@link String}
* @return
* @throws DescriptorExportException
*/
String exportAsString() throws DescriptorExportException;
/**
private static final String SOURCE = "" +
"<web-app " +
" xmlns=\"http://java.sun.com/xml/ns/javaee\" " +
" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " +
" version=\"3.0\" " +
" xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd\">\n" +
" <filter>\n" +
" <filter-name>UrlRewriteFilter</filter-name>\n" +
" <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>\n" +
" </filter>\n" +
boolean isEjb3ComponentDeployment(final DeploymentUnit unit)
{
// Obtain the Merged Metadata
final JBossEnterpriseBeanMetaData ejb = unit.getAttachment(JBossEnterpriseBeanMetaData.class);
// If metadata's not present as an attachment, return
if (ejb == null)
{
log.warn("ALR - NO JBEBMD attachment");
return false;
URL url = Thread.currentThread().getContextClassLoader().getResource("shrinkwrap-deployer-jboss-beans.xml");
System.out.println(url);
final String path = url.toURI().getPath();
System.out.println(path);
Yields:
jar:file:/home/alr/.m2/repository/org/jboss/arquillian/container/arquillian-reloaded-embedded-1/1.0.0.Alpha3/arquillian-reloaded-embedded-1-1.0.0.Alpha3.jar!/shrinkwrap-deployer-jboss-beans.xml
null
this.setComponentsOnly(true);
this.setInput(JBossEnterpriseBeanMetaData.class);
/*
* JBoss, Home of Professional Open Source.
* Copyright 2010, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file 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.