Lifted,

After some research, it appears that the path of least resistance for
generating integrated parser using BNF Converter is to write an ant
build.xml file that stands as an interface between the make file that BNF
Converter will generate if passed the -m flag. i've got that working and
integrated into my pom.xml file using the maven-antrun-plugin. This
generates a bunch of java files that i have been conventionally putting in
the model directory -- largely because i stumbled onto that solution and
stuck with it.

Just to clarify, i'm looking at a modified lift project structure that looks
like

/Users/lgm/work/src/projex/biosimilarity/rlambda.google
   |-src
   |---main

<!-- modified structure lives here -->
   |-----bnfc
   |-------com
   |---------biosimilarity
   |-----------reflection
   |-------------rlambda
   |---------------Absyn
   |-------haskell
<!-- end modified structure -->

   |-----scala
   |-------bootstrap
   |---------liftweb
   |-------com
   |---------biosimilarity
   |-----------reflection
   |-------------comet
   |-------------lib
   |-------------model
   |---------------rlambda
   |-----------------Absyn
   |-----------------Compile
   |-----------------Eval
   |-------------snippet
   |-------------view
   |-----webapp
   |-------WEB-INF
   |-------templates-hidden
   |---test
   |-----resources
   |-----scala
   |-------com
   |---------biosimilarity
   |-----------reflection

Again, what i usually do is generate the parser java sources to live in the
package com.<mycompany>.<mygroup>.model.<artifactId>  and then copy the
directory <artifactId> over to
src/main/scala/com/<mycompany>/<mygroup>/model/<artifactId> .

So, i have two questions --

   - Is there a more standard practice? i know i could put the generated
   sources in target/generated-sources/..., but i'm not really seeing the
   bang-for-buck in that. i've already got cleaning action going on.
   - Is there a canonical way to get from the maven ${groupId} to the
   reverse path string?


Best wishes,

--greg

-- 
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to