Skip to content

Commit

Permalink
Removed todo.txt (leftover) and updated build.xml accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Sep 16, 2014
1 parent e9e257b commit 88b487f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 227 deletions.
33 changes: 7 additions & 26 deletions build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,42 +112,23 @@
<!-- Revision check -->
<!-- - - - - - - - - -->
<target name="revision-check">
<!-- figure out the revision number -->
<loadfile srcfile="../todo.txt" property="revision">
<filterchain>
<headfilter lines="1"/>
<tokenfilter>
<stringtokenizer suppressdelims="true"/>
<!-- grab the thing from the first line that's 4 digits -->
<containsregex pattern="(\d\d\d\d)" />
</tokenfilter>
</filterchain>
</loadfile>
<!-- <echo message="revision is ${revision}." /> -->

<!-- figure out the revision number in base.java -->
<loadfile srcfile="../app/src/processing/app/Base.java"
property="revision.base">
property="revision">
<filterchain>
<tokenfilter>
<linetokenizer />
<containsregex pattern="String VERSION_NAME = "/>
<replaceregex pattern="[^0-9]*" flags="g" replace=""/>
</tokenfilter>
<tokenfilter>
<stringtokenizer suppressdelims="true"/>
<!-- grab the thing that's 4 digits -->
<containsregex pattern="(\d\d\d\d)" />
</tokenfilter>
</filterchain>
</loadfile>
<!-- <echo message="base revision is ${revision.base}." /> -->

<condition property="revision.correct">
<!-- Using contains because I can't figure out how to get rid of the
LF in revision.base. Please file a bug if you have a fix. -->
<contains string="${revision.base}" substring="${revision}"/>
</condition>

<!-- the revision.base property won't be set
if $revision wasn't found... -->
<fail unless="revision.correct"
message="Fix revision number in Base.java" />
<echo message="base revision is ${revision}." />
</target>


Expand Down
201 changes: 0 additions & 201 deletions todo.txt

This file was deleted.

0 comments on commit 88b487f

Please sign in to comment.