-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
executable file
·56 lines (47 loc) · 1.68 KB
/
build.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
50
51
52
53
54
55
56
<?xml version="1.0"?>
<project name="uiplugins" default="dist" basedir=".">
<property name="dist.dir" location="dist"/>
<property name="assemble.dir" location="assemble"/>
<property name="ee.dir" location="${assemble.dir}/ee"/>
<property name="ce.dir" location="${assemble.dir}/ce"/>
<target name="clean">
<delete dir="${assemble.dir}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${ee.dir}"/>
<mkdir dir="${ce.dir}"/>
</target>
<target name="assemble" depends="clean">
<copy todir="${ce.dir}">
<fileset dir=".">
<include name="adminhelper/**"/>
<exclude name="adminhelper/**/EE*"/>
</fileset>
</copy>
<copy todir="${ee.dir}">
<fileset dir=".">
<include name="adminhelper/**"/>
</fileset>
</copy>
<replaceregexp file="${ee.dir}/adminhelper/app/AdminhelperController.groovy"
match="new Sync"
replace="new EESync"
byline="true"/>
<replaceregexp file="${ee.dir}/adminhelper/app/AdminhelperController.groovy"
match="new Clone"
replace="new EEClone"
byline="true"/>
</target>
<target name="dist" depends="assemble">
<mkdir dir="${dist.dir}"/>
<zip file="${dist.dir}/hqu_adminhelper-ce-2.0.zip">
<fileset dir="${ce.dir}">
<include name="adminhelper/**"/>
</fileset>
</zip>
<zip file="${dist.dir}/hqu_adminhelper-ee-2.0.zip">
<fileset dir="${ee.dir}">
<include name="adminhelper/**"/>
</fileset>
</zip>
</target>
</project>