Revert "Revert "Fail the build when recompilation fails""

This reverts commit c2d920d738a294462338fbe955c62a0f4034304c.
This commit is contained in:
Christian 2012-06-20 08:44:08 -04:00
parent acbc8d9a1b
commit 63be4cb88f
1 changed files with 10 additions and 0 deletions

View File

@ -90,6 +90,16 @@
<exec executable="${python.exe}" dir="${mcp.home}" failonerror="true">
<arg value="${mcp.home}/runtime/recompile.py" />
</exec>
<fail message="Compilation failed">
<condition>
<not>
<and>
<available file="${mcp.home}/bin/minecraft/net/minecraft/client/Minecraft.class"/>
<available file="${mcp.home}/bin/minecraft_server/net/minecraft/server/MinecraftServer.class"/>
</and>
</not>
</condition>
</fail>
<exec executable="${python.exe}" dir="${mcp.home}">
<arg value="${mcp.home}/runtime/reobfuscate.py" />
</exec>