db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/generator/src/maven-plugin/xdocs index.xml properties.xml
Date Mon, 10 Feb 2003 13:29:33 GMT
mpoeschl    2003/02/10 05:29:33

  Added:       src/generator/src/maven-plugin maven.xml plugin.properties
                        project.xml plugin.jelly project.properties
               src/generator/src/maven-plugin/xdocs index.xml
                        properties.xml
  Removed:     src/maven-plugin maven.xml plugin.jelly plugin.properties
                        project.properties project.xml
               src/maven-plugin/xdocs index.xml properties.xml
  Log:
  move maven plugin to generator
  
  Revision  Changes    Path
  1.1                  db-torque/src/generator/src/maven-plugin/maven.xml
  
  Index: maven.xml
  ===================================================================
  <project default="plugin"
    xmlns:j="jelly:core"
    xmlns:m="maven">
  
    <goal
      name="plugin">
  
      <j:if test="${sourcesPresent == 'true'}">
        <attainGoal name="java:compile"/>
        <attainGoal name="test:test"/>
      </j:if>
  
      <property name="assemblyDir" value="target/assemblyDir"/>
  
      <mkdir dir="${assemblyDir}"/>
  
      <copy todir="${assemblyDir}">
        <fileset dir=".">
          <exclude name="target/**"/>
          <exclude name="src/**"/>
          <exclude name="maven.xml"/>
          <exclude name="maven.log"/>
        </fileset>
      </copy>
  
      <copy todir="${assemblyDir}" file="../conf/build-torque.xml"/>
  
      <j:if test="${sourcesPresent == 'true'}">
        <copy todir="${assemblyDir}">
          <fileset dir="target/classes"/>
        </copy>
      </j:if>
  
      <jar
        jarfile="${maven.build.dir}/${maven.final.name}.jar">
        <fileset dir="${assemblyDir}"/>
      </jar>
  
      <copy
        file="${maven.build.dir}/${maven.final.name}.jar"
        todir="${maven.repo.local}/maven/jars"
      />
  
    </goal>
  
    <goal name="plugin:install"
          prereqs="plugin"
          description="Install the plugin in Maven's plugins dir">
  
      <copy
        file="${maven.build.dir}/${maven.final.name}.jar"
        todir="${maven.home}/plugins"
      />
  
    </goal>
  
    <goal name="plugin:deploy"
          prereqs="plugin"
          description="Install an unpacked version of the plugin">
  
      <mkdir dir="${maven.home}/plugins/${maven.final.name}"/>
      <unzip
        src="${maven.build.dir}/${maven.final.name}.jar"
        dest="${maven.home}/plugins/${maven.final.name}"
      />
  
    </goal>
  
  </project>
  
  
  
  1.1                  db-torque/src/generator/src/maven-plugin/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  # -------------------------------------------------------------------
  # P L U G I N  P R O P E R T I E S
  # -------------------------------------------------------------------
  # Torque plugin
  # -------------------------------------------------------------------
  
  
  
  1.1                  db-torque/src/generator/src/maven-plugin/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <project>
    <pomVersion>3</pomVersion>
    <id>maven-torque-plugin</id>
    <name>Maven Torque Plug-in</name>
    <currentVersion>3.1-dev</currentVersion>
    <organization>
      <name>Apache Software Foundation</name>
      <url>http://jakarta.apache.org/</url>
      <logo>http://jakarta.apache.org/turbine/torque/images/jakarta-logo-blue.gif</logo>
    </organization>
    <inceptionYear>2002</inceptionYear>
    <package>org.apache.torque</package>
    <logo>http://jakarta.apache.org/turbine/torque/images/blue-logo.gif</logo>
  
    <!-- Gump integration -->
    <gumpRepositoryId>jakarta</gumpRepositoryId>
  
    <description>Maven Plugin for Torque</description>
    <shortDescription>Maven Plugin for Torque</shortDescription>
    <url>http://jakarta.apache.org/turbine/torque/</url>
    <issueTrackingUrl>http://nagoya.apache.org/scarab/issues</issueTrackingUrl>
    <siteAddress>jakarta.apache.org</siteAddress>
    <siteDirectory>/www/jakarta.apache.org/turbine/torque/maven-plugin/</siteDirectory>
    <distributionDirectory>/www/jakarta.apache.org/builds/jakarta-turbine-torque/</distributionDirectory>
  
    <repository>
      <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-torque</connection>
      <url>http://cvs.apache.org/viewcvs/jakarta-turbine-torque/</url>
    </repository>
  
    <mailingLists>
      <mailingList>
        <name>Torque User List</name>
        <subscribe>turbine-torque-user-subscribe@jakarta.apache.org</subscribe>
        <unsubscribe>turbine-torque-user-unsubscribe@jakarta.apache.org</unsubscribe>
        <archive>http://archives.apache.org/eyebrowse/SummarizeList?listName=turbine-torque-user@jakarta.apache.org</archive>
      </mailingList>
      <mailingList>
        <name>Torque Developer List</name>
        <subscribe>turbine-torque-dev-subscribe@jakarta.apache.org</subscribe>
        <unsubscribe>turbine-torque-dev-unsubscribe@jakarta.apache.org</unsubscribe>
        <archive>http://archives.apache.org/eyebrowse/SummarizeList?listName=turbine-torque-dev@jakarta.apache.org</archive>
      </mailingList>
    </mailingLists>
  
    <developers>
      <developer>
        <name>Martin Poeschl</name>
        <id>mpoeschl</id>
        <email>mpoeschl@marmot.at</email>
        <organization>Tucana.at</organization>
        <roles>
          <role>Java Developer</role>
        </roles>
      </developer>
      <developer>
        <name>Stephen Haberman</name>
        <id>stephenh</id>
        <email>stephenh@chase3000.com</email>
        <organization/>
        <roles>
          <role>Java Developer</role>
        </roles>
      </developer>
    </developers>
  
    <contributors>
      <contributor>
        <name>Markus M. May</name>
        <email>mmay@javafreedom.org</email>
      </contributor>
    </contributors>
  
    <dependencies>
      <dependency>
        <id>commons-collections</id>
        <version>2.1</version>
        <properties>
          <classloader>root</classloader>
        </properties>
      </dependency>
      <dependency>
        <id>commons-configuration</id>
        <version>SNAPSHOT</version>
        <properties>
          <classloader>root</classloader>
        </properties>
      </dependency>
      <dependency>
        <id>commons-dbcp</id>
        <version>SNAPSHOT</version>
        <properties>
          <classloader>root</classloader>
        </properties>
      </dependency>
      <dependency>
        <id>commons-lang</id>
        <version>1.0.1</version>
        <properties>
          <classloader>root</classloader>
        </properties>
      </dependency>
      <dependency>
        <id>log4j</id>
        <version>1.2.6</version>
        <properties>
          <classloader>root</classloader>
        </properties>
      </dependency>
      <dependency>
        <id>stratum</id>
        <version>1.0-b3</version>
        <properties>
          <classloader>root</classloader>
        </properties>
      </dependency>
      <dependency>
        <id>torque</id>
        <version>3.1-dev</version>
        <properties>
          <classloader>root</classloader>
        </properties>
      </dependency>
      <dependency>
        <id>velocity</id>
        <version>1.3</version>
        <properties>
          <classloader>root</classloader>
        </properties>
      </dependency>
      <dependency>
        <id>village</id>
        <version>2.0-dev-20021111</version>
        <properties>
          <classloader>root</classloader>
        </properties>
      </dependency>
  
    </dependencies>
  
    <build>
  
      <nagEmailAddress>turbine-torque-dev@jakarta.apache.org</nagEmailAddress>
  
      <sourceDirectory>src/java</sourceDirectory>
  
      <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
      <integrationUnitTestSourceDirectory/>
  
      <aspectSourceDirectory></aspectSourceDirectory>
  
      <!-- Unit test classes -->
      <unitTest>
        <includes>
          <include>**/*Test.java</include>
        </includes>
      </unitTest>
  
      <!-- J A R  R E S O U R C E S -->
      <!-- Resources that are packaged up inside the JAR file -->
  
      <resources>
      </resources>
  
      <jars>
      </jars>
    </build>
  </project>
  
  
  
  
  1.1                  db-torque/src/generator/src/maven-plugin/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <project xmlns:j="jelly:core">
  
    <property
      name="torque.mavenPlugin.antFile"
      value="${maven.home}/plugins/maven-torque-plugin-3.1-dev/build-torque.xml"/>
  
    <goal
      name="torque"
      description="delegate to torque:main"
      prereqs="torque:main"/>
  
    <goal
      name="torque:main"
      description="delegate to torque:main">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="main"
      />
    </goal>
  
    <goal
      name="torque:sql"
      description="delegate to torque:sql">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="sql"
      />
    </goal>
  
    <goal
      name="torque:doc"
      description="delegate to torque:doc">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="doc"
      />
    </goal>
  
    <goal
      name="torque:create-db"
      description="delegate to torque:create-db">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="create-db"
      />
    </goal>
  
    <goal
      name="torque:datadtd"
      description="delegate to torque:datadtd">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="datadtd"
      />
    </goal>
  
    <goal
      name="torque:datadump"
      description="delegate to torque:datadump">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="datadump"
      />
    </goal>
  
    <goal
      name="torque:datasql"
      description="delegate to torque:datasql">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="datasql"
      />
    </goal>
  
    <goal
      name="torque:jdbc"
      description="delegate to torque:jdbc">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="jdbc"
      />
    </goal>
  
    <goal
      name="torque:om"
      description="delegate to torque:om">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="om"
      />
    </goal>
  
    <goal
      name="torque:insert-sql"
      description="delegate to torque:insert-sql">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="insert-sql"
      />
    </goal>
  
    <goal
      name="torque:sql2xml"
      description="delegate to torque:sql2xml">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="sql2xml"
      />
    </goal>
  
    <goal
      name="torque:id-table-init-sql"
      description="delegate to torque:id-table-init-sql">
      <ant
        antfile="${torque.mavenPlugin.antFile}"
        target="id-table-init-sql"
      />
    </goal>
  </project>
  
  
  
  1.1                  db-torque/src/generator/src/maven-plugin/project.properties
  
  Index: project.properties
  ===================================================================
  # -------------------------------------------------------------------
  # P R O J E C T  P R O P E R T I E S
  # -------------------------------------------------------------------
  maven.xdoc.date=left
  maven.xdoc.version=${pom.currentVersion}
  
  
  
  
  1.1                  db-torque/src/generator/src/maven-plugin/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <title>Maven Torque Plugin</title>
      <author email="stephenh@chase3000.com">Stephen Haberman</author>
    </properties>
  
    <body>
      <section name="Maven Torque Plugin">
        <p>
          This plugin simply delegates to the <code>build-torque.xml</code> file
          shipped with the plugin and will read the Torque templates from the
          classpath instead of relying on copies of templates in your source tree.
        </p>
      </section>
   </body>
  </document>
  
  
  
  1.1                  db-torque/src/generator/src/maven-plugin/xdocs/properties.xml
  
  Index: properties.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <document>
    <properties>
      <title>Maven Torque Plugin</title>
      <author email="stephenh@chase3000.com">Stephen Haberman</author>
    </properties>
  
    <body>
      <section name="Plugin Settings">
        <p>
          Note that all of the <code>torque.*</code> properties that are defined
          for use in the <code>build-torque.xml</code> still apply here. This
          maven plugin just acts as a wrapper to delegate the
          <code>torque:*</code> tasks into a <code>build-torque.xml</code>.
        </p>
        
        <table>
          <tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
          <tr>
            <td>torque.mavenPlugin.antFile</td>
            <td>Yes</td>
            <td>
              Specifies which <code>build-torque.xml</code> to use when calling
              the various Torque targets. Defaults to
              <code>${maven.home}/plugins/maven-torque-plugin-3.0-rc2-dev/build-torque.xml</code>.
            </td>
          </tr>
        </table>
      </section>
    </body>
  </document>
  
  
  
  

Mime
View raw message