-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
90 lines (75 loc) · 3.41 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="UTF-8"?>
<project name="bonitastandalone" default="deploy">
<property file="build.properties"/>
<property name="projectName" value="${project.name}"/>
<tstamp>
<format property="TODAY_UK" pattern="yyyy-MM-dd" locale="en,UK"/>
</tstamp>
<path id="dirFolderProject">
<pathelement location="${path.home.projet}/${project.dirName}"/>
</path>
<target name="tomcat-start">
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
<jvmarg value="-Dcatalina.home=${tomcat.home}"/>
</java>
</target>
<target name="tomcat-stop">
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="true">
<jvmarg value="-Dcatalina.home=${tomcat.home}"/>
<arg line="stop"/>
</java>
</target>
<target name="debugEnable">
<echo>Edit dir : ${pathFile.custom.debug}</echo>
<replace file="${pathFile.custom.debug}">
<replacefilter token="custom.page.debug false" value="custom.page.debug true"/>
</replace>
<echo>You must restart serveur.</echo>
</target>
<target name="importLibExt">
<copy todir="lib\\">
<fileset dir="${path.import.libExt.happyLib}">
</fileset>
</copy>
</target>
<target name="deploy" depends="importLibExt" description="deploy the custom page in tenant live.">
<echo>Delete dir : ${path.page.deploy}/${project.dirName}</echo>
<delete dir="${path.page.deploy}/${deploy.dirName}" failonerror="false"/>
<echo>Create dir : ${path.page.deploy}/${project.dirName}</echo>
<mkdir dir="${path.page.deploy}/${deploy.dirName}" />
<echo>Copy dir : ${path.home.projet}/${project.dirName}</echo>
<copy todir="${path.page.deploy}/${deploy.dirName}">
<fileset dir="${path.home.projet}/${project.dirName}">
<exclude name="**/.idea/"/>
<exclude name="**/libAlreadyInBonita/"/>
<exclude name="**/src/"/>
<exclude name="**/*.iml"/>
<exclude name="**/build.properties"/>
<exclude name="**/build.xml"/>
<exclude name="**/pom.xml"/>
<exclude name="**/*.impl"/>
</fileset>
</copy>
<antcall target="importLibExt"/>
</target>
<target name="zip" depends="importLibExt" description="create zip for portal">
<echo>Delete dir : /build/zip/</echo>
<delete dir="${path.home.projet}/${project.dirName}/build/zip/" failonerror="false"/>
<echo>Create dir : /build/zip/</echo>
<mkdir dir="${path.home.projet}/${project.dirName}/build/zip/" />
<echo>Copy dir : ${path.home.projet}/${project.dirName}</echo>
<zip destfile="${path.home.projet}/${project.dirName}/build/zip/${project.dirName}_${TODAY_UK}.zip">
<fileset dir="${path.home.projet}/${project.dirName}">
<exclude name="**/.idea/"/>
<exclude name="**/libAlreadyInBonita/"/>
<exclude name="**/src/"/>
<exclude name="**/*.iml"/>
<exclude name="**/build.properties"/>
<exclude name="**/build.xml"/>
<exclude name="**/pom.xml"/>
<exclude name="**/*.iml"/>
</fileset>
</zip>
<antcall target="importLibExt"/>
</target>
</project>