-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathjustfile
69 lines (53 loc) · 1.83 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
@_list:
just --list --unsorted
repodir := `pwd`
netbeans-plat-version := "22"
java-version := "17"
alias verify-ci := verify-headless
# Builds the entire project - also downloading the harness if needed
build:
ant build -Dnbplatform.default.netbeans.dest.dir={{repodir}}/netbeans-plat/{{ netbeans-plat-version }}/ide
# Creates the zipped application code in dist/trgtd.zip
build-zip:
ant build-zip -Dnbplatform.default.netbeans.dest.dir={{repodir}}/netbeans-plat/{{ netbeans-plat-version }}/ide
# Verifies modules with headless tests
verify-headless *args:
./gradlew check {{args}}
# Verifies all modules - including UI tests
verify *args:
./gradlew check -Dtest.profile=allTests {{args}}
# Shows some diagnostics used by ant
diagnostics:
ant -diagnostics
# Clears the cache of the local development version of ThinkingRock
[linux]
[macos]
clear-cache-dev:
rm -rI ./build/testuserdir/var/cache/
# Clears the cache of the local development version of ThinkingRock
[windows]
clear-cache-dev:
rm -r -fo ./build/testuserdir/var/cache/
# Clears the cache of production versions of ThinkingRock
[linux]
clear-cache-prod:
rm -rI ~/.cache/trgtd/
# Clears the cache of production versions of ThinkingRock
[macos]
clear-cache-prod:
rm -rI ~/Library/Caches/trgtd/
# Clears the cache of production versions of ThinkingRock
[windows]
clear-cache-prod:
rm -r -fo env_var('APPDATA')\..\Local\trgtd\Cache\
# Starts the ThinkingRock application from sources
run:
ant -f ./modules/au.com.trgtd.tr.calendar \
-Dant.build.javac.target={{ java-version }} \
-Dant.build.javac.source={{ java-version }} \
-Dcontinue.after.failing.tests=true \
run
## Starts the ThinkingRock application from sources - not ready yet
#run:
# ./gradlew :au.com.trgtd.tr.appl:runNetBeans