Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ant task to remove snippets #15

Merged
merged 1 commit into from

2 participants

@gdubya

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

@gdubya

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
View
7 build.xml
@@ -139,4 +139,11 @@
</classpath>
</eclipse>
</target>
+
+ <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>
+
</project>
Something went wrong with that request. Please try again.