Find file
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (55 sloc) 2.04 KB
<?xml version="1.0"?>
<project basedir="." default="test" name="portal-test-jetty" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="run-jetty">
<antcall target="run-simple-server" />
</target>
<target name="run-selenium-jetty">
<app-server-properties-update>
app.server.type=jetty
</app-server-properties-update>
<if>
<not>
<isset property="build.app.server" />
</not>
<then>
<ant antfile="build-dist.xml" target="build-dist-jetty" />
</then>
</if>
<replace file="${app.server.jetty.bin.dir}/run.bat">
<replacetoken>set "JAVA_OPTS=-D</replacetoken>
<replacevalue>set "JAVA_OPTS=-DSTOP.PORT=8079 -DSTOP.KEY=secret -D</replacevalue>
</replace>
<replace file="${app.server.jetty.bin.dir}/run.sh">
<replacetoken>export JAVA_OPTS="-D</replacetoken>
<replacevalue>export JAVA_OPTS="-DSTOP.PORT=8079 -DSTOP.KEY=secret -D</replacevalue>
</replace>
<copy
file="${app.server.jetty.bin.dir}/run.bat"
tofile="${app.server.jetty.bin.dir}/shutdown.bat"
/>
<copy
file="${app.server.jetty.bin.dir}/run.sh"
tofile="${app.server.jetty.bin.dir}/shutdown.sh"
/>
<replace file="${app.server.jetty.bin.dir}/shutdown.bat">
<replacetoken>"%JAVA_HOME%/bin/java" %JAVA_OPTS% -jar ../start.jar</replacetoken>
<replacevalue>"%JAVA_HOME%/bin/java" %JAVA_OPTS% -jar ../start.jar --stop</replacevalue>
</replace>
<replace file="${app.server.jetty.bin.dir}/shutdown.sh">
<replacetoken>$JAVA_HOME/bin/java $JAVA_OPTS -jar ../start.jar</replacetoken>
<replacevalue>$JAVA_HOME/bin/java $JAVA_OPTS -jar ../start.jar --stop</replacevalue>
</replace>
<chmod perm="a+x">
<fileset dir="${app.server.jetty.bin.dir}">
<include name="*.sh" />
</fileset>
</chmod>
<antcall target="revert-test-properties" />
<antcall target="record-test-generated-properties" />
<antcall target="prepare-virtual-host-name-properties" />
<antcall inheritAll="false" target="run-jetty">
<param name="test.class" value="${test.class}" />
</antcall>
</target>
</project>