2 Replies Latest reply on Jul 27, 2011 5:07 AM by kain90

    Create directory with the name of each entity

    kain90

      Hello, i´m a newbie in Seam.

       

      I am modifying Seam to create a specific directory structure. Specifically I am modifying the file build.xml. I created new templates and works well. My problem is as follows:

       

      Build.xml I want create a new directory with the name of each entity, but is giving me more of a headache. My intention was to use the syntax using tag <hbmtemplate> as follows.

       

      <hibernate templatepath="${templates.dir}">

          <!-- Setup jdbconfigurator -->

       

          <hbmtemplate filepattern = "{class-name}.jsp"

                   template = "src/EntityAction.java.ftl"

                   destdir = "${project.home}/src/${package.dir}/{class-name}"

                   foreach = "entity">

               <property key="actionPackage" value="${project.package}.service"/>

          </hbmtemplate>

      </hibernate>

       

      But my surprise was that the {class-name} variable can only be used by the parameter filepattern.

       

      Is there another variable that can be used, or is there another easier way to do this task?