EMBJOPR SVN: r888 - in branches/EmbJopr-1.4.0-SN-EAP5/jsfunit: src/test/java/org/jboss/jopr/jsfunit and 4 other directories.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2010-03-26 15:14:25 -0400 (Fri, 26 Mar 2010)
New Revision: 888
Modified:
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/HelloJoprTest.java
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/JavaScriptTest.java
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/MultipleUserLoginTest.java
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ResourceTestBase.java
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/datasources/DatasourceTest.java
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/testdata/jboss-configuration/conf/jboss-log4j.xml
Log:
* POM: Updated versions:
JSFUnit 1.2.0.Final <-- 1.1.0.GA-HTMLUnit26
HTMLUnit 2.7 <-- 2.6
jDOM 1.1 <-- 1.0
commons-lang 2.5 <-- 2.4
commons-codec 1.4 <-- 1.3
junit 4.8.1 (added - was brought in by JSFUnit 1.1)
* EJTT rewritten to conform to HTMLUnit 2.7
* POM: Added: admin / admin credentials to Cargo Maven plugin config.
* POM: Added: disable nav-tree AJAX.
* POM: "debug" profile moved above cargo to show the message about waiting at port :4000 before it really happens.
* Workaround for HTMLUnit XPath bug (started working on)
* Logging of irrelevant HTML style warnings muted.
Property changes on: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit
___________________________________________________________________
Name: svn:ignore
- nb-configuration.xml
TEST-TestSuite-01.xsl
parent
CHANGES.txt
pom_1.xml
TEST-TestSuite-02.xsl
pom_05-XSLT.xml
pom_3.xml
pom_2.xml
pom_pure_maven.xml
target
TEST-TestSuite.xsl
pom_4.xml
nbactions.xml
+ nb-configuration.xml
TEST-TestSuite-01.xsl
parent
CHANGES.txt
pom_1.xml
TEST-TestSuite-02.xsl
pom_05-XSLT.xml
pom_3.xml
pom_2.xml
pom_pure_maven.xml
target
TEST-TestSuite.xsl
pom_4.xml
nbactions.xml
target-233of308
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-03-26 14:46:54 UTC (rev 887)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-03-26 19:14:25 UTC (rev 888)
@@ -9,7 +9,7 @@
<mavenConflictResolvers>newest,nearest</mavenConflictResolvers>
<cargo.plugin.version>1.0.1-SNAPSHOT</cargo.plugin.version>
- <jsfunit.version>1.1.0.GA-HTMLUnit26</jsfunit.version> <!-- 1.2.0.GA-SNAPSHOT -->
+ <jsfunit.version>1.2.0.Final</jsfunit.version> <!-- 1.1.0.GA-HTMLUnit26 -->
<jvm.args.debug></jvm.args.debug> <!-- Used by the -Pdebug profile. -->
<jvm.args.profiler></jvm.args.profiler> <!-- Used by the -Pprofile profile. -->
@@ -23,7 +23,7 @@
<htmlunit.browser>ff3</htmlunit.browser><!-- ff2 | ff3 | ie6 | ie7 -->
<jboss.isSecured>true</jboss.isSecured><!-- true | false ; True if JBoss AS/EAP is secured. Only informative for EJTT - has no effect on AS. -->
- <as.dist.war></as.dist.war> <!-- Used for overlaying a distribution war. -->
+ <as.dist.war></as.dist.war> <!-- Used for o verlaying a distribution war. -->
</properties>
<parent>
@@ -106,14 +106,22 @@
<groupId>net.sourceforge.htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<scope>compile</scope>
- <version>2.6</version>
+ <version>2.7</version>
</dependency>
<dependency>
+ <groupId>net.sourceforge.htmlunit</groupId>
+ <artifactId>htmlunit-core-js</artifactId>
+ <scope>compile</scope>
+ <version>2.7</version>
+ </dependency>
+ <!--
+ <dependency>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
<scope>compile</scope>
<version>1.7R2</version>
</dependency>
+ -->
<!-- For version comparison -->
<dependency>
@@ -142,19 +150,19 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>2.0.1-FCS</version> <!-- 2.0 -->
+ <version>2.0.1-FCS</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.jbossas</groupId>
<artifactId>jboss-as-j2se</artifactId>
- <version>5.1.0.GA</version> <!-- 5.1.0.GA -->
+ <version>5.1.0.GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
- <version>2.5</version> <!-- 2.5 -->
+ <version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -167,34 +175,34 @@
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<scope>provided</scope>
- <version>2.9.1</version> <!-- 2.9.1 -->
+ <version>2.9.1</version>
</dependency>
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
- <version>1.0</version> <!-- 1.1 -->
+ <version>1.1</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
- <version>2.4</version>
+ <version>2.5</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
- <version>1.3</version>
+ <version>1.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.integration</groupId>
<artifactId>jboss-profileservice-spi</artifactId>
- <version>5.1.0.GA</version> <!-- 5.1.0.SP1 -->
+ <version>5.1.0.GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.man</groupId>
<artifactId>jboss-metatype</artifactId>
- <version>2.1.1.GA</version> <!-- 2.1.1.GA -->
+ <version>2.1.1.GA</version>
<scope>provided</scope>
</dependency>
<dependency>
@@ -212,9 +220,16 @@
<dependency>
<groupId>org.jboss.javaee</groupId>
<artifactId>jboss-javaee</artifactId>
- <version>5.0.1.GA</version> <!-- 5.2.0.Beta1 -->
+ <version>5.0.1.GA</version>
<scope>provided</scope>
</dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.1</version>
+ <scope>compile</scope>
+ </dependency>
</dependencies>
@@ -362,16 +377,12 @@
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
- <goals>
- <goal>start</goal>
- </goals>
+ <goals> <goal>start</goal> </goals>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
- <goals>
- <goal>stop</goal>
- </goals>
+ <goals> <goal>stop</goal> </goals>
</execution>
</executions>
</plugin>
@@ -449,6 +460,16 @@
<artifactId>maven-replacer-plugin</artifactId>
<version>0.0.9</version>
<executions>
+ <!--
+ <execution><id>disable-navtree-ajax</id>
+ <phase>prepare-package</phase><goals><goal>replace</goal></goals>
+ <configuration>
+ <file>${basedir}/</file>
+ <token>attribute name="EnableMessageCounters">false</token>
+ <value>attribute name="EnableMessageCounters">true</value>
+ </configuration>
+ </execution>
+ -->
<execution><id>mrp1</id>
<phase>initialize</phase><goals><goal>replace</goal></goals>
<configuration>
@@ -481,7 +502,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
- <!-- Extract WAR - SEAM bug. -->
+ <!-- Extract WAR (SEAM bug) - rename to _archive.war and unzip to a .war dir. . -->
<execution>
<id>extract_war_for_cargo</id>
<phase>package</phase> <goals><goal>run</goal></goals>
@@ -491,6 +512,9 @@
toFile="${project.build.directory}/${project.build.finalName}_archive.${project.packaging}"/>
<unzip src="${project.build.directory}/${project.build.finalName}_archive.${project.packaging}"
dest="${project.build.directory}/${project.build.finalName}.${project.packaging}"/>
+ <echo> *** Disabling navtree AJAX... *** </echo>
+ <replace file="${project.build.directory}/${project.build.finalName}.${project.packaging}/WEB-INF/facelets/resourceNavigation.xhtml"
+ token="switchType="ajax" value="switchType="server"/>
</tasks></configuration>
</execution>
<!-- Write "Don't kill" to hudson log/ -->
@@ -595,6 +619,8 @@
<cargo.jboss.configuration>${cargo.jboss.configuration}</cargo.jboss.configuration>
<!-- Set explicitely because of Cargo's bad port settings for JBoss. -->
<cargo.rmi.port>1099</cargo.rmi.port>
+ <cargo.jboss.user>admin</cargo.jboss.user>
+ <cargo.jboss.password>admin</cargo.jboss.password>
</properties>
<!-- Override Cargo's default files (some taken from cargo's .jar, some from 'default') -->
<configfiles>
@@ -804,6 +830,15 @@
<properties>
<jvm.args.debug>-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y</jvm.args.debug>
</properties>
+ <build>
+ <plugins>
+ <plugin> <artifactId>maven-antrun-plugin</artifactId>
+ <executions> <execution> <phase>pre-integration-test</phase> <goals><goal>run</goal></goals> <configuration> <tasks>
+ <echo> *** Waiting for debugger connection at port :4000 ... *** </echo>
+ </tasks> </configuration> </execution> </executions>
+ </plugin>
+ </plugins>
+ </build>
</profile>
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2010-03-26 14:46:54 UTC (rev 887)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2010-03-26 19:14:25 UTC (rev 888)
@@ -169,6 +169,9 @@
this.client = jsfSession.getJSFClientSession();
this.server = jsfSession.getJSFServerSession();
+ this.server.getFacesContext().getExternalContext().getApplicationMap().put("resourceNavigationServerType", Boolean.TRUE);
+
+
this.ejtt = new EmbJoprTestToolkit(client, server);
this.ejtt.setCurrentTest(this);
}
@@ -210,7 +213,7 @@
HtmlAnchor link = getLinkInsideForm(formId, resourceName);
// The id will look like "resourceSummaryForm:dataTable:2:resourceName"
// I need the row number. (2 in the above example)
- String id = link.getIdAttribute();
+ String id = link.getId();
String[] idElements = id.split(":");
String row = idElements[idElements.length - 2];
// resourceSummaryForm:dataTable:2:removeButton
@@ -223,8 +226,19 @@
public HtmlAnchor getLinkInsideForm(String formId, String linkLabel)
{
HtmlForm form = (HtmlForm)client.getElement(formId);
+ /*
List links = form.getByXPath(".//a"); // get all <a> tags inside form
+ List linksA = form.getByXPath(".//A"); // get all <a> tags inside form
+ List linksB = form.getByXPath(".//a/text()"); // debug
+ List linksC = form.getByXPath(".//*"); // debug
+ List linksTA = form.getByXPath(".//table"); // debug
+ List linksTR = form.getByXPath(".//tr"); // debug
+ List linksTD = form.getByXPath(".//td"); // debug
+ List linksX1 = form.getByXPath(".//*[normalize-space() = '"+linkLabel+"']"); // debug
+ List linksX2 = form.getByXPath(".//a[normalize-space() = '"+linkLabel+"']"); // debug
+ List linksX3 = form.getByXPath(".//A[normalize-space() = '"+linkLabel+"']"); // debug
+ List linksX4 = form.getByXPath(".//*[name() = 'a' and normalize-space() = '"+linkLabel+"']"); // debug
for (Iterator i = links.iterator(); i.hasNext();)
{
HtmlAnchor link = (HtmlAnchor)i.next();
@@ -233,32 +247,35 @@
linkText = linkText.trim(); // ignore any leading or trailing spaces
if (linkText.equals(linkLabel)) return link;
}
-
+ */
+ List links = form.getByXPath(".//*[name() = 'a' and normalize-space() = '"+linkLabel+"']"); // get all <a> tags inside form
+ if (links.size() == 1 ) return (HtmlAnchor) links.get(0);
throw new IllegalStateException("Link for '"+ linkLabel +"' not found in form #"+formId);
}
-
+
+
/**
* Finds the arrow icon in the nav tree that corresponds to the resource
* given by resourceName. This method is used to expand tree nodes
* (eg. "Web Applications (WAR)", "Datasources", etc.) in the
* navigation tree.
*/
- public ClickableElement getNavTreeArrow(String resourceName) throws EmbJoprTestException {
+ public HtmlElement getNavTreeArrow(String resourceName) throws EmbJoprTestException {
// Tree.Item JS object can be still loading.
- ejtt.navTree.waitUntilReady(100, 15);
+ //ejtt.navTree.waitUntilReady(100, 100);
// After expanding some node, it's children are loaded using AJAX.
// Here, we wait for the node with given label to appear in the nav tree.
ejtt.navTree.waitUntilNodeLoadedByAjax(resourceName, 200, 10);
HtmlAnchor link = getNavTreeLink(resourceName);
- String id = link.getIdAttribute();
+ String id = link.getId();
// An example id is: "navTreeForm:navTree:81:82:83:84::typeSummaryLink"
// The icon's id would be: "81:82:83:84::typeSummary:handle:img:collapsed"
int index = id.lastIndexOf("Link");
id = id.substring(0, index) + ":handle";
- return (ClickableElement)client.getElement(id);
+ return (HtmlElement)client.getElement(id);
}
/**
@@ -267,7 +284,7 @@
public void expandNavTreeArrow(String resourceName) throws IOException, EmbJoprTestException {
// Expand the tree node
- ClickableElement resourceArrow = getNavTreeArrow(resourceName);
+ HtmlElement resourceArrow = getNavTreeArrow(resourceName);
resourceArrow.click();
}
@@ -299,7 +316,7 @@
HtmlTableCell metric = row.getCell(0);
if(metric.asText().equals(metricName)) {
- String id = metric.getIdAttribute();
+ String id = metric.getId();
// An example id is: dataTable:0:j_id118:2:j_id119
// We would need: dataTable:0:j_id118:2:measurementValue
@@ -664,7 +681,7 @@
public void refreshTreeNode(String nodeName) throws EmbJoprTestException {
try {
// Collapse and then expand the nav tree node
- ClickableElement nodeArrow = getNavTreeArrow(nodeName);
+ HtmlElement nodeArrow = getNavTreeArrow(nodeName);
nodeArrow.click();
nodeArrow = getNavTreeArrow(nodeName);
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/HelloJoprTest.java
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/HelloJoprTest.java 2010-03-26 14:46:54 UTC (rev 887)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/HelloJoprTest.java 2010-03-26 19:14:25 UTC (rev 888)
@@ -213,7 +213,7 @@
HtmlAnchor link = getLinkInsideForm("resourceSummaryForm", resourceName);
// The id will look like "resourceSummaryForm:dataTable:2:resourceName"
// I need the row number. (2 in the above example)
- String id = link.getIdAttribute();
+ String id = link.getId();
String[] idElements = id.split(":");
String row = idElements[idElements.length - 2];
return (HtmlButtonInput) client.getElement(row + ":removeButton");
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/JavaScriptTest.java
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/JavaScriptTest.java 2010-03-26 14:46:54 UTC (rev 887)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/JavaScriptTest.java 2010-03-26 19:14:25 UTC (rev 888)
@@ -27,11 +27,12 @@
import java.io.IOException;
import junit.framework.Test;
import junit.framework.TestSuite;
+import net.sourceforge.htmlunit.corejs.javascript.NativeFunction;
import org.apache.commons.lang.ObjectUtils;
import org.jboss.jopr.jsfunit.util.ActiveConditionChecker;
import org.jboss.jopr.jsfunit.util.DescribedCondition;
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit;
-import org.mozilla.javascript.NativeFunction;
+//import org.mozilla.javascript.NativeFunction;
/**
* JavaScript tests. Primarily written to try how Rhino JavaScript impl works.
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/MultipleUserLoginTest.java
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/MultipleUserLoginTest.java 2010-03-26 14:46:54 UTC (rev 887)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/MultipleUserLoginTest.java 2010-03-26 19:14:25 UTC (rev 888)
@@ -235,10 +235,10 @@
protected Page clickSubmitComponent(HtmlPage page, String elementName) throws IOException
{
HtmlElement htmlElement = getElement(page, elementName);
- if (!(htmlElement instanceof ClickableElement))
- throw new IllegalStateException("Component with name=" + elementName + " is not a ClickableElement.");
+ if (!(htmlElement instanceof HtmlElement))
+ throw new IllegalStateException("Component with name=" + elementName + " is not a HtmlElement.");
- ClickableElement clickable = (ClickableElement)htmlElement;
+ HtmlElement clickable = (HtmlElement)htmlElement;
return clickable.click();
}
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ResourceTestBase.java
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ResourceTestBase.java 2010-03-26 14:46:54 UTC (rev 887)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/ResourceTestBase.java 2010-03-26 19:14:25 UTC (rev 888)
@@ -40,6 +40,7 @@
import org.apache.commons.lang.StringUtils;
import org.jboss.jopr.jsfunit.util.EmbJoprTestToolkit.NavTreeNode;
import org.jboss.jopr.jsfunit.exceptions.*;
+import org.jboss.jsfunit.jsfsession.ComponentIDNotFoundException;
/**
* This class contains basic methods for creating, configuring, and deleting
@@ -283,7 +284,12 @@
} catch (IllegalStateException e) {
// The delete button was not found on this page
- client.click(NEXT_PAGE);
+ try {
+ client.click(NEXT_PAGE);
+ }catch( ComponentIDNotFoundException ex ){
+ new EmbJoprTestException("'"+NEXT_PAGE+"' not found for resource "+resourceName+" in form "+resourceFormName, this);
+ throw ex;
+ }
deleteButton = getDeleteButton(resourceFormName, resourceName);
deleteButton.click();
}
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/datasources/DatasourceTest.java
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/datasources/DatasourceTest.java 2010-03-26 14:46:54 UTC (rev 887)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/datasources/DatasourceTest.java 2010-03-26 19:14:25 UTC (rev 888)
@@ -67,7 +67,7 @@
Map<String, String> propertiesMap) throws IOException, EmbJoprTestException {
// Expand the "Datasources" tree node
- ClickableElement datasourcesArrow = getNavTreeArrow(DS_NAV_LABEL);
+ HtmlElement datasourcesArrow = getNavTreeArrow(DS_NAV_LABEL);
datasourcesArrow.click();
HtmlAnchor datasourceLink = getNavTreeLink(datasourceType.getLabel());
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java 2010-03-26 14:46:54 UTC (rev 887)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java 2010-03-26 19:14:25 UTC (rev 888)
@@ -32,6 +32,7 @@
import javax.management.MBeanServer;
import javax.management.ObjectName;
import javax.servlet.http.HttpServletRequest;
+import net.sourceforge.htmlunit.corejs.javascript.NativeFunction;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
import org.jboss.jopr.jsfunit.AppConstants;
@@ -44,7 +45,7 @@
import org.jboss.jsfunit.jsfsession.*;
import org.jboss.logging.Logger;
import org.jboss.mx.util.MBeanServerLocator;
-import org.mozilla.javascript.NativeFunction;
+//import org.mozilla.javascript.NativeFunction;
import org.w3c.dom.Element;
@@ -409,16 +410,16 @@
* navigation tree.
* @see getNodeByLabel().getArrowLink()
*/
- public ClickableElement getNodeArrow(String resourceName) throws HtmlElementNotFoundException
+ public HtmlElement getNodeArrow(String resourceName) throws HtmlElementNotFoundException
{
HtmlAnchor link = getNodeLink(resourceName);
- String id = link.getIdAttribute();
+ String id = link.getId();
// An example id is: "navTreeForm:navTree:81:82:83:84::typeSummaryLink"
// The icon's id would be: "81:82:83:84::typeSummary:handle:img:collapsed"
int index = id.lastIndexOf("Link");
id = id.substring(0, index) + ":handle";
- return (ClickableElement)client.getElement(id);
+ return (HtmlElement)client.getElement(id);
}
@@ -640,11 +641,11 @@
return new TabContentBox(tabContentBox);
}
- public ClickableElement getTabByLabel( String label ) throws HtmlElementNotFoundException
+ public HtmlElement getTabByLabel( String label ) throws HtmlElementNotFoundException
{
DomElement element = (DomElement)client.getElement("tabmenu");
String xPath = "ul/li/span[normalize-space(string())='"+label+"'] | ul/li/a[normalize-space(string())='"+label+"']";
- ClickableElement tabContent = element.getFirstByXPath(xPath);
+ HtmlElement tabContent = element.getFirstByXPath(xPath);
if( null == tabContent )
@@ -653,9 +654,9 @@
return tabContent;
}
- public ClickableElement getTabByID( String tabID ) throws HtmlElementNotFoundException
+ public HtmlElement getTabByID( String tabID ) throws HtmlElementNotFoundException
{
- ClickableElement element = (ClickableElement)client.getElement(tabID);
+ HtmlElement element = (HtmlElement)client.getElement(tabID);
if( null == element )
throw new HtmlElementNotFoundException("Tab with id '"+tabID+"' not found, perhaps disabled?", currentTest);
@@ -688,24 +689,24 @@
return isTabDisabled( getTabByID(id) );
}
- public boolean isTabActive( StyledElement tab ){
+ public boolean isTabActive( HtmlElement tab ){
return "span".equals( tab.getTagName() )
- && tab.getClassAttribute().contains("active");
+ && tab.getAttribute("class").contains("active");
}
- public boolean isTabDisabled( StyledElement tab ){
+ public boolean isTabDisabled( HtmlElement tab ){
return "span".equals( tab.getTagName() )
- && tab.getClassAttribute().contains("disabled");
+ && tab.getAttribute("class").contains("disabled");
}
/** Shotcut - getTab(label).click(); Not necesarilly clicks an anchor. */
public void clickTab( String label ) throws IOException, ActionNotAvailableException, HtmlElementNotFoundException {
- StyledElement tabContent = getTabByLabel(label);
- if( !( tabContent instanceof ClickableElement ) )
+ HtmlElement tabContent = getTabByLabel(label);
+ if( !( tabContent instanceof HtmlElement ) )
throw new ActionNotAvailableException("Tab element <"+tabContent.getTagName()+"> is not clickable: "+label);
- ((ClickableElement)tabContent).click();
+ ((HtmlElement)tabContent).click();
}
@@ -972,11 +973,11 @@
/**
* Finds first button with given label inside this tab box.
*/
- public ClickableElement getButtonByLabel( String label )
+ public HtmlElement getButtonByLabel( String label )
throws HtmlElementNotFoundException, ActionOutOfSyncException
{
checkIfStillValid();
- ClickableElement button = this.element.getFirstByXPath(".//input[normalize-space(@value)='"+label+"']");
+ HtmlElement button = this.element.getFirstByXPath(".//input[normalize-space(@value)='"+label+"']");
if( null == button )
throw new HtmlElementNotFoundException("Button labelled '"+label+"' not found.", currentTest);
@@ -1709,7 +1710,7 @@
* @returns the button element - either HtmlButtonInput or HtmlButton.
* @throws org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException
*/
- public ClickableElement getButtonByLabel( String label ) throws HtmlElementNotFoundException
+ public HtmlElement getButtonByLabel( String label ) throws HtmlElementNotFoundException
{
String xPath = ".//input[@type='button' and normalize-space(@value) = '"+label+"']" +
" | .//button[normalize-space() = '"+label+"']";
@@ -1719,7 +1720,7 @@
if( !(elm instanceof HtmlButton ) && !(elm instanceof HtmlButtonInput) )
throw new HtmlElementNotFoundException("Element is not a button, but: "+elm.getClass().getName());
- return (ClickableElement)elm;
+ return (HtmlElement)elm;
}
@@ -1935,7 +1936,7 @@
public boolean isPageActive( int pageNumber ) throws IOException, HtmlElementNotFoundException{
- return !getGoPage(pageNumber).getStyleAttribute().contains("-inact");
+ return !getGoPage(pageNumber).getAttribute("style").contains("-inact");
}
public int getPageCount() throws HtmlElementNotFoundException {
@@ -2043,8 +2044,8 @@
/**
* Finds element by ID and returns retyped as HTML button.
*/
- public ClickableElement getClickableByID( String id ) throws HtmlElementNotFoundException {
- ClickableElement clickable = (ClickableElement) client.getElement( id );
+ public HtmlElement getClickableByID( String id ) throws HtmlElementNotFoundException {
+ HtmlElement clickable = (HtmlElement) client.getElement( id );
if( null == clickable )
throw new HtmlElementNotFoundException("Can't find element with ID: "+id);
return clickable;
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/testdata/jboss-configuration/conf/jboss-log4j.xml
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/testdata/jboss-configuration/conf/jboss-log4j.xml 2010-03-26 14:46:54 UTC (rev 887)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/testdata/jboss-configuration/conf/jboss-log4j.xml 2010-03-26 19:14:25 UTC (rev 888)
@@ -218,6 +218,10 @@
<category name="com.gargoylesoftware.htmlunit.html.HtmlScript">
<priority value="INFO"/>
</category>
+ <!-- Too much of "WARN [IncorrectnessListenerImpl] Obsolete content type encountered: 'text/javascript'." -->
+ <category name="com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl">
+ <priority value="ERROR"/>
+ </category>
<category name="org.jboss.managed.plugins.factory.AbstractManagedObjectFactory">
<priority value="INFO"/>
14 years, 9 months
EMBJOPR SVN: r887 - in trunk: core/src/main/webapp/WEB-INF/classes and 1 other directory.
by embjopr-commits@lists.jboss.org
Author: ips
Date: 2010-03-26 10:46:54 -0400 (Fri, 26 Mar 2010)
New Revision: 887
Modified:
trunk/core/src/main/webapp/WEB-INF/classes/messages.properties
trunk/pom.xml
Log:
upgrade RHQ from 1.4.0.M01 to 3.0.0.B04; update copyright date in footer from 2009 to 2010
Modified: trunk/core/src/main/webapp/WEB-INF/classes/messages.properties
===================================================================
--- trunk/core/src/main/webapp/WEB-INF/classes/messages.properties 2010-03-24 05:47:10 UTC (rev 886)
+++ trunk/core/src/main/webapp/WEB-INF/classes/messages.properties 2010-03-26 14:46:54 UTC (rev 887)
@@ -1,6 +1,6 @@
#
# Embedded Jopr Project
-# Copyright (C) 2006-2009 Red Hat, Inc.
+# Copyright (C) 2006-2010 Red Hat, Inc.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
@@ -23,7 +23,7 @@
product.name=${product.name}
product.version=${product.version}
product.buildNumber=${buildNumber}
-product.copyright=© 2002-2009 Red Hat Middleware, LLC. All rights reserved. JBoss is a registered trademark of Red Hat, Inc.
+product.copyright=© 2002-2010 Red Hat Middleware, LLC. All rights reserved. JBoss is a registered trademark of Red Hat, Inc.
default.windowTitle=${product.name}
#default.header=${product.name}
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-03-24 05:47:10 UTC (rev 886)
+++ trunk/pom.xml 2010-03-26 14:46:54 UTC (rev 887)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.rhq</groupId>
<artifactId>rhq-parent</artifactId>
- <version>1.4.0.B01</version>
+ <version>3.0.0.B04</version>
</parent>
<groupId>org.jboss.jopr</groupId>
@@ -65,9 +65,9 @@
<!-- dependency versions -->
<jaxb.version>2.1.9</jaxb.version>
<jboss.web.version>3.0.0-beta-2</jboss.web.version>
- <jopr.version>1.4.0.B01</jopr.version>
+ <jopr.version>3.0.0.B04</jopr.version>
<richfaces.version>3.3.3.CR1</richfaces.version>
- <rhq.version>1.4.0.B01</rhq.version>
+ <rhq.version>3.0.0.B04</rhq.version>
<seam.version>2.1.0.SP1</seam.version>
<seam.embedded.version>beta3.SP3</seam.embedded.version>
<!-- This is a special patched version of not-yet-released Facelets 1.1.15,
@@ -118,7 +118,42 @@
</dependency>
</dependencies>
</plugin>
-
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-build-number-properties</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>git</executable>
+ <skip>true</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>read-build-properties</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>read-project-properties</goal>
+ </goals>
+ <configuration>
+ <files/>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
</plugins>
</build>
14 years, 9 months
EMBJOPR SVN: r886 - branches/EmbJopr-1.4.0-SN-EAP5/jsfunit.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2010-03-24 01:47:10 -0400 (Wed, 24 Mar 2010)
New Revision: 886
Modified:
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
Log:
* POM: Hudson profile removed; library copying removed as WAR overlaying was fixed.
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-03-24 03:44:21 UTC (rev 885)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-03-24 05:47:10 UTC (rev 886)
@@ -252,7 +252,7 @@
<echo> *** dist-war profile activated. *** </echo>
</tasks> </configuration> </execution>
- <execution> <id>copy-libs</id> <phase>prepare-package</phase> <goals><goal>run</goal></goals> <configuration> <tasks>
+ <execution> <id>copy-libs</id> <phase><!--prepare-package-->never</phase> <goals><goal>run</goal></goals> <configuration> <tasks>
<echo> *** Copying dist-WAR/WEB-INF/lib to WEB-INF/lib... *** </echo>
<unzip src="${as.dist.war}" dest="${basedir}/target/tmp/distwar"/>
<!-- 1), use with <overlay>. -->
@@ -264,8 +264,8 @@
</tasks> </configuration> </execution>
</executions> </plugin>
- <!-- WAR overlay needs an artifact. -->
-
+
+ <!-- WAR overlay, needs an artifact. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
@@ -1022,22 +1022,10 @@
</profile>
-
-
- <!-- Hudson profile (commented out - hesitating to hard-code version dir to pom.xml)
- <profile>
- <id>running-in-hudson</id>
- <activation>
- <property><name>user.name</name><value>hudson</value></property>
- </activation>
- <properties>
- <JBOSS_HOME>${basedir}/jbossas-5.x/build/output/jboss-5.1.0.Beta1</JBOSS_HOME>
- </properties>
- </profile>-->
-
</profiles>
+
<build>
<finalName>admin-console-jsfunit</finalName>
14 years, 9 months
EMBJOPR SVN: r885 - branches/EmbJopr-1.4.0-SN-EAP5/jsfunit.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2010-03-23 23:44:21 -0400 (Tue, 23 Mar 2010)
New Revision: 885
Modified:
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
Log:
* POM: Fixed the WAR overlaying.
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-03-23 18:51:58 UTC (rev 884)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-03-24 03:44:21 UTC (rev 885)
@@ -235,6 +235,14 @@
<scope>system</scope>
<systemPath>${as.dist.war}</systemPath>
</dependency>
+ <dependency>
+ <groupId>dist-war-zip</groupId>
+ <artifactId>dist-war-zip</artifactId>
+ <version>0.0.0</version>
+ <type>zip</type>
+ <scope>system</scope>
+ <systemPath>${as.dist.war}.zip</systemPath>
+ </dependency>
</dependencies>
<build>
<plugins>
@@ -258,6 +266,23 @@
</executions> </plugin>
<!-- WAR overlay needs an artifact. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <dependentWarIncludes>**,**/jboss-structure.xml</dependentWarIncludes>
+ <overlays>
+ <overlay/>
+ <overlay>
+ <groupId>dist-war-zip</groupId>
+ <artifactId>dist-war-zip</artifactId>
+ <type>zip</type>
+ <targetPath></targetPath>
+ </overlay>
+ </overlays>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
</profile>
@@ -473,7 +498,7 @@
<id>dont_kill_appeal</id>
<phase>pre-integration-test</phase> <goals><goal>run</goal></goals>
<configuration><tasks>
- <echo>########################## Please don't kill this job unless it takes more than six hours.</echo>
+ <echo>########################## Please don't kill this job unless it takes more than four hours.</echo>
<echo>########################## There's no logging visible on Hudson during test run.</echo>
</tasks></configuration>
</execution>
14 years, 9 months
EMBJOPR SVN: r884 - trunk/jsfunit.
by embjopr-commits@lists.jboss.org
Author: smcgowan(a)redhat.com
Date: 2010-03-23 14:51:58 -0400 (Tue, 23 Mar 2010)
New Revision: 884
Modified:
trunk/jsfunit/pom.xml
Log:
EMBJOPR-296 - get the build working, need to fix JMS destinations
Modified: trunk/jsfunit/pom.xml
===================================================================
--- trunk/jsfunit/pom.xml 2010-03-19 03:11:24 UTC (rev 883)
+++ trunk/jsfunit/pom.xml 2010-03-23 18:51:58 UTC (rev 884)
@@ -730,7 +730,7 @@
<build>
<plugins>
- <!-- Enable message counters in messaging-service.xml -->
+ <!-- FIXME: Enable message counters in messaging-service.xml
<plugin>
<groupId>bakersoftware</groupId>
<artifactId>maven-replacer-plugin</artifactId>
@@ -762,6 +762,7 @@
</execution>
</executions>
</plugin>
+ -->
<!-- AntRun - Exctract the war to let Cargo plugin deploy it. -->
<plugin>
14 years, 9 months
EMBJOPR SVN: r883 - branches/EmbJopr-1.4.0-SN-EAP5/jsfunit.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2010-03-18 23:11:24 -0400 (Thu, 18 Mar 2010)
New Revision: 883
Modified:
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
Log:
* POM: Fixed the WAR overlaying - copied libs from the dist WAR to lib. Who would expect such stupid task to be this complicated.
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-03-18 23:16:53 UTC (rev 882)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-03-19 03:11:24 UTC (rev 883)
@@ -238,11 +238,26 @@
</dependencies>
<build>
<plugins>
- <plugin> <artifactId>maven-antrun-plugin</artifactId>
- <executions> <execution> <phase>initialize</phase> <goals><goal>run</goal></goals> <configuration> <tasks>
+ <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions>
+
+ <execution> <id>echo</id> <phase>initialize</phase> <goals><goal>run</goal></goals> <configuration> <tasks>
<echo> *** dist-war profile activated. *** </echo>
- </tasks> </configuration> </execution> </executions>
- </plugin>
+ </tasks> </configuration> </execution>
+
+ <execution> <id>copy-libs</id> <phase>prepare-package</phase> <goals><goal>run</goal></goals> <configuration> <tasks>
+ <echo> *** Copying dist-WAR/WEB-INF/lib to WEB-INF/lib... *** </echo>
+ <unzip src="${as.dist.war}" dest="${basedir}/target/tmp/distwar"/>
+ <!-- 1), use with <overlay>. -->
+ <zip destfile="${basedir}/target/tmp/libs.zip" compress="false" filesonly="true" basedir="${basedir}/target/tmp/distwar/WEB-INF/lib"/>
+ <!-- 2) simply copy. ${project.build.finalName}.${project.packaging} -->
+ <copy todir="${project.build.directory}/${project.build.finalName}/WEB-INF/lib" flatten="true" verbose="true">
+ <fileset dir="${basedir}/target/tmp/distwar/WEB-INF/lib"/>
+ </copy>
+ </tasks> </configuration> </execution>
+
+ </executions> </plugin>
+ <!-- WAR overlay needs an artifact. -->
+
</plugins>
</build>
</profile>
@@ -251,10 +266,11 @@
<!-- JBoss AS 4.2 -->
<profile>
<id>jboss42-war</id>
+ <!-- I need AND, but it's OR. TODO: Switch to property-based.
<activation>
<file><missing>${as.dist.war}</missing></file>
<property><name>jboss42</name><value>true</value></property>
- </activation>
+ </activation> -->
<dependencies>
<dependency>
<groupId>org.jboss.jopr</groupId>
@@ -379,10 +395,11 @@
<!-- JBoss AS 5.x -->
<profile>
<id>jboss5x-war</id>
+ <!-- I need AND, but it's OR. TODO: Switch to property-based.
<activation>
<file><missing>${as.dist.war}</missing></file>
<property><name>jboss5x</name><value>true</value></property>
- </activation>
+ </activation> -->
<dependencies>
<dependency>
<groupId>org.jboss.jopr</groupId>
14 years, 9 months
EMBJOPR SVN: r882 - branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/main/webapp/WEB-INF.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2010-03-18 19:16:53 -0400 (Thu, 18 Mar 2010)
New Revision: 882
Modified:
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/main/webapp/WEB-INF/web.xml
Log:
* web.xml: Seam loaded lazily, as in overlayed war.
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/main/webapp/WEB-INF/web.xml 2010-03-18 17:12:45 UTC (rev 881)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/src/main/webapp/WEB-INF/web.xml 2010-03-18 23:16:53 UTC (rev 882)
@@ -86,11 +86,15 @@
</servlet-mapping>
- <!-- Seam -->
+ <!-- Seam (lazy loaded)-->
<listener>
- <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
+ <listener-class>org.jboss.on.embedded.LazyStartupListener</listener-class>
</listener>
+ <context-param>
+ <param-name>org.jboss.on.embedded.LazyStartupListener</param-name>
+ <param-value>org.jboss.seam.servlet.SeamListener</param-value>
+ </context-param>
@@ -99,7 +103,12 @@
in web.xml. This ensures it is run first. -->
<filter>
<filter-name>Seam Filter</filter-name>
- <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
+ <!-- Lazily start up the Seam Filter -->
+ <filter-class>org.jboss.on.embedded.LazyStartupFilter</filter-class>
+ <init-param>
+ <param-name>org.jboss.on.embedded.LazyStartupFilter</param-name>
+ <param-value>org.jboss.seam.servlet.SeamFilter</param-value>
+ </init-param>
</filter>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
14 years, 9 months
EMBJOPR SVN: r881 - branches/EmbJopr-1.4.0-SN-EAP5/jsfunit.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2010-03-18 13:12:45 -0400 (Thu, 18 Mar 2010)
New Revision: 881
Modified:
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
Log:
* POM: Created dist-war profile for testing provided AS console WAR.
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-02-22 18:49:48 UTC (rev 880)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/pom.xml 2010-03-18 17:12:45 UTC (rev 881)
@@ -22,6 +22,8 @@
<cargo.jboss.bind.address>localhost</cargo.jboss.bind.address><!-- Address for JBoss AS to bind to. -->
<htmlunit.browser>ff3</htmlunit.browser><!-- ff2 | ff3 | ie6 | ie7 -->
<jboss.isSecured>true</jboss.isSecured><!-- true | false ; True if JBoss AS/EAP is secured. Only informative for EJTT - has no effect on AS. -->
+
+ <as.dist.war></as.dist.war> <!-- Used for overlaying a distribution war. -->
</properties>
<parent>
@@ -178,6 +180,12 @@
<version>2.4</version>
</dependency>
<dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.3</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
<groupId>org.jboss.integration</groupId>
<artifactId>jboss-profileservice-spi</artifactId>
<version>5.1.0.GA</version> <!-- 5.1.0.SP1 -->
@@ -212,9 +220,41 @@
<profiles>
+ <!-- JBoss AS - WAR from distribution -->
+ <profile>
+ <id>dist-war</id>
+ <activation>
+ <file><exists>${as.dist.war}</exists></file>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.jopr</groupId>
+ <artifactId>jopr-embedded-dist</artifactId>
+ <version>0.0.0</version>
+ <type>war</type>
+ <scope>system</scope>
+ <systemPath>${as.dist.war}</systemPath>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin> <artifactId>maven-antrun-plugin</artifactId>
+ <executions> <execution> <phase>initialize</phase> <goals><goal>run</goal></goals> <configuration> <tasks>
+ <echo> *** dist-war profile activated. *** </echo>
+ </tasks> </configuration> </execution> </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+
<!-- JBoss AS 4.2 -->
- <profile>
- <id>jboss4.2</id>
+ <profile>
+ <id>jboss42-war</id>
+ <activation>
+ <file><missing>${as.dist.war}</missing></file>
+ <property><name>jboss42</name><value>true</value></property>
+ </activation>
<dependencies>
<dependency>
<groupId>org.jboss.jopr</groupId>
@@ -223,7 +263,13 @@
<type>war</type>
</dependency>
</dependencies>
+ </profile>
+ <profile>
+ <id>jboss42</id>
+ <properties>
+ <jboss42>true</jboss42>
+ </properties>
<build>
<plugins>
@@ -237,7 +283,7 @@
<container>
<containerId>jboss42x</containerId>
<home>${JBOSS_HOME}</home>
- <log>${basedir}/target/jboss4.2.logs/cargo.log</log>
+ <log>${basedir}/target/jboss42-logs/cargo.log</log>
<timeout>600000</timeout> <!-- 10 minutes -->
<systemProperties>
<jboss.server.log.threshold>ALL</jboss.server.log.threshold>
@@ -332,7 +378,11 @@
<!-- JBoss AS 5.x -->
<profile>
- <id>jboss5x</id>
+ <id>jboss5x-war</id>
+ <activation>
+ <file><missing>${as.dist.war}</missing></file>
+ <property><name>jboss5x</name><value>true</value></property>
+ </activation>
<dependencies>
<dependency>
<groupId>org.jboss.jopr</groupId>
@@ -340,14 +390,14 @@
<version>${project.version}</version>
<type>war</type>
</dependency>
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <version>1.3</version>
- <scope>compile</scope>
- </dependency>
</dependencies>
+ </profile>
+ <profile>
+ <id>jboss5x</id>
+ <properties>
+ <jboss5x>true</jboss5x>
+ </properties>
<build>
<plugins>
@@ -465,7 +515,7 @@
<container>
<containerId>jboss5x</containerId>
<home>${JBOSS_HOME}</home> <!-- Binaries used by Cargo. -->
- <log>${basedir}/target/jboss5.x.logs/cargo.log</log>
+ <log>${basedir}/target/jboss5x-logs/cargo.log</log>
<timeout>420000</timeout> <!-- 7 minutes -->
<systemProperties>
<!-- Used in jboss-log4j.xml. See /testdata/... -->
14 years, 9 months