jvanzyl     02/02/21 07:01:06

  Added:       .        build-bootstrap.xml
  Log:
  - working on the bootstrap process, the build file for maven is generated
    from it's own templates. now i need to get the project descriptor in object
    form into the context. everything is generated in the "work" directory for
    now until the process works.
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-maven/build-bootstrap.xml
  
  Index: build-bootstrap.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Maven" default="generate-build" basedir=".">
  
    <!-- Allow any user specific values to override the defaults -->
    <property file="${user.home}/build.properties" />
    <!-- Allow user defaults for this project -->
    <property file="build.properties" />
    <!-- Set default values for the build -->
    <property file="default.properties" />
  
    <!-- Construct compile classpath -->
    <path id="classpath">
      <pathelement location="${dom4j.jar}"/>
      <pathelement location="${commons-beanutils.jar}"/>
      <pathelement location="${commons-collections.jar}"/>
      <pathelement location="${velocity.jar}"/>
      <pathelement location="${log4j.jar}"/>
      <pathelement location="${stratum.jar}"/>
      <pathelement location="${dom4j.jar}" />
    </path>
  
    <!-- ================================================================== -->
    <!-- E N V I R O N M E N T                                             -->
    <!-- ================================================================== -->
  
    <target name="env">
      <echo message="java.home = ${java.home}"/>
      <echo message="user.home = ${user.home}"/>
      <echo message="lib.repo = ${lib.repo}"/>
    </target>
  
    <!-- ================================================================== -->
    <!-- U S A G E                                                          -->
    <!-- ================================================================== -->
  
    <target
      name="usage">
  
      <echo message="use -projecthelp to see the available targets"/>
    </target>
  
    <target
      name="generate-build">
  
      <mkdir dir="work"/>
      
      <taskdef
        name="texen"
        classname="org.apache.velocity.texen.ant.TexenTask">
        <classpath refid="classpath"/>
      </taskdef>
  
      <texen
        controlTemplate="Control.vm"
        outputDirectory="./work"
        templatePath="${src.dir}/templates/build"
        outputFile="bootstrap.report"
      />
  
    </target>
  
  </project>
  
  
  

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

Reply via email to