-
Notifications
You must be signed in to change notification settings - Fork 0
/
NOTES
43 lines (28 loc) · 1.22 KB
/
NOTES
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
for clean
1 rm -rf target
for package
1 copy src/*/* to target/build
2 zip target/build to target/${artifactId}.zip
for build
1 copy src/main/pony to target/build
2 copy/unpack dependencies to target/build/${artifactId}
3 compile using target/build/${groupId}/${artifactId} as working dir and target/${groupId}-${artifactId} as the binary
for test
1 copy src/main/pony to target/test/
2 copy src/test/pony/* to target/test/test-*
3 copy/unpack dependencies to target/test/${artifactId}
4 compile with working dir on target/test/test/${groupId}/${artifactId} and output in as target/
5 run target/$test-bibary
- problems:
-- both src and test share the same groupId and artifactId, and can contain a 'main.pony' --> rename the test/pony/${artifactId} to 'test-${artifactId}' as the tests reference the main source using "../"(etc) in their 'use' statements. and the direction of dependency is always test -> main.
for install
1 copy target/${artifactId}.zip to $localRepo
Project layout
src/main/pony/$groupId/$artifactId
- fewer "../" in paths?
imports by 'use "$groupId/$artifactId"' --> easy to identify where code comes from.
What file extension?
zip: generic, known, obvious.
pony-zip: identifies the contents.
pzip: ?
zipony: !!!