Skip to content

Commit 4ad8ee7

Browse files
committed
Fix build
1 parent abf09f3 commit 4ad8ee7

File tree

3 files changed

+8
-32
lines changed

3 files changed

+8
-32
lines changed

build.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
<copy file="${download.path}/windows/ternd.jar" tofile="${download.path}/local/ternd.jar" overwrite="true" />
3333
<delete file="${download.path}/windows/ternd.jar" />
3434
<delete file="${download.path}/windows/tern.jar" />
35-
<exec executable="ternd.exe" dir="${download.path}/local" />
35+
<echo message="${download.path}/local/ternd.exe"/>
36+
<exec executable="${download.path}/local/ternd.exe" dir="${download.path}/local" />
3637
</target>
3738

3839
<target name="build-linux">

tern-studio/work/demo/misc/src/break_and_continue.tern

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
var i=0;
1+
let i=0;
22
while(i++<10){
33
if(i%2==0){
44
continue;
55
}
66
println(i);
77
}
8-
var x=0;
8+
let x=0;
99
while(x++<10){
1010
if(x==3){
1111
break;
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
1-
import util.concurrent.locks.ReentrantLock;
2-
import util.concurrent.locks.Lock;
3-
import util.concurrent.locks.Condition;
41

5-
let lock: Lock = ReentrantLock();
6-
let condition: Condition = lock.newCondition();
7-
let condition2: Condition = lock.newCondition();
8-
let thread = Thread(-> {
9-
try {
10-
lock.lock();
11-
println("before await: "+ Date());
12-
condition.await();
13-
println("after await: "+ Date());
14-
} finally {
15-
lock.unlock();
16-
}
17-
});
2+
func main(){
3+
[1,2,3,4,5].forEach(this::println);
4+
}
185

19-
thread.start();
20-
21-
Thread(-> {
22-
try {
23-
Thread.sleep(10000);
24-
lock.lock();
25-
condition2.signal();
26-
} finally {
27-
lock.unlock();
28-
}
29-
}).start();
30-
31-
thread.join();
6+
main();

0 commit comments

Comments
 (0)