-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.ps1
32 lines (22 loc) · 813 Bytes
/
make.ps1
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
$profile="local"
$currentPath = $pwd
if($args.length -gt 0) {
$profile=$args[0]
}
Invoke-Expression -Command:"mvn -f pom.xml clean package -P$profile -U"
$proj="java-kafka-standalone-server"
$source=$PSScriptRoot + "/target/" + $proj + ".jar"
$dest=$PSScriptRoot + "/kafka-standalone.jar"
copy $source $dest
$client_path = $PSScriptRoot + "/java-kafka-client-demo"
cd $client_path
Invoke-Expression -Command:"mvn -f pom.xml clean package -P$profile -U"
$proj="java-kafka-consumer-demo"
$source=$client_path + "/" +$proj + "/target/" + $proj + ".jar"
$dest=$PSScriptRoot + "/kafka-consumer-demo.jar"
copy $source $dest
$proj="java-kafka-producer-demo"
$source=$client_path + "/" +$proj + "/target/" + $proj + ".jar"
$dest=$PSScriptRoot + "/kafka-producer-demo.jar"
copy $source $dest
cd $currentPath