jford       2004/06/26 12:39:05

  Modified:    .        maven.xml
  Log:
  Modified build to make fusion optional part of build
  
  Revision  Changes    Path
  1.23      +71 -4     jakarta-jetspeed/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/maven.xml,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- maven.xml 26 Jun 2004 00:29:02 -0000      1.22
  +++ maven.xml 26 Jun 2004 19:39:05 -0000      1.23
  @@ -13,11 +13,66 @@
   See the License for the specific language governing permissions and
   limitations under the License.
   -->
  -<project default="jar:jar" xmlns:j="jelly:core" xmlns:m="maven" 
xmlns:castor="castor">
  +<project default="jar:jar" 
  +             xmlns:j="jelly:core"
  +             xmlns:maven="jelly:maven" 
  +             xmlns:m="maven" 
  +             xmlns:castor="castor">
   
  -     <postGoal name="war">
  -             <attainGoal name='jar:install'/>
  -     </postGoal>
  +     <goal name="allClean"
  +        description="Clean the master project and all subprojects">
  +
  +             <maven:reactor
  +               basedir="${basedir}"
  +               includes="fusion/project.xml"
  +               excludes=""
  +               goals="clean"
  +               banner="Cleaning"
  +               ignoreFailures="false"/>
  +
  +         <attainGoal name="clean"/>
  +             
  +     </goal>
  +
  +     <preGoal name="war:init">       
  +     <attainGoal name= "jar:install"/>
  +     
  +     <j:if test="${org.apache.jetspeed.fusion}">
  +          <maven:reactor
  +               basedir="${basedir}"
  +               includes="fusion/project.xml"
  +               excludes=""
  +               goals="jar:install"
  +               banner="Building Fusion"
  +               ignoreFailures="false"/>
  +     </j:if>
  +     
  +     <j:set var="maven.test.skip" value="true" />
  +     <echo>Testing flag is: ${maven.test.skip} for war:install</echo>
  +
  +    </preGoal>
  +  
  +    <postGoal name="war:install">    
  +      <j:set var="maven.test.skip" value="false" />
  +    </postGoal>
  +    
  +    <postGoal name="war:webapp">
  +        <j:if test="${org.apache.jetspeed.fusion}">
  +             <j:forEach var="lib" items="${pom.artifacts}">
  +                 <j:set var="dep" value="${lib.dependency}"/>
  +                 <!--<echo>Dep: ${dep.getArtifactId()} 
${dep.getProperty('fusion.include')</echo>-->
  +                     <j:if test="${dep.getProperty('fusion.include')=='true'}">
  +                         <j:if test="${dep.type =='jar'}"> 
  +                                 <copy todir="${maven.war.webapp.dir}/WEB-INF/lib" 
file="${lib.path}"/>  
  +                             </j:if> 
  +                              
  +                              <j:if test="${dep.type =='tld'}"> 
  +                                  <copy 
todir="${maven.war.webapp.dir}/${maven.war.tld.dir}" file="${lib.path}"/>  
  +                              </j:if> 
  +                     </j:if>
  +             </j:forEach>
  +        </j:if>   
  +    </postGoal>
        
        <!-- ================================================================== -->
        <!-- D I S T R I B U T I O N   G O A L S                         -->
  @@ -95,6 +150,8 @@
                </copy>
                <attainGoal name="jar:install"/>
        </goal>
  +     
  +     <!--
        <goal name="jar:install" prereqs="java:jar" description="Install the jar into 
the local repository">
                <property name="jardir__" 
value="${maven.repo.local}/${pom.artifactId}/jars"/>
                <mkdir dir="${jardir__}"/>
  @@ -104,6 +161,9 @@
                        </fileset>
                </copy>
        </goal>
  +     -->
  +     
  +     
        <!-- ================================================================== -->
        <!--C O P Y  L O C A L I Z A T I O N   R E S O U R C E S                       
   -->
        <!-- ================================================================== -->
  @@ -255,6 +315,13 @@
                        </fileset>
                </copy>
                -->
  +             
  +             <j:set var="fusion.properties" value="fusion-setup.properties.empty"/>
  +             <j:if test="${org.apache.jetspeed.fusion}">
  +                     <j:set var="fusion.properties" 
value="fusion-setup.properties.full"/>
  +             </j:if>
  +             
  +             <copy 
tofile="${maven.war.webapp.dir}/WEB-INF/conf/fusion-setup.properties" 
file="fusion/src/webapp/WEB-INF/conf/${fusion.properties}" />
        </preGoal>      
        
       <goal name="deploy" description="Deploys jetspeed.war on a local server">       
 
  
  
  

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

Reply via email to