You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2017/01/06 10:59:43 UTC
svn commit: r1777587 -
/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/test/java/org/apache/myfaces/tobago/example/demo/QUnitTests.java
Author: deki
Date: Fri Jan 6 10:59:42 2017
New Revision: 1777587
URL: http://svn.apache.org/viewvc?rev=1777587&view=rev
Log:
added logging to analyze build failure https://builds.apache.org/view/All/job/Tobago 3.0.x integration-test/
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/test/java/org/apache/myfaces/tobago/example/demo/QUnitTests.java
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/test/java/org/apache/myfaces/tobago/example/demo/QUnitTests.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/test/java/org/apache/myfaces/tobago/example/demo/QUnitTests.java?rev=1777587&r1=1777586&r2=1777587&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/test/java/org/apache/myfaces/tobago/example/demo/QUnitTests.java (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/test/java/org/apache/myfaces/tobago/example/demo/QUnitTests.java Fri Jan 6 10:59:42 2017
@@ -63,6 +63,7 @@ public class QUnitTests {
@Deployment
public static WebArchive createDeployment() {
+ LOG.error("XXX Deployment Start XXX");
File pom = new File("tobago-example/tobago-example-demo/pom.xml");
if (!pom.exists()) {
LOG.warn("unable to find pom - fall back");
@@ -75,12 +76,19 @@ public class QUnitTests {
LOG.error("", e);
}
}
- WebArchive webArchive = ShrinkWrap.create(MavenImporter.class).
- loadPomFromFile(pom, "jsf-provided", "!myfaces-2.0").importBuildOutput()
- .as(WebArchive.class);
- // XXX there should be a proper profile in POM for that
- webArchive.delete("/WEB-INF/lib/hibernate-validator-4.3.2.Final.jar");
- return webArchive;
+ LOG.info("using pom {}", pom);
+ try {
+ WebArchive webArchive = ShrinkWrap.create(MavenImporter.class).
+ loadPomFromFile(pom, "jsf-provided", "!myfaces-2.0").importBuildOutput()
+ .as(WebArchive.class);
+ // XXX there should be a proper profile in POM for that
+ webArchive.delete("/WEB-INF/lib/hibernate-validator-4.3.2.Final.jar");
+ return webArchive;
+ } catch (Exception e) {
+ e.printStackTrace();
+ LOG.error("", e);
+ }
+ return null;
}
private void setupBrowser(String page, String testJs) throws UnsupportedEncodingException {