Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First change log

  • Loading branch information...
commit 22d6abe24b4152921b5a9d207d0bbc173d4acc82 1 parent e9949b3
@nzakas authored
Showing with 44 additions and 2 deletions.
  1. +1 −1  ant.properties
  2. +43 −1 build.xml
View
2  ant.properties
@@ -15,7 +15,7 @@ class.version = 1.5
#CSSEmbed properties
cssembed.name = cssembed
-cssembed.version = 0.4.0
+cssembed.version = 0.4.5
cssembed.jar = ${cssembed.name}-${cssembed.version}.jar
cssembed.main = net.nczonline.web.cssembed.CSSEmbed
View
44 build.xml
@@ -12,7 +12,49 @@
<target name="-init" depends="-load.properties">
<mkdir dir="${build.dir}"/>
</target>
-
+
+ <!-- get a timestamp -->
+ <tstamp>
+ <format property="RIGHT_NOW"
+ pattern="d-MMMM-yyyy hh:mm:ss"
+ locale="en,US"/>
+ </tstamp>
+ <tstamp>
+ <format property="SIMPLE_DATE"
+ pattern="MMMM d, yyyy"
+ locale="en,US"/>
+ </tstamp>
+
+ <target name="changelog.update">
+ <exec executable="git" failonerror="true" outputproperty="git.tag">
+ <arg line="tag"/>
+ </exec>
+ <script language="javascript"><![CDATA[
+ //get the most recent tag to get the diff
+ var tags = csslint.getProperty("git.tag").replace("\r", "").split("\n"),
+ lastTag = tags[tags.length-1];
+ csslint.setProperty("git.log.range", lastTag + "..HEAD");
+ ]]></script>
+
+ <!-- git log -pretty=format:'* %s (%an)' v0.4.0..v0.5.0-->
+ <exec executable="git" failonerror="true" outputproperty="git.changelog">
+ <arg line="log --pretty=format:'* %s (%an)' ${git.log.range}"/>
+ </exec>
+
+ <concat destfile="CHANGELOG.tmp" fixlastline="true">
+ <header trimleading="yes">${SIMPLE_DATE} - v${csslint.version}
+
+ ${git.changelog}
+
+ </header>
+ <fileset dir="." includes="CHANGELOG" />
+ </concat>
+
+ <delete file="CHANGELOG"/>
+ <move file="CHANGELOG.tmp" tofile="CHANGELOG"/>
+
+ </target>
+
<target name="build.classes" depends="-init">
<mkdir dir="${build.dir}/classes"/>
<javac srcdir="${src.dir}"
Please sign in to comment.
Something went wrong with that request. Please try again.