| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 524c840 commit a8ce48b
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,6 @@ | |||
| 8 | 8 | ||
| 9 | 9 | <property name="readable-project-name" value="DrJava" /> | |
| 10 | 10 | <property name="src-working-dir" value="src/edu/rice/cs/drjava" /> | |
| 11 | - <property name="junit-jar-to-include" value="lib/concutest-junit-4.7-withrt-nodep.jar" /> | ||
| 12 | 11 | <property name="md5-temp-name" value="classes/md5.properties" /> | |
| 13 | 12 | <property name="md5-properties-path" value="edu/rice/cs/drjava/md5.properties" /> | |
| 14 | 13 | <property name="main-class" value="edu.rice.cs.drjava.DrJava" /> | |
@@ -62,15 +61,12 @@ | |||
| 62 | 61 | <property name="coverage-report-dir" value="coverage_report"/> | |
| 63 | 62 | <property name="coverage-exec" value="jacoco.exec"/> | |
| 64 | 63 | ||
| 65 | - <!-- <extendclasspath path="lib/buildlib/junit.jar" /> --> | ||
| 66 | - | ||
| 67 | 64 | <fileset id="libs" dir="lib" includes="*.jar" /> <!-- Only include jars that are at the top level (not in buildlib) --> | |
| 68 | 65 | <fileset id="jrelibs" dir="${java.home}/lib" includes="*.jar" /> | |
| 69 | 66 | <echo message="libs = ${toString:libs}" /> | |
| 70 | 67 | <echo message="jrelibs = ${toString:jrelibs}" /> | |
| 71 | 68 | <fileset id="extlibs" dir="${java.home}/lib/ext" includes="*.jar" /> | |
| 72 | 69 | <echo message="extlibs = ${toString:extlibs}" /> | |
| 73 | - <property name="use-concjunit" value="false" /> | ||
| 74 | 70 | <!-- ************ | |
| 75 | 71 | Help Targets | |
| 76 | 72 | ************ --> | |
@@ -140,7 +136,6 @@ | |||
| 140 | 136 | <echo message=" popup)" /> | |
| 141 | 137 | <echo message="drjava.test.config: Location of the DrJava configuration file to use" /> | |
| 142 | 138 | <echo message=" in tests (default: testFiles/drjava.basic.config)" /> | |
| 143 | - <echo message="use-concjunit: Set to true to test ConcJUnit instead of JUnit." /> | ||
| 144 | 139 | </target> | |
| 145 | 140 | ||
| 146 | 141 | <!-- ************ | |
@@ -335,17 +330,14 @@ | |||
| 335 | 330 | <antcall target="iterate-tests"> | |
| 336 | 331 | <param name="test-jvm" value="java" /> | |
| 337 | 332 | <param name="test-tools" value="${current-tools}" /> | |
| 338 | - <param name="test-force-disable-concjunit" value="false" /> | ||
| 339 | 333 | </antcall> | |
| 340 | 334 | </target> | |
| 341 | 335 | ||
| 342 | 336 | <target name="test-8" depends="compile, resolve-java8-exec, resolve-java8-tools" unless="skip-test" | |
| 343 | 337 | description="Run all tests under Java 8 (after compiling); use -Dtest-spec=... to filter"> | |
| 344 | - <echo message="ConcJUnit is currently incompatible with Java 8."/> | ||
| 345 | 338 | <antcall target="iterate-tests"> | |
| 346 | 339 | <param name="test-jvm" value="${java8-exec}" /> | |
| 347 | 340 | <param name="test-tools" value="${java8-tools}" /> | |
| 348 | - <param name="test-force-disable-concjunit" value="true" /> | ||
| 349 | 341 | </antcall> | |
| 350 | 342 | </target> | |
| 351 | 343 | ||
@@ -434,9 +426,8 @@ | |||
| 434 | 426 | </target> | |
| 435 | 427 | ||
| 436 | 428 | ||
| 437 | - <target name="do-test" depends="resolve-jvm-args, resolve-junit-jar"> | ||
| 429 | + <target name="do-test" depends="resolve-jvm-args"> | ||
| 438 | 430 | <echo message="Running all tests matching '${test-filter-string}' with command '${test-jvm}', using '${junit-jar}' and '${test-tools}'" /> | |
| 439 | - <!-- <extendclasspath path="${junit-jar}" /> --> | ||
| 440 | 431 | <jacoco:coverage xmlns:jacoco="antlib:org.jacoco.ant"> | |
| 441 | 432 | <junit haltonfailure="${test-halt}" failureproperty="test-failed" | |
| 442 | 433 | fork="yes" forkmode="perTest" maxmemory="2G" jvm="${test-jvm}" dir="${basedir}"> | |
@@ -457,7 +448,7 @@ | |||
| 457 | 448 | <propertyref prefix="drjava." /> | |
| 458 | 449 | <!-- Add any properties that should be passed on --> | |
| 459 | 450 | </syspropertyset> | |
| 460 | - <jvmarg line="${jvm-args} ${concjunit-bootclasspath}" /> | ||
| 451 | + <jvmarg line="${jvm-args}" /> | ||
| 461 | 452 | <formatter classname="${test-formatter-class}" usefile="${test-output-to-file}" /> | |
| 462 | 453 | <batchtest fork="true"> | |
| 463 | 454 | <fileset dir="classes/test"> | |
@@ -665,7 +656,7 @@ | |||
| 665 | 656 | Clean Targets | |
| 666 | 657 | ************* --> | |
| 667 | 658 | ||
| 668 | - <target name="clean" depends="clean-intermediate, clean-coverage-report, clean-products, clean-concjunit" description="Remove all build products; the result should match the intended Subversion contents"> | ||
| 659 | + <target name="clean" depends="clean-intermediate, clean-coverage-report, clean-products" description="Remove all build products; the result should match the intended Subversion contents"> | ||
| 669 | 660 | </target> | |
| 670 | 661 | ||
| 671 | 662 | <target name="clean-intermediate" unless="skip-clean"> | |
@@ -721,13 +712,6 @@ | |||
| 721 | 712 | ||
| 722 | 713 | </target> | |
| 723 | 714 | ||
| 724 | - <target name="clean-concjunit" unless="skip-clean"> | ||
| 725 | - <echo message="Deleting ConcJUnit artifacts" /> | ||
| 726 | - | ||
| 727 | - <delete file="instr.concjunit.txt" failonerror="${clean-can-fail}" /> | ||
| 728 | - <delete file="rt.concjunit.jar" failonerror="${clean-can-fail}" /> | ||
| 729 | - </target> | ||
| 730 | - | ||
| 731 | 715 | <!-- *************** | |
| 732 | 716 | Release Targets | |
| 733 | 717 | *************** --> | |
@@ -1174,54 +1158,5 @@ | |||
| 1174 | 1158 | --> | |
| 1175 | 1159 | <available file="${generate-dir}" property="already-generated" /> | |
| 1176 | 1160 | </target> | |
| 1177 | - | ||
| 1178 | - | ||
| 1179 | - | ||
| 1180 | - <!-- ***************** | ||
| 1181 | - ConcJUnit Targets | ||
| 1182 | - ***************** --> | ||
| 1183 | - <target name="resolve-junit-jar"> | ||
| 1184 | - <if> | ||
| 1185 | - <and> | ||
| 1186 | - <istrue value="${use-concjunit}" /> | ||
| 1187 | - <isfalse value="${test-force-disable-concjunit}" /> | ||
| 1188 | - </and> | ||
| 1189 | - <then> | ||
| 1190 | - <property name="junit-jar-1" location="lib/buildlib/concutest-junit-4.7-withrt-nodep.jar" /> | ||
| 1191 | - <available property="junit-jar" value="${junit-jar-1}" file="${junit-jar-1}" /> | ||
| 1192 | - | ||
| 1193 | - <fail message="Can't find concutest-junit-4.7-withrt-nodep.jar in the lib/buildlib directory" unless="junit-jar" /> | ||
| 1194 | - | ||
| 1195 | - <property name="concjunitrt-jar-1" location="lib/buildlib/concjunitrt.jar" /> | ||
| 1196 | - <available property="concjunitrt-jar" value="${concjunitrt-jar-1}" file="${concjunitrt-jar-1}" /> | ||
| 1197 | - | ||
| 1198 | - <fail message="Can't find concjunitrt.jar in the lib/buildlib directory" unless="concjunitrt-jar" /> | ||
| 1199 | - | ||
| 1200 | - <property name="rt-concjunit-jar-1" location="rt.concjunit.jar" /> | ||
| 1201 | - | ||
| 1202 | - <if> | ||
| 1203 | - <not> | ||
| 1204 | - <available file="${rt-concjunit-jar-1}" /> | ||
| 1205 | - </not> | ||
| 1206 | - <then> | ||
| 1207 | - <echo message="Instrumenting Java runtime (no changes made to original), java=${test-jvm}" /> | ||
| 1208 | - <java jar="${concjunitrt-jar}" jvm="${test-jvm}" fork="yes" inputstring="Y"/> | ||
| 1209 | - </then> | ||
| 1210 | - <else> | ||
| 1211 | - <echo message="${rt-concjunit-jar-1} already exists, not instrumenting." /> | ||
| 1212 | - </else> | ||
| 1213 | - </if> | ||
| 1214 | - <available property="concjunit-bootclasspath" value="-Xbootclasspath/p:'${rt-concjunit-jar-1}'" file="${rt-concjunit-jar-1}" /> | ||
| 1215 | - <echo message="boot classpath: ${concjunit-bootclasspath}" /> | ||
| 1216 | - </then> | ||
| 1217 | - <else> | ||
| 1218 | - <property name="junit-jar-1" location="lib/buildlib/junit.jar" /> | ||
| 1219 | - <available property="junit-jar" value="${junit-jar-1}" file="${junit-jar-1}" /> | ||
| 1220 | - <available property="concjunit-bootclasspath" value="" file="${junit-jar-1}" /> | ||
| 1221 | - <fail message="Can't find junit.jar in the lib/buildlib directory" unless="junit-jar" /> | ||
| 1222 | - </else> | ||
| 1223 | - </if> | ||
| 1224 | - </target> | ||
| 1225 | - | ||
| 1226 | 1161 | </project> | |
| 1227 | 1162 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -321,8 +321,8 @@ public void addRegion(final R region) { | |||
| 321 | 321 | docRegions = new RegionSet<R>(); | |
| 322 | 322 | ||
| 323 | 323 | /* The RegionSet needs a reference to 'this' so 'this' is notified on changes. */ | |
| 324 | - if (this._notifyOnSetChange) { | ||
| 325 | - @SuppressWarnings("unchecked") | ||
| 324 | + if (this._notifyOnSetChange) { | ||
| 325 | + @SuppressWarnings("unchecked") // What an ugly hack; the elements in ConcreteRegionManager have type R | ||
| 326 | 326 | ConcreteRegionManager<OrderedDocumentRegion> thisRef = (ConcreteRegionManager<OrderedDocumentRegion>)this; | |
| 327 | 327 | docRegions.setManager(thisRef); | |
| 328 | 328 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,7 +45,7 @@ | |||
| 45 | 45 | */ | |
| 46 | 46 | public final class GlobalModelJUnitTest extends GlobalModelTestCase { | |
| 47 | 47 | ||
| 48 | - private static Log _log = new Log("GlobalModel.txt", false); | ||
| 48 | + private static Log _log = new Log("GlobalModel.txt", true); | ||
| 49 | 49 | ||
| 50 | 50 | /** Whether or not to print debugging output. */ | |
| 51 | 51 | static final boolean printMessages = true; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2822,9 +2822,7 @@ public void regionChanged(MovingDocumentRegion r) { | |||
| 2822 | 2822 | regionRemoved(r); | |
| 2823 | 2823 | ||
| 2824 | 2824 | /* Only re-add region if it is still a match. */ | |
| 2825 | - if (findReplacePanel.isSearchStringMatch(r, searchString)) { | ||
| 2826 | - regionAdded(r); | ||
| 2827 | - } | ||
| 2825 | + if (findReplacePanel.isSearchStringMatch(r, searchString)) { regionAdded(r); } | ||
| 2828 | 2826 | } | |
| 2829 | 2827 | ||
| 2830 | 2828 | public void regionRemoved(MovingDocumentRegion r) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments