-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gant
57 lines (45 loc) · 1.13 KB
/
build.gant
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
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
import org.jetbrains.jps.*
import org.codehaus.groovy.ant.Groovy
includeTool << Jps
def projectHome = "$basedir"
def libs = "$projectHome/lib/"
def gantHome = GANT_HOME
projectBuilder.targetFolder = "${projectHome}/build"
library("ANT") {
classpath "$libs/ant-1.7.1.jar"
}
library("groovy") {
classpath "$libs/groovy-all-1.7.1.jar"
}
library("gant") {
new File("$gantHome/lib").eachFile {
classpath it
}
}
module("JPS") {
targetLevel ="1.5"
classpath antLayout, gant, groovy
src "${projectHome}/src"
}
module("antLayout") {
targetLevel = "1.5"
classpath ANT
src "${projectHome}/antLayout/src"
}
target('default' : 'Default target') {
projectBuilder.clean()
projectBuilder.makeAll()
layout("${projectBuilder.targetFolder}/deploy") {
jar("jps.jar") {
module("JPS")
module("antLayout")
zipfileset(src: "${projectHome}/lib/javac2-all.jar") {
exclude (name: "JDOM*.class")
}
}
jar("jps-sources.zip") {
fileset(dir: "$projectHome/src")
}
}
}