浏览代码

BETA/STABLE: Updating Builders, now Ant Version is verified.

MELERIX 13 年之前
父节点
当前提交
8c6baa9aea
共有 1 个文件被更改,包括 13 次插入3 次删除
  1. 13 3
      L2J_Server_BETA/build.xml

+ 13 - 3
L2J_Server_BETA/build.xml

@@ -54,12 +54,22 @@
 		</path>
 	</pathconvert>
 
-	<target name="verifyRequirements" description="Checks if the necessary requirements for building L2J are fulfilled">
+	<target name="checkAntVersion" description="Check if Ant 1.8.2 is present">
+		<fail message="Ant 1.8.2 is required. But your version is ${ant.version}">
+			<condition>
+				<not>
+					<contains string="${ant.version}" substring="1.8.2"/>
+				</not>
+			</condition>
+		</fail>
+	</target>
+
+	<target name="checkJavaVersion" description="Checks if Java JDK 7 is present">
 		<available classname="java.lang.AutoCloseable" property="JDK7.present" />
-		<fail unless="JDK7.present" message="JDK 7 or greater is required." />
+		<fail unless="JDK7.present" message="Java JDK 7 is required." />
 	</target>
 
-	<target name="init" depends="clean, verifyRequirements" description="Create the output directories.">
+	<target name="init" depends="clean, checkAntVersion, checkJavaVersion" description="Create the output directories.">
 		<mkdir dir="${build}" />
 		<mkdir dir="${build.classes}" />
 	</target>