Ant will eat itself

by admin on January 31, 2010

I was sorely tempted to save this for April Fool’s Day.

<project default="default">
  <target name="default">
    <delete file="${ant.file}"/>
  </target>
</project>

Update: Yes it does work:

Socks:tmp jsimpson$ mkdir demo
Socks:tmp jsimpson$ cd demo/
Socks:demo jsimpson$ vim build.xml
Socks:demo jsimpson$ ls -l build.xml
-rw-r--r--  1 jsimpson  wheel  119  1 Feb 21:13 build.xml
Socks:demo jsimpson$ ant
Buildfile: build.xml

default:
   [delete] Deleting: /private/tmp/demo/build.xml

BUILD SUCCESSFUL
Total time: 0 seconds
Socks:demo jsimpson$ ls -l build.xml
ls: build.xml: No such file or directory
Socks:demo jsimpson$ 
Share with the group:
  • Digg
  • del.icio.us
  • Facebook
  • DZone
  • LinkedIn
  • Slashdot
  • StumbleUpon

Related posts:

  1. Giternal Debian package Giternal is a handy tool for managing git submodules. Give...

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: Links for 2010-01-28

Next post: Links for 2010-02-01