>> - return projectDirectory != null; >> + return projectDirectory != null && new File(projectDirectory, >> "pom.xml").exists(); >> }
>Will that work in all cases? For instance, there is the concept of a >release-pom.xml and furthermore users are free to specify POMs with >arbitrary names via the command line switch "-f". So hard-coding >"pom.xml" seems to be insufficient. Nice catch, yes that would be a problem. >P.S.: When checking for the existence of normal files like POMs, >java.io.File.isFile() is preferable, i.e. to ignore directories. +1
