Skip to content

Commit

Permalink
LPS-46481 - implement ways to override "mobile.device.type" property …
Browse files Browse the repository at this point in the history
…in poshi
  • Loading branch information
kwanghlee authored and brianchandotcom committed May 3, 2014
1 parent b8ae316 commit e130ca3
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 6 deletions.
2 changes: 2 additions & 0 deletions build-test-geronimo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<antcall target="prepare-virtual-host-name-properties" />

<antcall target="start-selenium" />
Expand Down
2 changes: 2 additions & 0 deletions build-test-glassfish.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<antcall target="prepare-virtual-host-name-properties" />

<antcall target="start-selenium" />
Expand Down
2 changes: 2 additions & 0 deletions build-test-jboss-eap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ app.server.jboss.zip.name=jboss-eap-${app.server.jboss.version}.zip</echo>

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<antcall target="prepare-virtual-host-name-properties" />

<antcall target="start-selenium" />
Expand Down
2 changes: 2 additions & 0 deletions build-test-jboss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<antcall target="prepare-virtual-host-name-properties" />

<antcall target="start-selenium" />
Expand Down
2 changes: 2 additions & 0 deletions build-test-jetty.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<antcall target="prepare-virtual-host-name-properties" />

<antcall target="start-selenium" />
Expand Down
2 changes: 2 additions & 0 deletions build-test-jonas.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<antcall target="prepare-virtual-host-name-properties" />

<antcall target="start-selenium" />
Expand Down
2 changes: 2 additions & 0 deletions build-test-resin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<antcall target="prepare-virtual-host-name-properties" />

<antcall target="start-selenium" />
Expand Down
2 changes: 2 additions & 0 deletions build-test-tcserver.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<if>
<isset property="vm.host" />
<then>
Expand Down
2 changes: 2 additions & 0 deletions build-test-tomcat-oracle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<if>
<isset property="vm.host" />
<then>
Expand Down
2 changes: 2 additions & 0 deletions build-test-tomcat-postgresql.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<if>
<isset property="vm.host" />
<then>
Expand Down
2 changes: 2 additions & 0 deletions build-test-tomcat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<if>
<isset property="vm.host" />
<then>
Expand Down
2 changes: 2 additions & 0 deletions build-test-weblogic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<antcall target="prepare-selenium">
<param name="test.class" value="${test.name}" />
</antcall>
Expand Down
2 changes: 2 additions & 0 deletions build-test-websphere.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

<antcall target="revert-test-properties" />

<ant dir="portal-impl" target="build-selenium-new-test-case" />

<antcall target="prepare-selenium">
<param name="test.class" value="${test.name}" />
</antcall>
Expand Down
20 changes: 14 additions & 6 deletions build-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@

<propertycopy from="liferay.portal.${liferay.portal.branch}.bundle" name="liferay.portal.bundle" />

<propertycopy from="mobile.device.resolution[${mobile.device.type}]" name="mobile.device.resolution" />
<propertycopy from="mobile.device.user.agent[${mobile.device.type}]" name="mobile.device.user.agent" />

<propertycopy from="operating.system.${operating.system.type}.version" name="operating.system.version" />

<property name="plink.executable" location="${project.dir}/tools/putty/plink.exe" />
Expand Down Expand Up @@ -1077,6 +1074,10 @@ create database lportal2 character set utf8;</echo>
</target>

<target name="generate-test-properties" depends="check-config">
<property file="${project.dir}/test.generated.properties" />

<var name="mobile.device.type" unset="true" />

<if>
<contains string="${test.class}" substring="#" />
<then>
Expand Down Expand Up @@ -1139,6 +1140,15 @@ create database lportal2 character set utf8;</echo>
</loadfile>

<echo file="${basedir}/test.run.properties">${test.properties.expanded}</echo>

<property file="${project.dir}/test.${user.name}.properties" />
<property file="${project.dir}/test.${env.COMPUTERNAME}.properties" />
<property file="${project.dir}/test.${env.HOST}.properties" />
<property file="${project.dir}/test.${env.HOSTNAME}.properties" />
<property file="${project.dir}/test.properties" />

<propertycopy from="mobile.device.resolution[${mobile.device.type}]" name="mobile.device.resolution" />
<propertycopy from="mobile.device.user.agent[${mobile.device.type}]" name="mobile.device.user.agent" />
</target>

<target name="merge-jenkins-test-results">
Expand Down Expand Up @@ -1734,9 +1744,7 @@ tck.url=true</echo>
</replace>
</target>

<target name="prepare-selenium">
<ant dir="portal-impl" target="build-selenium-new-test-case" />

<target name="prepare-selenium" depends="generate-test-properties">
<delete file="portal-web/test/test-portal-web-ext.properties" />

<if>
Expand Down

0 comments on commit e130ca3

Please sign in to comment.