Rahul wrote:
Emmanuel Venisse wrote:



Project: maven-archetype-quickstart
- File App.java sitting under srcmain/resources/archetype-resources/src/main/java/ is not compilable. - The package reference in the source file is '$package'. I believe the file is a template, so might be an idea not to resolve it as a Java source or appropriate exclusion filters to be set up in the build path. - Same deal as above with file AppTest.java under src/main/resources/archetype-resources/src/test/java



It isn't a java source but a template text file (with java code). Do you have a fix?

Would it be better to have these named with a different extension other than .java (may be .java.tpl for instance) so atleast these are not detected as compilable java sources? Do these need to stay as .java as to be consumed by the template processor/handler etc?

The "template processor" take all resource files and replace in them all parameter like @[EMAIL PROTECTED] It don't know if the file is a text file, a java source file or a c# source file. We could remove .tpl extension, but I don't like it.

Brett?


Cheers,
Rahul


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to