-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
186 lines (139 loc) · 6.89 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?xml version="1.0"?>
<!--
[y] hybris Platform
Copyright (c) 2017 SAP SE or an SAP affiliate company. All rights reserved.
This software is the confidential and proprietary information of SAP
("Confidential Information"). You shall not disclose such Confidential
Information and shall use it only in accordance with the terms of the
license agreement you entered into with SAP.
-->
<project name="concerttours" default="all">
<property file="platformhome.properties" />
<!-- next line is only for eclipse to get rid of warnings -->
<property name="platformhome" location=".." />
<import file="${platformhome}/resources/ant/antmacros.xml" />
<!--
*** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***
WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN DURING THE BUILD PROCESS.
DO NOT EDIT THIS FILE.
IF YOU WANT TO ADAPT THE BUILD PROCESS, CREATE A FILE
CALLED buildcallbacks.xml IN YOUR EXTENSION.
PLEASE ALSO REFER TO THE DOCUMENTATION ON THE HYBRIS DEVNET
(https://wiki.hybris.com/x/YIVvAg).
For a sample buildcallbacks.xml file,
please refer to the hybris Management Console (platform/ext/hmc).
*** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING *** WARNING ***
-->
<target name="apidoc" description="build javadoc for the extension">
<apidoc extensions="${extname}" create.zip="true" zip.name="${extname}" />
</target>
<target name="clean" description="cleans the extension">
<extension_clean extname="${extname}" />
</target>
<target name="build" description="build all but do not touch appserver">
<extension_build extname="${extname}" />
</target>
<target name="deploy" description="deploy complete extension">
<deploy />
</target>
<target name="log4j">
<log4j />
</target>
<target name="jspcompile" description="do jspcompile even if switched off">
<appserver_jspcompile extname="${extname}" />
</target>
<target name="jspclean" description="cleans the jspcompiled classes">
<appserver_jspclean extname="${extname}" />
</target>
<target name="all" depends="build,deploy" description="build and deploy complete extension">
</target>
<target name="checkstyle">
<extension_checkstyle extname="${extname}" />
</target>
<target name="dist_source">
<dist extensions.source="${extname}" finalzipname="${HYBRIS_TEMP_DIR}/dists/hybris-${extname}-${build.version}-${DSTAMP}_${TSTAMP}.zip" />
</target>
<target name="dist">
<dist extensions.binary="${extname}" finalzipname="${HYBRIS_TEMP_DIR}/dists/hybris-${extname}-${build.version}-${DSTAMP}_${TSTAMP}.zip" />
</target>
<target name="sourcezip" description="Creates a sourcezip of this extension">
<sourcezip extensions="${extname}" zipfile="${HYBRIS_TEMP_DIR}/dists/hybris-${extname}-sourcezip-${build.version}-${DSTAMP}_${TSTAMP}.zip" />
</target>
<target name="classpathgen" description="Generates an eclipse .classpath file">
<create_extension_classpath_file extname="${extname}" />
</target>
<target name="gensource">
<gensource />
</target>
<target name="build_war" description="builds war for extension">
<buildwar extname="${extname}" />
</target>
<target name="clean_war" description="cleans war for extension">
<cleanwar extname="${extname}" />
</target>
<target name="pmd" description="Tests the source code with the pmd rules.">
<pmd_start extensions="${extname}" />
</target>
<target name="sonar" description="Executes sonar to check this project with the sonar rules.">
<sonarsingle extensions="${extname}"/>
</target>
<!-- deprecated junit targets -->
<target name="yunit" description="execute all junit tests of this extension">
<!-- <extension_yunit extname="${extname}" /> -->
<fail message="Please use the 'alltests' target instead of 'yunit'" />
</target>
<target name="yunitweb" description="execute all web junit tests of this extension">
<extension_yunitweb extname="${extname}" />
</target>
<target name="yunitinit" description="initialize the junit system">
<yunitinit />
</target>
<!-- new style junit targets, see https://wiki.hybris.com/display/release4/Test+Framework+Enhancements -->
<target name="unittests" description="executes all unittests of this extension">
<annotationtests annotations="unittests" extensions="${extname}" />
</target>
<target name="demotests" description="executes all demotests of this extension">
<annotationtests annotations="demotests" extensions="${extname}" />
</target>
<target name="integrationtests" description="executes all integrationtests of this extension">
<annotationtests annotations="integrationtests" extensions="${extname}" />
</target>
<target name="performancetests" description="executes all performancetests of this extension">
<annotationtests annotations="performancetests" extensions="${extname}" />
</target>
<target name="manualtests" description="executes all manualtests of this extension">
<annotationtests annotations="manualtests" extensions="${extname}" />
</target>
<target name="alltests" description="executes all tests of this extension except manualtests and performancetests">
<annotationtests extensions="${extname}" annotations="unittests,demotests,integrationtests" />
</target>
<target name="codequality" description="executes all codequality tests for this extension">
<pmd extensions="${extname}" />
</target>
<target name="localizationtest" description="runs the localizationtest to see if all types are localized within the extension">
<annotationtests extensions="${extname}" packages="*.LocalizationTest" />
</target>
<target name="typecodetest" description="runs the reservedtypecodetest to see if any reserved typecodes are being used by this extension">
<annotationtests extensions="${extname}" packages="*.ReservedTypecodeTest" />
</target>
<!-- maven targets -->
<target name="testMavenDependencies" description="compares the defined maven dependencies with the current lib folder without changing anything">
<testMavenDependencies extname="${extname}" />
</target>
<target name="updateMavenDependencies" description="deletes all jars in the extensions lib folder and replaces them with the defined maven dependencies">
<updateMavenDependencies extname="${extname}" />
</target>
<!-- uml -->
<target name="uml" description="converts the items.xml file of this extension into an xmi uml file">
<extension_uml extname="${extname}" mode="normal" />
</target>
<target name="uml_simple" description="converts the items.xml file of this extension into an xmi uml file, using a simplified mapping">
<extension_uml extname="${extname}" mode="simple" />
</target>
<target name="clean_uml" description="deletes all exported uml xmi files">
<extension_clean_uml extname="${extname}" />
</target>
<target name="webservice_nature" description="provides webservice nature to selected extension">
<set_webservice_nature extensionname="${extname}" />
</target>
</project>