Skip to content

Commit

Permalink
Issue #915: correct handling of checkstyle.ant.skip
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach committed Oct 23, 2022
1 parent eb45480 commit 877e98b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions sevntu-checks/ant-phase-verify-sevntu.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="phase-package" default="execute">

<condition property="checkstyle.ant.skip">
<isset property="checkstyle.ant.skip" />
<condition property="run">
<or>
<not>
<isset property="checkstyle.ant.skip"/>
</not>
<isfalse value="${checkstyle.ant.skip}"/>
</or>
</condition>

<target name="execute" unless="checkstyle.ant.skip">
<target name="execute" if="run">
<taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"/>

<property name="check.config" location="sevntu-checks.xml"/>
Expand Down
12 changes: 8 additions & 4 deletions sevntu-checks/ant-phase-verify.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="phase-package" default="execute">

<condition property="checkstyle.ant.skip">
<isset property="checkstyle.ant.skip" />
<condition property="run">
<or>
<not>
<isset property="checkstyle.ant.skip"/>
</not>
<isfalse value="${checkstyle.ant.skip}"/>
</or>
</condition>

<target name="execute" unless="checkstyle.ant.skip">
<target name="execute" if="run">
<taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"/>

<tstamp>
Expand Down

0 comments on commit 877e98b

Please sign in to comment.