commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: jakarta-commons-sandbox/email .cvsignore project.xml build.xml build.properties
Date Tue, 30 Apr 2002 03:02:08 GMT
jon         02/04/29 20:02:08

  Modified:    email    build.xml
  Added:       email    .cvsignore project.xml
  Removed:     email    build.properties
  Log:
  build with maven now.
  
  -jon
  
  Revision  Changes    Path
  1.4       +75 -205   jakarta-commons-sandbox/email/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/email/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml	28 Feb 2002 18:03:51 -0000	1.3
  +++ build.xml	30 Apr 2002 03:02:08 -0000	1.4
  @@ -1,232 +1,102 @@
  -<project name="Jakarta Commons Email" default="jar" basedir=".">
  +<?xml version="1.0"?>
   
  -<!--
  -        $Id: build.xml,v 1.3 2002/02/28 18:03:51 dlr Exp $
  --->
  +<project name="Commons-Email" default="maven:jar" basedir=".">
   
  -<!-- ========== Initialize Properties =================================== -->
  +  <!-- Give user a chance to override without editing this file
  +       (and without typing -D each time they invoke a target) -->
   
     <!-- Allow any user specific values to override the defaults -->
     <property file="${user.home}/build.properties" />
  -
  -  <!-- Set default values for the build -->
  +  <!-- Allow user defaults for this project -->
     <property file="build.properties" />
  +  <!-- Set default values for the build -->
  +  <property file="project.properties" />
   
  -<!-- ========== Component Declarations ================================== -->
  -
  -
  -  <!-- The name of this component -->
  -  <property name="component.name" value="commons-email"/>
  -
  -  <!-- The title of this component -->
  -  <property name="component.title" value="Jakarta Commons Email"/>
  -
  -  <!-- The current version number of this component -->
  -  <property name="component.version" value="0.1-dev"/>
  -
  -  <!-- The JAR file for this component -->
  -  <property name="component.jar" value="${component.name}-${component.version}.jar"/>
  -
  -  <!-- The base directory for compilation targets -->
  -  <property name="build.home" value="target"/>
  -
  -  <!-- The base directory for distribution targets -->
  -  <property name="dist.home" value="dist"/>
  -
  -  <!-- The base directory for component sources -->
  -  <property name="source.home" value="src"/>
  -
  -  <!-- The base directory for unit test sources -->
  -  <property name="test.home" value="src/test"/>
  -
  -
  -<!-- ========== Compiler Defaults ======================================= -->
  -
  -
  -  <!-- Should Java compilations set the 'debug' compiler option? -->
  -  <property name="compile.debug" value="false"/>
  -
  -  <!-- Should Java compilations set the 'deprecation' compiler option? -->
  -  <property name="compile.deprecation" value="true"/>
  -
  -  <!-- Should Java compilations set the 'optimize' compiler option? -->
  -  <property name="compile.optimize" value="true"/>
  -
  -  <!-- Construct compile classpath -->
  -  <path id="classpath">
  -    <pathelement location="${javamail.jar}"/>
  -    <pathelement location="${jaf.jar}"/>
  -    <pathelement location="${commons-util.jar}"/>
  -  </path>
  -
  -<!-- ========== Test Execution Defaults ================================= -->
  -
  -
  -  <!-- Construct unit test classpath -->
  -  <path id="test.classpath">
  -    <pathelement location="${build.home}/classes"/>
  -    <pathelement location="${build.home}/tests"/>
  -    <pathelement location="${junit.jar}"/>
  -  </path>
  -
  -  <!-- Should all tests fail if one does? -->
  -  <property name="test.failonerror" value="true"/>
  -
  -  <!-- The test runner to execute -->
  -  <property name="test.runner" value="junit.textui.TestRunner"/>
  -
  -
  -<!-- ========== Executable Targets ====================================== -->
  -
  -  <target name="init"
  -    description="Initialize and evaluate conditionals">
  -    <echo message="-------- ${component.name} ${component.version} --------"/>
  -    <filter token="name" value="${component.name}"/>
  -    <filter token="version" value="${component.version}"/>
  -
  -    <available
  -      classname="org.apache.commons.util.GenerateUniqueId"
  -      property="commons-util.present"
  -      classpathref="classpath"
  -    />
  -
  -    <available
  -      classname="javax.mail.internet.MimeUtility" 
  -      property="javamail.present"
  -      classpathref="classpath"
  -    />
  -
  -    <available
  -      classname="javax.activation.DataSource" 
  -      property="jaf.present"
  -      classpathref="classpath"
  -    />
  -
  +  <!-- maven:start -->
  +  
  +  <!-- ================================================================== -->
  +  <!-- D E L E G A T O R S                                                -->
  +  <!-- ================================================================== -->
  +        
  +  <target 
  +    name="maven:site">
  +    <ant antfile="${maven.home}/build-docs.xml" target="site"/>
     </target>
  -
  -  <target name="check.javamail" unless="javamail.present">
  -    <antcall target="property-warning">
  -      <param name="name" value="javamail.jar"/>
  -      <param name="value" value="${javamail.jar}"/>
  -    </antcall>
  +        
  +  <target 
  +    name="maven:jar">
  +    <ant antfile="${maven.home}/build-maven.xml" target="jar"/>
     </target>
  -
  -  <target name="check.jaf" unless="jaf.present">
  -    <antcall target="property-warning">
  -      <param name="name" value="jaf.jar"/>
  -      <param name="value" value="${jaf.jar}"/>
  -    </antcall>
  +        
  +  <target 
  +    name="maven:install-jar">
  +    <ant antfile="${maven.home}/build-maven.xml" target="install-jar"/>
     </target>
  -
  -  <target name="check.commons-util" unless="commons-util.present">
  -    <antcall target="property-warning">
  -      <param name="name" value="commons-util.jar"/>
  -      <param name="value" value="${commons-util.jar}"/>
  -    </antcall>
  +        
  +  <target 
  +    name="maven:env">
  +    <ant antfile="${maven.home}/build-maven.xml" target="env"/>
     </target>
  -
  -  <target name="prepare"
  -    depends="init,check.commons-util,check.javamail,check.jaf"
  -    description="Prepare build directory">
  -    <mkdir dir="${build.home}"/>
  -    <mkdir dir="${build.home}/classes"/>
  -    <mkdir dir="${build.home}/conf"/>
  -    <mkdir dir="${build.home}/tests"/>
  +        
  +  <target 
  +    name="maven:docs">
  +    <ant antfile="${maven.home}/build-docs.xml" target="docs"/>
     </target>
  -
  -  <target name="property-warning">
  -    <echo>
  -      +----------------------------------------------------------------+
  -      + F A I L E D  R E Q U I R E M E N T                             |
  -      +----------------------------------------------------------------+
  -      | You must define the following property in order                |
  -      | to build Torque:                                               |
  -      |                                                                |
  -      | ${name} = ${value}
  -      |                                                                |
  -      | You can set this property in the provided build.properties     |
  -      | file, or you may set this property in your                     |
  -      | ${user.home}/build.properties file.                            
  -      +----------------------------------------------------------------+
  -    </echo>
  -    <fail message="Failed Requirement"/>
  +        
  +  <target 
  +    name="maven:test">
  +    <ant antfile="${maven.home}/build-test.xml" target="test"/>
     </target>
   
  -  <target name="static" depends="prepare"
  -    description="Copy static files to build directory">
  -    <tstamp/>
  +  <target 
  +    name="maven:run-singletest">
  +    <ant antfile="${maven.home}/build-test.xml" target="run-singletest"/>
     </target>
   
  -  <target name="compile" depends="static" 
  -      description="Compile shareable components">
  -
  -    <javac srcdir="${source.home}/java"
  -      destdir="${build.home}/classes"
  -      debug="${compile.debug}"
  -      deprecation="${compile.deprecation}"
  -      optimize="${compile.optimize}">
  -      <classpath refid="classpath"/>
  -    </javac>
  -
  +  <target 
  +    name="maven:clean">
  +    <ant antfile="${maven.home}/build-maven.xml" target="clean"/>
     </target>
  -
  -
  -  <target name="clean"
  -   description="Clean build and distribution directories">
  -    <delete dir="${build.home}"/>
  -    <delete dir="${dist.home}"/>
  +        
  +  <target  
  +    name="maven:metrics">
  +    <ant antfile="${maven.home}/build-metrics.xml" target="metrics"/>
     </target>
  -
  -
  -  <target name="all" depends="clean,compile"
  -   description="Clean and compile all components"/>
  -
  -
  -  <target name="javadoc" depends="compile"
  -   description="Create component Javadoc documentation">
  -    <mkdir dir="${dist.home}"/>
  -    <mkdir dir="${dist.home}/docs"/>
  -    <mkdir dir="${dist.home}/docs/api"/>
  -    <javadoc sourcepath="${source.home}/java"
  -        destdir="${dist.home}/docs/api"
  -        packagenames="org.apache.commons.*"
  -        author="true"
  -        private="true"
  -        version="true"
  -        doctitle="&lt;h1&gt;${component.title}&lt;/h1&gt;"
  -        windowtitle="${component.title} (Version ${component.version})"
  -        bottom="Copyright (c) 2001 - Apache Software Foundation"/>
  +        
  +  <target 
  +    name="maven:dist">
  +    <ant antfile="${maven.home}/build-maven.xml" target="dist"/>
     </target>
  -
  -  <target name="jar" depends="compile" description="Build jar">
  -       <jar jarfile="${component.jar}"
  -         basedir="${build.home}/classes"
  -         manifest="${source.home}/conf/MANIFEST.MF" />
  +        
  +  <target 
  +    name="maven:deploy-site">
  +    <ant antfile="${maven.home}/build-docs.xml" target="deploy-site"/>
     </target>
  -
  -  <target name="dist" depends="compile,javadoc"
  -   description="Create binary distribution">
  -    <mkdir dir="${dist.home}"/>
  -    <copy file="LICENSE" todir="${dist.home}"/>
  -
  -    <jar jarfile="${dist.home}/${component.jar}"
  -      basedir="${build.home}/classes"
  -      manifest="${source.home}/conf/MANIFEST.MF"/>
  +        
  +  <target 
  +    name="maven:gump-descriptor">
  +    <ant antfile="${maven.home}/build-maven.xml" target="gump-descriptor"/>
  +  </target>
  +        
  +  <target 
  +    name="maven:javadocs">
  +    <ant antfile="${maven.home}/build-docs.xml" target="javadocs"/>
  +  </target>
  +        
  +  <target 
  +    name="maven:compile">
  +    <ant antfile="${maven.home}/build-maven.xml" target="compile"/>
     </target>
   
  -  <!-- ================================================================== -->
  -  <!-- I N S T A L L  J A R                                               -->
  -  <!-- ================================================================== -->
  +  <target 
  +    name="maven:update-jars">
  +    <ant antfile="${maven.home}/build-maven.xml" target="update-jars"/>
  +  </target>
   
  -  <target name="install-jar" depends="jar" 
  -          description="==> Installs .jar file in ${lib.repo}">
  -    <copy todir="${lib.repo}" filtering="no">
  -      <fileset dir="${build.dir}">
  -        <include name="${component.jar}"/>
  -      </fileset>
  -    </copy>
  +  <target name="maven:validate-pom">
  +    <ant antfile="${maven.home}/build-maven.xml" target="validate-pom"/>
     </target>
   
  -<!-- ========== Unit Test Targets ======================================= --> 
  +  <!-- maven:end -->
   
   </project>
  
  
  
  1.1                  jakarta-commons-sandbox/email/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  *~
  .nbattrs
  docs
  target
  test-reports
  velocity.log*
  
  
  
  1.1                  jakarta-commons-sandbox/email/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <project>
    <version>2</version>
    <name>commons-email</name>
    <id>commons-email</id>
    <currentVersion>0.1-dev</currentVersion>
    <organization>Apache Software Foundation</organization>
    <inceptionYear>2002</inceptionYear>
    <package>org.apache.commons.mail</package>
    <shortDescription>Commons Email</shortDescription>
    <gumpRepositoryId>jakarta</gumpRepositoryId>
    <description>Commons Email</description>
    <url>http://jakarta.apache.org/commons/</url>
    <cvsWebUrl>http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/email/</cvsWebUrl>
    <issueTrackingUrl>http://nagoya.apache.org/</issueTrackingUrl>
    <siteAddress>jakarta.apache.org</siteAddress>
    <siteDirectory>/www/jakarta.apache.org/commons/email/</siteDirectory>
    
    <developers>
      <developer>
        <name>Daniel Rall</name>
        <id>dlr</id>
        <email>dlr@finemaltcoding.com</email>
        <organization>CollabNet, Inc.</organization>
      </developer>
      <developer>
        <name>Jason van Zyl</name>
        <id>jvanzyl</id>
        <email>jason@zenplex.com</email>
        <organization>Zenplex</organization>
      </developer>
      <developer>
        <name>Jon Scott Stevens</name>
        <id>jon</id>
        <email>jon@latchkey.com</email>
        <organization>CollabNet, Inc.</organization>
      </developer>
    </developers>
    
    <dependencies>
      
      <dependency>
        <name>commons-util</name>
        <type>required</type>
        <version>0.1-dev</version>
        <jar>commons-util-0.1-dev.jar</jar>
      </dependency>
  
      <dependency>
        <name>javamail</name>
        <type>required</type>
        <version>1.2</version>
        <jar>mail-1.2.jar</jar>
      </dependency>
  
      <dependency>
        <name>jaf</name>
        <type>required</type>
        <version>1.0.1</version>
        <jar>activation-1.0.1.jar</jar>
      </dependency>
  
    </dependencies>
    
    <build>
      <sourceDirectories>
        <sourceDirectory>src/java</sourceDirectory>
      </sourceDirectories>
      <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
      <aspectSourceDirectories></aspectSourceDirectories>
      <unitTestPatterns>
        <unitTestPattern>include = **/*Test*.java</unitTestPattern>
      </unitTestPatterns>
      <jarResources></jarResources>
      <jars></jars>
    </build>
  </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message