Skip to content

Commit 634d5df

Browse files
author
Bruce Eckel
committed
Added runconsole for Appveyor
1 parent 38cd722 commit 634d5df

File tree

44 files changed

+989
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+989
-48
lines changed

annotations/build.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,21 @@
2222
<jrun cls="annotations.simplest.SimpleTest" dirpath="../annotations/simplest" />
2323
</target>
2424

25-
</project>
25+
<target name="runconsole" description="Compile and run" depends="build">
26+
<jrunconsole cls="annotations.AtUnitComposition" dirpath="../annotations" />
27+
<jrunconsole cls="annotations.AtUnitExample1" dirpath="../annotations" />
28+
<jrunconsole cls="annotations.AtUnitExample2" dirpath="../annotations" />
29+
<jrunconsole cls="annotations.AtUnitExample3" dirpath="../annotations" />
30+
<jrunconsole cls="annotations.AtUnitExample4" dirpath="../annotations" />
31+
<jrunconsole cls="annotations.AtUnitExample5" dirpath="../annotations" />
32+
<jrunconsole cls="annotations.AtUnitExternalTest" dirpath="../annotations" />
33+
<jrunconsole cls="annotations.HashSetTest" dirpath="../annotations" />
34+
<jrunconsole cls="annotations.StackLStringTest" dirpath="../annotations" />
35+
<jrunconsole cls="UseCaseTracker" />
36+
<jrunconsole cls="annotations.database.TableCreator" dirpath="../annotations/database" arguments="annotations.database.Member" />
37+
<jrunconsole cls="annotations.ifx.Multiplier" dirpath="../annotations/ifx" />
38+
<jrunconsole cls="annotations.simplest.SimpleTest" dirpath="../annotations/simplest" />
39+
</target>
40+
41+
42+
</project>

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_script:
2-
- gradlew.bat --stacktrace
2+
- gradlew.bat runconsole --stacktrace
33

44
test: off

arrays/build.xml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,34 @@
3535
<jrun cls="ThreeDWithNew" />
3636
</target>
3737

38-
</project>
38+
<target name="runconsole" description="Compile and run" depends="build">
39+
<jrunconsole cls="AlphabeticSearch" />
40+
<jrunconsole cls="ArrayOfGenerics" />
41+
<jrunconsole cls="ArrayOptions" />
42+
<jrunconsole cls="ArraySearching" />
43+
<jrunconsole cls="AssemblingMultidimensionalArrays" />
44+
<jrunconsole cls="AutoboxingArrays" />
45+
<jrunconsole cls="CollectionComparison" />
46+
<jrunconsole cls="ComparatorTest" />
47+
<jrunconsole cls="ComparingArrays" />
48+
<jrunconsole cls="CompType" />
49+
<jrunconsole cls="CopyingArrays" />
50+
<jrunconsole cls="FillingArrays" />
51+
<jrunconsole cls="IceCream" />
52+
<jrunconsole cls="MultidimensionalObjectArrays" />
53+
<jrunconsole cls="MultidimensionalPrimitiveArray" />
54+
<jrunconsole cls="MultiDimWrapperArray" />
55+
<jrunconsole cls="ParameterizedArrayType" />
56+
<jrunconsole cls="PrimitiveConversionDemonstration" />
57+
<jrunconsole cls="RaggedArray" />
58+
<jrunconsole cls="RandomSuppliersTest" />
59+
<jrunconsole cls="Reverse" />
60+
<jrunconsole cls="StringSorting" />
61+
<jrunconsole cls="SuppliersTest" />
62+
<jrunconsole cls="TestArrayGeneration" />
63+
<jrunconsole cls="TestGenerated" />
64+
<jrunconsole cls="ThreeDWithNew" />
65+
</target>
66+
67+
68+
</project>

assertions/build.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,12 @@
1313
<jrun cls="Queue" />
1414
</target>
1515

16-
</project>
16+
<target name="runconsole" description="Compile and run" depends="build">
17+
<jrunconsole cls="Assert1" failOnError='false' msg='* Exception was Expected *' />
18+
<jrunconsole cls="Assert2" failOnError='false' msg='* Exception was Expected *' />
19+
<jrunconsole cls="LoaderAssertions" failOnError='false' msg='* Exception was Expected *' />
20+
<jrunconsole cls="Queue" />
21+
</target>
22+
23+
24+
</project>

build.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@
111111
<antcall target="finish"/>
112112
</target>
113113

114+
<target name="runconsole" description="Continuous Integration version with output">
115+
<delete file="errors.txt"/>
116+
<subant>
117+
<filelist refid="buildfiles"/>
118+
<target name="runconsole" />
119+
</subant>
120+
<available file="errors.txt" property="errors"/>
121+
<antcall target="finish"/>
122+
</target>
123+
114124
<target name="testable" description="Compiles and runs testable examples">
115125
<delete file="errors.txt"/>
116126
<subant>

collections/build.xml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,43 @@
4444
<jrun cls="UniqueWordsAlphabetic" />
4545
</target>
4646

47-
</project>
47+
<target name="runconsole" description="Compile and run" depends="build">
48+
<jrunconsole cls="AdapterMethodIdiom" />
49+
<jrunconsole cls="AddingGroups" />
50+
<jrunconsole cls="ApplesAndOrangesWithGenerics" />
51+
<jrunconsole cls="ApplesAndOrangesWithoutGenerics" failOnError='false' msg='* Exception was Expected *' />
52+
<jrunconsole cls="ArrayIsNotIterable" />
53+
<jrunconsole cls="AsListInference" />
54+
<jrunconsole cls="CollectionMethods" />
55+
<jrunconsole cls="CollectionSequence" />
56+
<jrunconsole cls="CrossCollectionIteration" />
57+
<jrunconsole cls="EnvironmentVariables" />
58+
<jrunconsole cls="ForInCollections" />
59+
<jrunconsole cls="GenericsAndUpcasting" />
60+
<jrunconsole cls="InterfaceVsIterator" />
61+
<jrunconsole cls="IterableClass" />
62+
<jrunconsole cls="LinkedListFeatures" />
63+
<jrunconsole cls="ListFeatures" />
64+
<jrunconsole cls="ListIteration" />
65+
<jrunconsole cls="collections.MapOfList" dirpath="../collections" />
66+
<jrunconsole cls="ModifyingArraysAsList" />
67+
<jrunconsole cls="MultiIterableClass" />
68+
<jrunconsole cls="NonCollectionSequence" />
69+
<jrunconsole cls="PetMap" />
70+
<jrunconsole cls="PrintingCollections" />
71+
<jrunconsole cls="PriorityQueueDemo" />
72+
<jrunconsole cls="QueueDemo" />
73+
<jrunconsole cls="SetOfInteger" />
74+
<jrunconsole cls="SetOperations" />
75+
<jrunconsole cls="SimpleCollection" />
76+
<jrunconsole cls="SimpleIteration" />
77+
<jrunconsole cls="SortedSetOfInteger" />
78+
<jrunconsole cls="StackCollision" />
79+
<jrunconsole cls="StackTest" />
80+
<jrunconsole cls="Statistics" />
81+
<jrunconsole cls="UniqueWords" />
82+
<jrunconsole cls="UniqueWordsAlphabetic" />
83+
</target>
84+
85+
86+
</project>

collectionsindepth/build.xml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,45 @@
4646
<jrun cls="Utilities" />
4747
</target>
4848

49-
</project>
49+
<target name="runconsole" description="Compile and run" depends="build">
50+
<jrunconsole cls="AssociativeArray" />
51+
<jrunconsole cls="Bits" />
52+
<jrunconsole cls="CanonicalMapping" />
53+
<jrunconsole cls="CollectionDataGeneration" />
54+
<jrunconsole cls="CollectionDataTest" />
55+
<jrunconsole cls="CollectionMethods" />
56+
<jrunconsole cls="CountedString" />
57+
<jrunconsole cls="DequeTest" />
58+
<jrunconsole cls="Enumerations" />
59+
<jrunconsole cls="FailFast" />
60+
<jrunconsole cls="FillingLists" />
61+
<jrunconsole cls="IndividualTest" />
62+
<jrunconsole cls="LinkedHashMapDemo" />
63+
<jrunconsole cls="ListPerformance" arguments="100 500" />
64+
<jrunconsole cls="Lists" />
65+
<jrunconsole cls="ListSortSearch" />
66+
<jrunconsole cls="MapDataTest" />
67+
<jrunconsole cls="MapPerformance" arguments="100 5000" />
68+
<jrunconsole cls="Maps" />
69+
<jrunconsole cls="QueueBehavior" />
70+
<jrunconsole cls="RandomBounds" arguments="lower" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
71+
<jrunconsole cls="ReadOnly" />
72+
<jrunconsole cls="References" />
73+
<jrunconsole cls="SetPerformance" arguments="100 5000" />
74+
<jrunconsole cls="SimpleHashMap" />
75+
<jrunconsole cls="SlowMap" />
76+
<jrunconsole cls="SortedMapDemo" />
77+
<jrunconsole cls="SortedSetDemo" />
78+
<jrunconsole cls="SpringDetector" />
79+
<jrunconsole cls="SpringDetector2" />
80+
<jrunconsole cls="Stacks" />
81+
<jrunconsole cls="StringHashCode" />
82+
<jrunconsole cls="Synchronization" />
83+
<jrunconsole cls="ToDoList" />
84+
<jrunconsole cls="TypesForSets" />
85+
<jrunconsole cls="Unsupported" />
86+
<jrunconsole cls="Utilities" />
87+
</target>
88+
89+
90+
</project>

com/build.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@
99
<target name="run" description="Compile and run" depends="build">
1010
</target>
1111

12-
</project>
12+
<target name="runconsole" description="Compile and run" depends="build">
13+
</target>
14+
15+
16+
</project>

compression/build.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@
1111
<jrun cls="ZipCompress" arguments="ZipCompress.java" />
1212
</target>
1313

14-
</project>
14+
<target name="runconsole" description="Compile and run" depends="build">
15+
<jrunconsole cls="GZIPcompress" arguments="GZIPcompress.java" />
16+
<jrunconsole cls="ZipCompress" arguments="ZipCompress.java" />
17+
</target>
18+
19+
20+
</project>

concurrency/build.xml

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,72 @@
7373
<jrun cls="concurrency.waxomatic2.WaxOMatic2" dirpath="../concurrency/waxomatic2" />
7474
</target>
7575

76-
</project>
76+
<target name="runconsole" description="Compile and run" depends="build">
77+
<jrunconsole cls="ActiveObjectDemo" />
78+
<jrunconsole cls="AtomicEvenSupplier" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
79+
<jrunconsole cls="AtomicIntegerTest" />
80+
<jrunconsole cls="AtomicityTest" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
81+
<jrunconsole cls="AttemptLocking" />
82+
<jrunconsole cls="BankTellerSimulation" arguments="5" />
83+
<jrunconsole cls="BasicThreads" />
84+
<jrunconsole cls="CachedThreadPool" />
85+
<jrunconsole cls="CallableDemo" />
86+
<jrunconsole cls="CaptureUncaughtException" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
87+
<jrunconsole cls="CarBuilder" />
88+
<jrunconsole cls="CloseResource" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
89+
<jrunconsole cls="CountDownLatchDemo" />
90+
<jrunconsole cls="concurrency.CriticalSection" dirpath="../concurrency" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
91+
<jrunconsole cls="DaemonFromFactory" />
92+
<jrunconsole cls="Daemons" />
93+
<jrunconsole cls="DaemonsDoRunFinally" />
94+
<jrunconsole cls="DeadlockingDiningPhilosophers" arguments="0 5 timeout" />
95+
<jrunconsole cls="DelayQueueDemo" />
96+
<jrunconsole cls="EvenSupplier" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
97+
<jrunconsole cls="ExchangerDemo" />
98+
<jrunconsole cls="concurrency.ExplicitCriticalSection" dirpath="../concurrency" failOnError='false' msg='* Exception was Expected *' />
99+
<jrunconsole cls="FastSimulation" />
100+
<jrunconsole cls="FixedDiningPhilosophers" arguments="5 5 timeout" />
101+
<jrunconsole cls="FixedThreadPool" />
102+
<jrunconsole cls="GreenhouseScheduler" arguments="5000" />
103+
<jrunconsole cls="HorseRace" />
104+
<jrunconsole cls="Interrupting" />
105+
<jrunconsole cls="Interrupting2" />
106+
<jrunconsole cls="InterruptingIdiom" arguments="1100" />
107+
<jrunconsole cls="Joining" />
108+
<jrunconsole cls="ListComparisons" arguments="1 10 10" />
109+
<jrunconsole cls="MainThread" />
110+
<jrunconsole cls="MapComparisons" arguments="1 10 10" />
111+
<jrunconsole cls="MoreBasicThreads" />
112+
<jrunconsole cls="MultiLock" />
113+
<jrunconsole cls="MutexEvenSupplier" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
114+
<jrunconsole cls="NIOInterruption" />
115+
<jrunconsole cls="NotifyVsNotifyAll" />
116+
<jrunconsole cls="OrnamentalGarden" />
117+
<jrunconsole cls="PipedIO" />
118+
<jrunconsole cls="PriorityBlockingQueueDemo" />
119+
<jrunconsole cls="ReaderWriterList" />
120+
<jrunconsole cls="ResponsiveUI" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
121+
<jrunconsole cls="Restaurant" />
122+
<jrunconsole cls="SelfManaged" />
123+
<jrunconsole cls="SemaphoreDemo" />
124+
<jrunconsole cls="SerialNumberChecker" arguments="4" />
125+
<jrunconsole cls="SettingDefaultHandler" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
126+
<jrunconsole cls="SimpleDaemons" />
127+
<jrunconsole cls="SimpleMicroBenchmark" />
128+
<jrunconsole cls="SimplePriorities" />
129+
<jrunconsole cls="SimpleThread" />
130+
<jrunconsole cls="SingleThreadExecutor" />
131+
<jrunconsole cls="SleepingTask" />
132+
<jrunconsole cls="SynchronizationComparisons" />
133+
<jrunconsole cls="SyncObject" />
134+
<jrunconsole cls="TestBlockingQueues" failOnError='false' timeOut='4000' msg='* Timeout for Testing *' />
135+
<jrunconsole cls="ThreadLocalVariableHolder" />
136+
<jrunconsole cls="ThreadVariations" />
137+
<jrunconsole cls="ToastOMatic" />
138+
<jrunconsole cls="concurrency.restaurant2.RestaurantWithQueues" dirpath="../concurrency/restaurant2" arguments="5" />
139+
<jrunconsole cls="concurrency.waxomatic.WaxOMatic" dirpath="../concurrency/waxomatic" />
140+
<jrunconsole cls="concurrency.waxomatic2.WaxOMatic2" dirpath="../concurrency/waxomatic2" />
141+
</target>
142+
143+
144+
</project>

0 commit comments

Comments
 (0)