You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ge...@apache.org on 2009/11/15 02:52:05 UTC
svn commit: r836313 - in
/incubator/openwebbeans/trunk/webbeans-porting/src/main:
java/org/apache/webbeans/test/tck/ContainersImpl.java resources/META-INF/
resources/META-INF/jboss-test-harness.properties
Author: gerdogdu
Date: Sun Nov 15 01:52:05 2009
New Revision: 836313
URL: http://svn.apache.org/viewvc?rev=836313&view=rev
Log:
Update while running TCK.
Added:
incubator/openwebbeans/trunk/webbeans-porting/src/main/resources/META-INF/
incubator/openwebbeans/trunk/webbeans-porting/src/main/resources/META-INF/jboss-test-harness.properties (with props)
Modified:
incubator/openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/ContainersImpl.java
Modified: incubator/openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/ContainersImpl.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/ContainersImpl.java?rev=836313&r1=836312&r2=836313&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/ContainersImpl.java (original)
+++ incubator/openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/ContainersImpl.java Sun Nov 15 01:52:05 2009
@@ -18,14 +18,15 @@
import java.io.IOException;
import java.io.InputStream;
+import org.apache.webbeans.logger.WebBeansLogger;
import org.jboss.testharness.api.DeploymentException;
import org.jboss.testharness.spi.Containers;
-
public class ContainersImpl implements Containers
{
+ public static final String TOMCAT_LOCATION = "catalina.home";
- // private Logger logger = Logger.getLogger(ContainersImpl.class);
+ private WebBeansLogger logger = WebBeansLogger.getLogger(ContainersImpl.class);
public void cleanup() throws IOException
{
@@ -34,21 +35,26 @@
public boolean deploy(InputStream archive, String name)
{
+ logger.info("Deploying artifact with name : " + name + " to container");
+
try
{
- if(archive.available() > 0)
+ if (archive.available() > 0)
{
File file = new File("target/container/" + name);
- FileOutputStream os = new FileOutputStream(file);
+ FileOutputStream os = new FileOutputStream(file);
byte temp[] = new byte[512];
-
- while(archive.read(temp) != -1)
+
+ while (archive.read(temp) != -1)
{
os.write(temp);
- }
-
+ }
+
+ os.close();
+
}
- } catch (Exception e)
+ }
+ catch (Exception e)
{
throw new RuntimeException(e);
}
Added: incubator/openwebbeans/trunk/webbeans-porting/src/main/resources/META-INF/jboss-test-harness.properties
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-porting/src/main/resources/META-INF/jboss-test-harness.properties?rev=836313&view=auto
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-porting/src/main/resources/META-INF/jboss-test-harness.properties (added)
+++ incubator/openwebbeans/trunk/webbeans-porting/src/main/resources/META-INF/jboss-test-harness.properties Sun Nov 15 01:52:05 2009
@@ -0,0 +1,26 @@
+#Licensed to the Apache Software Foundation (ASF) under one
+#or more contributor license agreements. See the NOTICE file
+#distributed with this work for additional information
+#regarding copyright ownership. The ASF licenses this file
+#to you 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 distributed under the License is distributed on an
+#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#KIND, either express or implied. See the License for the
+#specific language governing permissions and limitations
+#under the License.
+
+org.jboss.jsr299.tck.spi.Managers=org.apache.webbeans.test.tck.ManagersImpl
+org.jboss.jsr299.tck.spi.Beans=org.apache.webbeans.test.tck.BeansImpl
+org.jboss.jsr299.tck.spi.Contexts=org.apache.webbeans.test.tck.ContextsImpl
+org.jboss.jsr299.tck.spi.EL=org.apache.webbeans.test.tck.ELImpl
+
+org.jboss.testharness.standalone=false
+org.jboss.testharness.runIntegrationTests=true
+
+org.jboss.testharness.api.TestLauncher=org.jboss.testharness.impl.runner.servlet.ServletTestLauncher
Propchange: incubator/openwebbeans/trunk/webbeans-porting/src/main/resources/META-INF/jboss-test-harness.properties
------------------------------------------------------------------------------
svn:eol-style = native