Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3643

Bug in 'ant example' build - solr/example/solr-webapp might not exist

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-BETA, 6.0
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None

      Description

      In 4.x or trunk, 'ant example' assumes that there is an old example/solr-webapp and attempts to remove it. The rule to remove it should ignore errors.

      diff --git solr/build.xml solr/build.xml
      index ec1fcee..142d2b6 100644
      --- solr/build.xml
      +++ solr/build.xml
      @@ -50,7 +50,7 @@
               <attribute name="Main-Class" value="org.apache.solr.util.SimplePostTool"/>
             </manifest>
           </jar>
      -    <delete includeemptydirs="true">
      +    <delete includeemptydirs="true" failonerror="false">
             <fileset dir="${example}/solr-webapp" includes="**/*"/>
           </delete>
           <echo>See ${example}/README.txt for how to run the Solr example configuration.</echo>
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lancenorskog Lance Norskog
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: