ant basedir and eclipse .project file generation
问题 I have an ant target that echo's the content of an eclipse .project file, the idea here is to ensure that the project is easily importable into eclipse. The project name should match the directory in which its checkout. I have this so far <target name="eclipse" description="creates an eclipse .project file"> <echo file=".project"> <![CDATA[<?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>${basedir}</name> <comment></comment> <projects> </projects> <buildSpec> <buildCommand>