Skip to content

Commit

Permalink
LPS-19839
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoun authored and brianchandotcom committed Aug 10, 2011
1 parent 2b46beb commit eb9270d
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 2 deletions.
24 changes: 24 additions & 0 deletions build-test-plugins.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,30 @@ plugins.includes=${plugins.includes}</echo>
</if>
</target>

<target name="deploy-weblogic-10.3-plugins">
<exec dir="${lp.plugins.dir}" executable="cmd.exe">
<arg line="/c svn --username ${svn.username} --password ${svn.password} update" />
</exec>

<echo file="${lp.plugins.dir}/build.${user.name}.properties">app.server.dir=${app.server.tomcat.dir}
app.server.lib.global.dir=${app.server.tomcat.lib.global.dir}
app.server.portal.dir=${app.server.tomcat.portal.dir}

plugins.includes=${plugins.includes}</echo>

<ant dir="${lp.plugins.dir}/${plugin.types}" inheritAll="false">
<target name="clean" />
<target name="war" />
</ant>

<exec executable="${pscp.executable}">
<arg line="-pw ${vm.password} ${lp.plugins.dir}\dist\*.war ${vm.username}@${vm.host}:/oracle/middleware/user_projects/domains/deploy" />
</exec>

<delete dir="${lp.plugins.dir}/dist" />
<mkdir dir="${lp.plugins.dir}/dist" />
</target>

<target name="test-create">
<echo file="${lp.plugins.dir}/build.${user.name}.properties">app.server.dir=${app.server.tomcat.dir}</echo>

Expand Down
71 changes: 71 additions & 0 deletions build-test-weblogic-10.3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,77 @@
value="${vm.host}:7001"
/>

<if>
<isset property="hook.plugins.includes" />
<then>
<ant antfile="build-test-plugins.xml" target="deploy-weblogic-10.3-plugins">
<property name="plugin.types" value="hooks" />
<property name="plugins.deployed" value="${plugins.deployed}" />
<property name="plugins.includes" value="${hook.plugins.includes}" />
</ant>

<property name="plugins.deployed" value="true" />
</then>
</if>

<if>
<isset property="plugins.version.includes" />
<then>
<ant antfile="build-test-plugins.xml" target="deploy-versioned-weblogic-10.3-plugins">
<property name="plugins.includes" value="${plugins.version.includes}" />
</ant>
</then>
</if>

<if>
<isset property="portlet.plugins.includes" />
<then>
<ant antfile="build-test-plugins.xml" target="deploy-weblogic-10.3-plugins">
<property name="plugin.types" value="portlets" />
<property name="plugins.deployed" value="${plugins.deployed}" />
<property name="plugins.includes" value="${portlet.plugins.includes}" />
</ant>

<property name="plugins.deployed" value="true" />
</then>
</if>

<if>
<isset property="portlet.plugins.upgrade.includes" />
<then>
<ant antfile="build-test-plugins.xml" target="deploy-upgrade-weblogic-10.3-plugins">
<property name="plugin.types" value="portlets" />
<property name="plugins.includes" value="${portlet.plugins.upgrade.includes}" />
</ant>
</then>
</if>

<if>
<isset property="theme.plugins.includes" />
<then>
<ant antfile="build-test-plugins.xml" target="deploy-weblogic-10.3-plugins">
<property name="plugin.types" value="themes" />
<property name="plugins.deployed" value="${plugins.deployed}" />
<property name="plugins.includes" value="${theme.plugins.includes}" />
</ant>

<property name="plugins.deployed" value="true" />
</then>
</if>

<if>
<isset property="web.plugins.includes" />
<then>
<ant antfile="build-test-plugins.xml" target="deploy-weblogic-10.3-plugins">
<property name="plugin.types" value="webs" />
<property name="plugins.deployed" value="${plugins.deployed}" />
<property name="plugins.includes" value="${web.plugins.includes}" />
</ant>

<property name="plugins.deployed" value="true" />
</then>
</if>

<antcall target="start-selenium" />

<antcall target="run-weblogic-10.3">
Expand Down
3 changes: 1 addition & 2 deletions build-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
</target>

<target name="build-test-ant-scripts">
<property name="build-test-ant-scripts.version" value="5" />
<property name="build-test-ant-scripts.version" value="6" />

<if>
<available file="portal-web/test-ant-scripts/version" />
Expand Down Expand Up @@ -1140,7 +1140,6 @@
<param name="test.ant.script.suite" value="PluginsVimeoTestSuite" />
</antcall>


<antcall target="build-test-ant-script">
<param name="test.ant.script.command" value="plugins-weather" />
<param name="test.ant.script.plugin.portlets" value="weather-portlet" />
Expand Down
5 changes: 5 additions & 0 deletions portal-web/test-ant-templates/ant-script.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
${test.ant.script.file.plugin.webs}
<property name="test.name" value="${test.ant.script.suite}" />
</ant>

<antcall target="stop-vm">
<param name="vm.host" value="${vm.host.db}" />
</antcall>
Expand Down Expand Up @@ -219,6 +220,10 @@
</antcall>

<ant antfile="build-test-weblogic-10.3.xml" target="run-selenium-weblogic-10.3">
${test.ant.script.file.plugin.hooks}
${test.ant.script.file.plugin.portlets}
${test.ant.script.file.plugin.themes}
${test.ant.script.file.plugin.webs}
<property name="test.name" value="${test.ant.script.suite}" />
</ant>
</target>
Expand Down

0 comments on commit eb9270d

Please sign in to comment.