Skip to content

Instantly share code, notes, and snippets.

@vicnate5
Created January 5, 2021 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vicnate5/85645745370844fdcd223a4d00bb181e to your computer and use it in GitHub Desktop.
Save vicnate5/85645745370844fdcd223a4d00bb181e to your computer and use it in GitHub Desktop.
<target name="custom">
<antcall inheritAll="false" target="prepare-log4j-ext-xml">
<param name="database.type" value="hypersonic" />
</antcall>
<antcall inheritAll="false" target="prepare-portal-ext-properties">
<param name="database.type" value="hypersonic" />
</antcall>
<antcall inheritAll="false" target="prepare-system-ext-properties" />
<if>
<resourcecount count="0" when="gt">
<fileset
dir="${project.dir}/modules"
includes="**/.lfrbuild-portal-deprecated"
/>
</resourcecount>
<then>
<gradle-execute dir="${project.dir}/modules" task="deploy">
<arg value="--parallel" />
<arg value="-Ddeploy.only.profile=portal-deprecated" />
</gradle-execute>
</then>
</if>
<for param="app.dir">
<path>
<dirset
dir="modules/apps/archived"
>
<exclude name="archived-modules-upgrade-test*" />
<present targetdir="modules/apps/archived">
<mapper
from="*"
to="*/src/test"
type="glob"
/>
</present>
</dirset>
</path>
<sequential>
<gradle-execute dir="@{app.dir}" task="test">
<arg value="--continue" />
<arg value="-Dbuild.exclude.ant.plugin=true" />
<arg value="-Djunit.code.coverage=${test.batch.code.coverage}" />
</gradle-execute>
</sequential>
</for>
<trycatch>
<try>
<antcall inheritall="false" target="start-app-server" />
<for param="app.dir">
<path>
<dirset
dir="modules/apps/archived"
>
<exclude name="archived-modules-upgrade-test*" />
<present targetdir="modules/apps/archived">
<mapper
from="*"
to="*/src/testIntegration"
type="glob"
/>
</present>
</dirset>
</path>
<sequential>
<gradle-execute dir="@{app.dir}" refreshdependencies="@{refreshdependencies}" task="testIntegration">
<arg value="--continue" />
<arg value="-Dbuild.exclude.ant.plugin=true" />
</gradle-execute>
</sequential>
</for>
</try>
<finally>
<ant dir="portal-kernel" inheritAll="false" target="test-class">
<property name="test.class" value="PortalLogAssertorTest" />
</ant>
</finally>
</trycatch>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment