Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Ant task to remove snippets #15

merged 1 commit into from

2 participants


Here's a quick task to remove the snippets from all java files under the koan.src folder


Tested in Ubuntu 12.04 w/Java 7 and Ant 1.8.2
Tested in Win7 w/Java 7 and Ant 1.8.4

@gdubya gdubya closed this
@gdubya gdubya reopened this
@jimwebber jimwebber merged commit 2c644bd into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 31, 2012
  1. @gdubya
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 0 deletions.
  1. +7 −0 build.xml
7 build.xml
@@ -139,4 +139,11 @@
+ <target name="remove.snippets" description="Remove the snippets">
+ <replaceregexp match="// SNIPPET_START(.+?)// SNIPPET_END" replace="" flags="gis">
+ <fileset dir="${koan.src}" includes="**/*.java" />
+ </replaceregexp>
+ </target>
Something went wrong with that request. Please try again.