Browse Source

BETA/STABLE: Changelog generator in builders, based on mrTJO idea.

MELERIX 13 năm trước cách đây
mục cha
commit
138bc1a811
1 tập tin đã thay đổi với 9 bổ sung7 xóa
  1. 9 7
      L2J_DataPack_BETA/build.xml

+ 9 - 7
L2J_DataPack_BETA/build.xml

@@ -31,7 +31,7 @@
 	<property name="build.dist.sql" location="${build.dist}/sql" />
 	<property name="build.dist.tools" location="${build.dist}/tools" />
 
-	<target name="init" depends="clean, getVersionAndDate" description="Create the output directories. Do nothing if dirs were already created">
+	<target name="init" depends="clean, getChangelogDateVersion" description="Create the output directories. Do nothing if dirs were already created">
 		<mkdir dir="${build}" />
 		<mkdir dir="${build.dist}" />
 		<mkdir dir="${build.dist.cb}" />
@@ -50,10 +50,8 @@
 		<sync todir="${build.dist.doc}">
 			<fileset dir="doc" />
 		</sync>
-		<concat destfile="${build.dist.game}/config/l2jdp-version.properties">
-			version=${l2jdp.revision}
-			builddate=${build.tstamp}
-		</concat>
+		<concat destfile="${build.dist.doc}/Changelog.txt">${l2j.changelog}</concat>
+		<concat destfile="${build.dist.game}/config/l2jdp-version.properties">version=${l2j.version} builddate=${build.tstamp}</concat>
 		<sync todir="${build.dist.game}/data" includeemptydirs="true">
 			<fileset dir="data" />
 		</sync>
@@ -80,10 +78,14 @@
 		<delete file="${build}/L2J_DataPack_BETA.zip" />
 	</target>
 
-	<target name="getVersionAndDate" description="Create l2jdp-version.properties file">
+	<target name="getChangelogDateVersion" description="Get Changelog, Date, Version">
+		<exec dir="." executable="svn" outputproperty="l2j.changelog" >
+			<arg value="log" />
+			<arg value="--stop-on-copy" />
+		</exec>
 		<tstamp>
 			<format property="build.tstamp" pattern="dd/MM/yyyy HH:mm" />
 		</tstamp>
-		<exec dir="." executable="svnversion" outputproperty="l2jdp.revision" />
+		<exec dir="." executable="svnversion" outputproperty="l2j.version" />
 	</target>
 </project>