mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
28.05.2009 5d365e89406093c3dea559946fca87792e7c7ea4
Today if a user makes a mistake in DynamicConstants and introduces a coding style error, this error will not be spotted on the first run of the precommit target (but it will on the second and so on).

This fix guarantees that the checkstyle will be executed AFTER DynamicConstants is generated. There is a change of behavior that I consider harmless but maybe I am missing something: the clean of the build package is made before the checkstyle is executed. This adds an extra second or so to spot errors on checkstyle, but it seems to me cleaner to do a clean and then do the checkstyle (to be sure that no error were introduced in the dynamically generated java files).
1 files modified
2 ■■■ changed files
opends/build.xml 2 ●●● patch | view | raw | blame | history
opends/build.xml
@@ -188,7 +188,7 @@
  <!-- The build target that should be used before committing code. -->
  <target name="precommit" depends="checkstyle,clean,checkprecommit,dsml,testwithcoverage"
  <target name="precommit" depends="clean,dynamicconstants,checkstyle,checkprecommit,dsml,testwithcoverage"
       description="Perform all processing needed before committing code.">
  </target>