Skip to content

Commit 0c15cec

Browse files
BananeweizenCalixte
authored andcommitted
infra: avoid outdated local checkstyle ZIPs
After version upgrades outdated ZIP files from former versions can remain in the local git repository. Get rid of all but the current version when building.
1 parent 079fc4c commit 0c15cec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

net.sf.eclipsecs.checkstyle/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
<phase>generate-sources</phase>
2525
<configuration>
2626
<target>
27+
<!-- delete all the outdated ZIPs before downloading the current -->
28+
<delete>
29+
<fileset dir="${basedir}" includes="checkstyle-*.zip" excludes="checkstyle-${checkstyle.version}.zip"/>
30+
</delete>
2731
<get src="https://github.com/checkstyle/checkstyle/archive/checkstyle-${checkstyle.version}.zip"
2832
dest="${basedir}/checkstyle-${checkstyle.version}.zip"
2933
verbose="false"

0 commit comments

Comments
 (0)