Created
April 10, 2018 22:49
-
-
Save petershin/c307021c796957c2dfdb20d712db97ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<target name="source-format-current-branch-jdk8"> | |
<run-batch-test> | |
<test-action> | |
<setup-libs /> | |
<setup-sdk /> | |
<exec executable="git" failonerror="true" outputproperty="git.diff"> | |
<arg value="diff" /> | |
<arg value="--name-only" /> | |
<arg value="${liferay.portal.branch}..HEAD" /> | |
</exec> | |
<var name="format.current.branch" value="true" /> | |
<if> | |
<contains string="${git.diff}" substring="source-formatter" /> | |
<then> | |
<var name="format.current.branch" value="false" /> | |
<gradle-execute dir="modules/core" task="deploy"> | |
<arg value="--parallel" /> | |
<arg value="-Dbuild.profile=portal-pre" /> | |
<arg value="-Pforced.deploy.dir=${project.dir}/tmp/lib-pre" /> | |
</gradle-execute> | |
<ant dir="portal-kernel" inheritAll="false" target="install-portal-snapshot" /> | |
<gradle-execute dir="modules/apps" task="deploy"> | |
<arg value="--parallel" /> | |
<arg value="-Dbuild.profile=portal-pre" /> | |
<arg value="-Pforced.deploy.dir=${project.dir}/tmp/lib-pre" /> | |
</gradle-execute> | |
<parallel failonany="true" threadcount="${parallel.thread.count}"> | |
<ant dir="util-bridges" inheritAll="false" target="compile" /> | |
<sequential> | |
<ant dir="util-java" inheritAll="false" target="compile" /> | |
<ant dir="util-taglib" inheritAll="false" target="compile" /> | |
</sequential> | |
<ant dir="util-slf4j" inheritAll="false" target="compile" /> | |
</parallel> | |
<ant dir="portal-impl" inheritAll="false" target="install-portal-snapshot" /> | |
</then> | |
</if> | |
<ant dir="portal-impl" target="format-source-all"> | |
<property name="format.current.branch" value="${format.current.branch}" /> | |
<property name="show.documentation" value="false" /> | |
<property name="source.auto.fix" value="false" /> | |
<property name="source.fail.on.error" value="true" /> | |
<property name="source.print.errors" value="false" /> | |
<property name="source.throw.exception" value="true" /> | |
<property name="source.use.properties" value="false" /> | |
</ant> | |
</test-action> | |
</run-batch-test> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment