From 7f7b37a84f8ea77c93eafb735955a0e0b6abd7db Mon Sep 17 00:00:00 2001
From: Juris <jurchiks101@gmail.com>
Date: Sun, 21 Dec 2014 17:21:16 +0200
Subject: [PATCH] Getting rid of all the unnecessary stuff in dp build.xml.

---
 L2J_DataPack/build.xml | 29 +++++------------------------
 1 file changed, 5 insertions(+), 24 deletions(-)

diff --git a/L2J_DataPack/build.xml b/L2J_DataPack/build.xml
index c18cf169c7..c53b446922 100644
--- a/L2J_DataPack/build.xml
+++ b/L2J_DataPack/build.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project name="L2J_DataPack" default="build" basedir=".">
+<project name="L2J_DataPack" default="zip" basedir=".">
 	<description>
 		Copyright (C) 2004-2014 L2J DataPack
 		
@@ -20,32 +20,13 @@
 	</description>
 
 	<property name="build" location="build" />
-	<property name="build.dist" location="${build}/dist" />
-	<property name="build.dist.doc" location="${build.dist}/doc" />
-	<property name="build.dist.game" location="${build.dist}/game" />
-	<property name="build.dist.login" location="${build.dist}/login" />
 
-	<target name="init" depends="checkRequirements" description="Create the output directories.">
+	<target name="init" description="Create the output directory.">
 		<mkdir dir="${build}" />
 	</target>
 
-	<target name="dist" depends="init" description="Export the files to the output directory.">
-		<sync todir="${build.dist}" includeemptydirs="true">
-			<fileset dir="dist" />
-		</sync>
-	</target>
-
-	<target name="build" depends="dist">
-		<zip destfile="${build}/L2J_DataPack_BETA.zip" basedir="${build.dist}" level="9" />
-	</target>
-
-	<target name="checkRequirements" description="Check Requirements.">
-		<fail message="Ant 1.8.2 is required. But your version is ${ant.version} and if you are using Eclipse probably is outdated.">
-			<condition>
-				<not>
-					<antversion atleast="1.8.2" />
-				</not>
-			</condition>
-		</fail>
+	<target name="zip" depends="init">
+		<tstamp description="Initialize ${DSTAMP}, which is in format yyyyMMdd" />
+		<zip destfile="${build}/L2J_DataPack-${DSTAMP}.zip" basedir="dist" level="9" />
 	</target>
 </project>
\ No newline at end of file
-- 
GitLab