Matt,

  I'd like to find out if there is a way I can direct appfuse to look in
another directory for entities besides the artifactId.model directory.  What
precipitated in this message is a MojoFailureException coming out of the
AppFuseGeneratorMojo class.  It looks like the code is looking for a model
directory specifically.  This is okay for appfuse generated projects, but
what if I want to use the appfuse:gen tool with an existing project without
pulling down one of the project Archetypes?

The specific code is (from checkEntityExists()):

328                 pathToParent = pathToParent.replaceAll("/", FILE_SEP);
329                 pathToModelPackage = getProject().getBasedir() +
FILE_SEP + pathToParent + moduleName + "/" + pathToModelPackage;
330             }
331
332             // refactor to check classpath instead of filesystem
333             String groupIdAsPath =
getProject().getGroupId().replace(".", FILE_SEP);
*334             File modelPackage = new File(pathToModelPackage +
groupIdAsPath + FILE_SEP + "model");*
335             boolean entityExists = false;
336

So the main question is how can I point appfuse:gen -Dentity=NAME at a
custom directory?

Thanks for your time,

Ryan

Reply via email to