-
Notifications
You must be signed in to change notification settings - Fork 2
/
release.xml
49 lines (42 loc) · 2.57 KB
/
release.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="ComAnI" default="release" basedir=".">
<property name="build.file.name" value="build.xml"/>
<property name="build.target.name" value="release"/>
<property name="release.dir.name" value="release"/>
<property name="comani.dir" location="${basedir}"/>
<property name="guide.dir" location="guide"/>
<property name="templates.dir" location="templates"/>
<property name="gitcommitextractor.dir" location="../GitCommitExtractor"/>
<property name="svncommitextractor.dir" location="../SvnCommitExtractor"/>
<property name="variabilitychangeanalyzer.dir" location="../VariabilityChangeAnalyzer"/>
<property name="deadcodechangeanalyzer.dir" location="../DeadCodeChangeAnalyzer"/>
<property name="release.dir" location ="release"/>
<property name="release.filename" value="ComAnI.zip"/>
<target name="build.all">
<ant inheritAll="false" antfile="${comani.dir}/${build.file.name}" target="${build.target.name}"/>
<ant inheritAll="false" antfile="${gitcommitextractor.dir}/${build.file.name}" target="${build.target.name}"/>
<ant inheritAll="false" antfile="${svncommitextractor.dir}/${build.file.name}" target="${build.target.name}"/>
<ant inheritAll="false" antfile="${variabilitychangeanalyzer.dir}/${build.file.name}" target="${build.target.name}"/>
<ant inheritAll="false" antfile="${deadcodechangeanalyzer.dir}/${build.file.name}" target="${build.target.name}"/>
</target>
<!-- Create full release archive -->
<target name="zip" depends="build.all">
<zip destfile="${release.dir}/${release.filename}">
<!-- Include the deployable ComAnI.jar -->
<fileset dir="${release.dir}" includes="*.jar"/>
<!-- Include the properties template(s)-->
<fileset dir="${templates.dir}" includes="*.properties"/>
<!-- Include the guide -->
<fileset dir="${guide.dir}" includes="*.pdf"/>
<!-- Include available plug-ins -->
<fileset dir="${gitcommitextractor.dir}/${release.dir.name}" includes="*.jar"/>
<fileset dir="${svncommitextractor.dir}/${release.dir.name}" includes="*.jar"/>
<fileset dir="${variabilitychangeanalyzer.dir}/${release.dir.name}" includes="*.jar"/>
<fileset dir="${deadcodechangeanalyzer.dir}/${release.dir.name}" includes="*.jar"/>
</zip>
</target>
<!-- Main (start) target -->
<target name ="release" depends="zip">
<description>Create full ComAnI release</description>
</target>
</project>