This is not an Apache Solr question. This is a developer environment question. 
I apologize for my lack of knowledge with ANT.


$ant common.test

...

-test:
   [junit4] <JUnit4> says jolly good day! Master seed: 3510B76A25B8399C

BUILD FAILED
/development/solr/lucene/common-build.xml:1599: The following error occurred 
while executing this line:
/development/solr//lucene/common-build.xml:1126: Reference junit.classpath not 
found.

Total time: 3 minutes 20 seconds



I have tried adding a CLASSPATH environment variable.
I have tried placing nunit      jars in /Library/Java/Exentions and the “user” 
equivalent location as well.




Common-build.xml

Line 1126 is the “>” on the last line of this snippet:

<junit4:junit4
    taskName="junit4"
    dir="@{workDir}"
    tempdir="@{workDir}/temp"
    maxmemory="${tests.heapsize}"

    statsPropertyPrefix="junit4.stats"

    parallelism="@{threadNum}"

    printSummary="true"
    haltonfailure="${tests.haltonfailure}" 
    failureProperty="tests.failed"

    dynamicAssignmentRatio="${tests.dynamicAssignmentRatio}"
    shuffleOnSlave="true"
    leaveTemporary="${junit4.leaveTemporary}"
    seed="${tests.seed}"
    onNonEmptyWorkDirectory="wipe"

    heartbeat="${tests.heartbeat}"
    uniqueSuiteNames="false"
    
    debugstream="false”
> 



Line 1599 (<test-macro threadNum="${tests.jvms.override}" />)

<!-- Run the actual tests (must be wrapped with -init-totals, -check-totals) -->
<target name="-test">
  <mkdir dir="${junit.output.dir}"/>
  <test-macro threadNum="${tests.jvms.override}" />
</target>


I don’t know if I have a system configuration problem, or if I am running the 
ANT scripts incorrectly.

Any help appreciated.

Reply via email to