gdamour     2005/09/10 10:49:09

  Modified:    modules/itests maven.xml project.xml
  Log:

  GERONIMO-710 Generating DDLs for CMP deployment.
  
  o An Ant task to export the DDL associated to the CMP of an ejb-jar module.
  
  o Refactor CMPEntityBuilder: all the logic specific to the creation of the
  three TranQL schemata is refactored within SchemataBuilder.
  
  Revision  Changes    Path
  1.34      +29 -1     openejb/modules/itests/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/projects/openejb/scm/openejb/modules/itests/maven.xml,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- maven.xml 9 Sep 2005 22:35:01 -0000       1.33
  +++ maven.xml 10 Sep 2005 14:49:09 -0000      1.34
  @@ -189,6 +189,7 @@
               </fileset>
               <metainf dir="${basedir}/src/cmp2/prefetch" includes="*.xml"/>
           </ant:jar>
  +        <attainGoal name="antIntegration"/>
           <deploy:distribute
               
uri="deployer:geronimo:jmx:rmi://localhost/jndi/rmi:/JMXConnector"
               username="system"
  @@ -410,6 +411,33 @@
               username="system"
               password="manager"
               id="org/openejb/scenario001"/>
  +    </goal>
  +
  +    <goal name="antIntegration">
  +        <ant:taskdef name="ddlExporter" 
classname="org.openejb.deployment.ant.DDLExporterTask">
  +            <classpath>
  +                <pathelement 
location="${maven.repo.local}/openejb/jars/openejb-builder-${openejb_version}.jar"/>
  +                <pathelement 
location="${maven.repo.local}/tranql/jars/tranql-${tranql_version}.jar"/>
  +                <pathelement 
location="${maven.repo.local}/geronimo/jars/geronimo-kernel-${geronimo_version}.jar"/>
  +                <pathelement 
location="${maven.repo.local}/geronimo/jars/geronimo-deployment-${geronimo_version}.jar"/>
  +                <pathelement 
location="${maven.repo.local}/geronimo/jars/geronimo-common-${geronimo_version}.jar"/>
  +                <pathelement 
location="${maven.repo.local}/geronimo/jars/geronimo-j2ee-schema-${geronimo_version}.jar"/>
  +                <pathelement 
location="${maven.repo.local}/xmlbeans/jars/xbean-${xmlbeans_version}.jar"/>
  +                <pathelement 
location="${maven.repo.local}/stax/jars/stax-api-${stax_api_version}.jar"/>
  +                <pathelement 
location="${maven.repo.local}/geronimo-spec/jars/geronimo-spec-ejb-${geronimo_spec_ejb_version}.jar"/>
  +            </classpath>
  +        </ant:taskdef>
  +        
  +        <ddlExporter
  +            ejbJar="jar:${basedir}/target/openejb-cmp2-prefetch.jar"
  +            openejbJar="jar:${basedir}/target/openejb-cmp2-prefetch.jar"
  +            output="${basedir}/target/openejb-cmp2-prefetch.sql"
  +            ddlCommandBuilder="org.tranql.ddl.DerbyDDLCommandBuilder"
  +            type="drop-create-constraint">
  +            <classpath>
  +                <pathelement location="target/openejb-cmp2-prefetch.jar"/>
  +            </classpath>
  +        </ddlExporter>
       </goal>
   
   </project>
  
  
  
  1.36      +7 -1      openejb/modules/itests/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/projects/openejb/scm/openejb/modules/itests/project.xml,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- project.xml       30 Aug 2005 06:27:47 -0000      1.35
  +++ project.xml       10 Sep 2005 14:49:09 -0000      1.36
  @@ -37,6 +37,12 @@
           </dependency>
   
           <dependency>
  +            <groupId>openejb</groupId>
  +            <artifactId>openejb-builder</artifactId>
  +            <version>${pom.currentVersion}</version>
  +        </dependency>
  +
  +        <dependency>
               <groupId>geronimo</groupId>
               <artifactId>geronimo-common</artifactId>
               <version>${geronimo_version}</version>
  
  
  

Reply via email to