hlship      2003/10/23 12:28:35

  Modified:    hivemind/xdocs index.xml ioc.xml
               hivemind project.properties maven.xml
  Log:
  Add new support for build the distributions and installing them to the temporary 
distribution directory.
  
  Revision  Changes    Path
  1.19      +7 -6      jakarta-commons-sandbox/hivemind/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/xdocs/index.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- index.xml 21 Oct 2003 15:14:29 -0000      1.18
  +++ index.xml 23 Oct 2003 19:28:35 -0000      1.19
  @@ -56,8 +56,10 @@
        </p>
        
        <p>
  -     The project has been reorganized as a Maven multiproject; expect a few 
teething pains -- especially
  -     in terms of pre-packaged distributions.  Just download Maven 1.0-rc-1 and 
build it yourself! 
  +     The project has been reorganized as a           
  +     <a href="http://maven.apache.org";>Maven</a> 
  +     multiproject; expect a few teething pains -- especially
  +     in terms of pre-packaged distributions.  Use Maven to build it yourself! 
        Currently there are two sub-projects; for the framework proper, and for the 
standard library.
        A third sub-project, for contributed code and services, will be created soon.
        </p>
  @@ -70,9 +72,8 @@
        </p>
        
        <p>
  -     As an early adopter, you should be ready to download and install 
  -     <a href="http://maven.apache.org";>Maven</a>, and get
  -     the HiveMind source via anonymous CVS.  
  +     As an early adopter, you should be ready to build the latest snapshot of Maven 
and 
  +     use that to build the HiveMind source. We'll try to keep the pre-built 
distributions up-to date.
        </p>
        </section>
        
  
  
  
  1.18      +6 -5      jakarta-commons-sandbox/hivemind/xdocs/ioc.xml
  
  Index: ioc.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/xdocs/ioc.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ioc.xml   21 Oct 2003 15:14:29 -0000      1.17
  +++ ioc.xml   23 Oct 2003 19:28:35 -0000      1.18
  @@ -35,22 +35,23 @@
   <table>
        <tr>
                <td>type-1</td> 
  -             <td>Services are provided with an object from which they can look up 
dependencies (other services). This 
  +             <td>Services need to implement a dedicated interface through which 
they are provided with
  +                 an object from which they can look up dependencies (other 
services). This 
                        is the pattern used by Avalon.</td>
        </tr>   
        <tr>
                <td>type-2</td> 
                <td>
  -                     Dependent services are assigned via JavaBeans properties.
  +                     Services dependent upon are assigned via JavaBeans properties 
(setter methods).
                        The <a href="http://www.springframework.org/";>Spring</a>       
  framework uses this approach.
                </td>
        </tr>
        <tr>
                <td>type-3</td> 
                <td>
  -                     Dependent services are provided using a constructor and are 
not exposed as JavaBeans properties.
  +                     Services dependent upon are provided as constructor parameters 
and are not exposed as JavaBeans properties.
                        This is favored by
  -                     <a href="http://www.springframework.org/";>Picocontainer</a>.
  +                     <a href="http://www.picocontainer.org/";>PicoContainer</a>.
                </td>
        </tr>
   </table>
  
  
  
  1.6       +11 -2     jakarta-commons-sandbox/hivemind/project.properties
  
  Index: project.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/project.properties,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- project.properties        20 Sep 2003 12:48:19 -0000      1.5
  +++ project.properties        23 Oct 2003 19:28:35 -0000      1.6
  @@ -6,4 +6,13 @@
   maven.jar.index=true
   
   maven.multiproject.aggregateDir=
  -maven.xdoc.version=${pom.currentVersion}
  \ No newline at end of file
  +maven.xdoc.version=${pom.currentVersion}
  +
  +# The SCP qualified directory for distributions
  +# You must use ssh-agent to start a shell, and ssh-add to authenticate
  +# before executing the dist-release or dist-release-all Maven targets.
  +
  +hivemind.dist.user=hlship
  +hivemind.dist.host=jakarta.apache.org
  +hivemind.dist.dir=public_html/hivemind
  +
  
  
  
  1.11      +33 -1     jakarta-commons-sandbox/hivemind/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/maven.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- maven.xml 9 Oct 2003 22:58:16 -0000       1.10
  +++ maven.xml 23 Oct 2003 19:28:35 -0000      1.11
  @@ -59,4 +59,36 @@
                <copy todir="${output.dir}" file="src/xsl/hivemind.css"/>
   
        </goal> 
  +     
  +     <goal name="dist-release-all" description="Attain dist:release goal for each 
subproject.">
  +             <j:set var="goal" value="dist-release"/>
  +             <attainGoal name="multiproject:goal"/>  
  +             
  +             <echo>Fixing distribution access mods ...</echo>
  +             
  +             <exec executable="ssh" timeout="300000">
  +                     <arg line="-l ${hivemind.dist.user}"/>
  +                     <arg line="${hivemind.dist.host}"/>
  +                     <arg line="' cd ${hivemind.dist.dir}; chmod a+r * '"/>  
  +             </exec>
  +     </goal>
  +     
  +     <!-- Inherited by each sub-project. -->
  +     
  +     <goal name="dist-release">
  +             <attainGoal name="dist:build"/>
  +             
  +             <echo>Copying distributions to ${hivemind.dist.host} ...</echo>
  +             
  +             <j:set var="hivemind.final.scp.path" value="[EMAIL 
PROTECTED]:${hivemind.dist.dir}"/>
  +             
  +             <!-- Give it five minutes before failing. -->
  +             
  +             <exec executable="scp" timeout="300000">
  +                     <arg value="target/distributions/*"/>
  +                     <arg value="${hivemind.final.scp.path}"/>
  +             </exec>
  +             
  +     </goal>
  +     
   </project>
  
  
  

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

Reply via email to