portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/build build.xml
Date Tue, 20 May 2003 07:14:50 GMT
taylor      2003/05/20 00:14:49

  Modified:    build    build.xml
  Log:
  First go at Lucene Search Portlet
  Added task to create the sample data: "lucene-create-indices"
  
  Revision  Changes    Path
  1.194     +35 -6     jakarta-jetspeed/build/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/build/build.xml,v
  retrieving revision 1.193
  retrieving revision 1.194
  diff -u -r1.193 -r1.194
  --- build.xml	19 May 2003 23:37:50 -0000	1.193
  +++ build.xml	20 May 2003 07:14:49 -0000	1.194
  @@ -103,7 +103,11 @@
       <property name="checkstyle.errors" value="checkstyle_errors.log"/>
       <property name="checkstyle.cache.basic" value="checkstyle_cache_basic.tmp"/>
       <property name="checkstyle.cache.ideal" value="checkstyle_cache_ideal.tmp"/>
  -         
  +
  +    <!-- Test settings -->
  +    <property name="test.dir" value="test"/>        
  +    <property name="test.lucene.dir" value="${test.dir}/LuceneIndex"/>        
  +     
       <!-- =================================================================== -->
       <!-- Builds Classpath                                                    -->
       <!-- =================================================================== -->
  @@ -1001,8 +1005,9 @@
       <!-- =================================================================== -->
       <!-- Run the client JUnit test cases (non-cactus) on the Caching system -->
       <!-- =================================================================== -->
  -    <target name="unittest-all" depends="unittest, unittest-cache, unittest-security"
  -            description="Run all unit test"/>
  +    <target name="unittest-all" depends="unittest, unittest-cache, unittest-security,
unittest-search-lucene"
  +            description="Run all unit test"/> 
  +
   
       <!-- =================================================================== -->
       <!-- Run the client JUnit test cases (non-cactus)                        -->
  @@ -1035,9 +1040,10 @@
               <test name="org.apache.jetspeed.services.profiler.TestProfilerService"/>
               <test name="org.apache.jetspeed.services.registry.TestRegistryCategories"/>
               <test name="org.apache.jetspeed.cache.TestFileCache"/>
  -            <test name="org.apache.jetspeed.util.TestOverwriteProperties"/>     
                          
  +            <test name="org.apache.jetspeed.util.TestOverwriteProperties"/>   
   <!--            <test name="org.apache.jetspeed.services.registry.TestRegistryPersistence"/>
-->
           </junit>
  +
       </target>
   
       <!-- =================================================================== -->
  @@ -1080,7 +1086,7 @@
       <!-- =================================================================== -->
       <!-- Run the client JUnit test cases (non-cactus) on the Lucene Search   -->
       <!-- =================================================================== -->
  -    <target name="unittest-search-lucene" depends="compile"
  +    <target name="unittest-search-lucene" depends="compile, remove-test-lucene"
               description="Test the Lucene Search service">
   
           <junit printsummary="yes" haltonfailure="yes" haltonerror="yes" fork="yes">
  @@ -1093,12 +1099,35 @@
   
               <formatter type="plain" usefile="false"/>            
   
  -            <!-- JUnit unit tests -->
  +            <!-- First always remove the Index directory before testing -->
               <test name="org.apache.jetspeed.services.lucene.TestLuceneSearch"/>
                   
           </junit>
       </target>
   
  +    <target name="remove-test-lucene">
  +        <delete dir="${test.lucene.dir}"/> 
  +    </target>
  +
  +    <!-- =================================================================== -->
  +    <!-- Create the deployment indices for Lucene                            -->
  +    <!-- The indices are already populated by default for the sample portlet -->
  +    <!-- Run this target to recreate them to change the default sample data  -->
  +    <!-- =================================================================== -->
  +    <property name="sample.lucene.dir" value="${webapp.dir}/WEB-INF/LuceneIndex"/>
       
  +
  +    <target name="lucene-create-indices" depends="compile"
  +            description="Creates sample data for Sample Lucene Portlet">
  +
  +        <delete dir="${sample.lucene.dir}"/> 
  +        <java fork="true" classname="org.apache.jetspeed.services.lucene.PopulateSampleIndices"
>
  +            <classpath>
  +                <pathelement location="${build.dest.dir}"/>
  +                <path refid="classpath"/>
  +            </classpath>
  +        </java>
  +
  +    </target>
   
        <!-- =================================================================== -->
       <!-- Run the client JUnit test cases (non-cactus) on the Caching system  -->
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message