-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_security_analysis.xml
182 lines (148 loc) · 6.77 KB
/
run_security_analysis.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
<project default="runSecurityAnalysis">
<!-- ************************ Required Properties ************************ -->
<!-- The path to the Xanitizer installation directory -->
<property name="install.dir" location="d:/development/code quality/Xanitizer-2.4.4"/>
<!-- The path to the Xanitizer configuration file of the project that should be analyzed -->
<property name="config.file" location="D:/development/workspaceIdea/SVN/SonarTest/SonarTest.XanitizerConfig"/>
<!-- ************************ Optional Properties ************************ -->
<!-- The log level of the build. One of ALL (highest value), SEVERE, WARNING, INFO. Default is WARNING -->
<property name="log.level" value="WARNING"/>
<!-- The output file of the overview report. This has to be a file. If not set the overview report will not be generated.
Allowed file extensions are: PDF, HTML, DOC-->
<property name="overview.report.outputfile" value="overview.pdf"/>
<!-- The output file of the findings list report. This has to be a file. If not set the findings list report will not be generated.
Allowed file extensions are: PDF, HTML, DOC, XML-->
<property name="findingslist.report.outputfile" value="Xanitizer-Findings-List.xml"/>
<!-- Specifies if only findings with problem classifications are written to the findings list report. -->
<!-- <property name="only.problems.in.findings.list.report" value="false"/> -->
<!-- The output directory of the project export. If not set the project will not be exported. -->
<property name="export.directory" value="."/>
<!-- The passphrase for the project export. The parameter is only used if export directory is set.
If the parameter is not set or empty, the exported project is not encrypted. -->
<!-- <property name="export.passphrase" value=""/> -->
<!-- Selects whether the task should fail if there are search paths configured that do not exist anymore. Default is false. -->
<property name="halton.missingsearchpaths" value="true"/>
<!-- The name of a property to set in the event of missing search paths.
By default no property is set. -->
<!-- <property name="property.missingsearchpaths" value="<NAME OF PROPERTY>"/> -->
<!-- Selects whether the task should fail if there are *NEW* findings with a rating equal or higher than the value defined for ${rating.newfindings}.
Default is false. -->
<!-- <property name="halton.newfindings" value="<TRUE OR FALSE>"/> -->
<!-- The name of a property to set in the event of *NEW* findings with a rating equal or higher than the value defined for ${rating.newfindings}.
By default no property is set. -->
<!-- <property name="property.newfindings" value="<NAME OF PROPERTY>"/> -->
<!-- A rating value. Only used if ${halton.newfindings} or ${property.newfindings} is set.
Default is 5. -->
<!-- <property name="rating.newfindings" value="<DOUBLE VALUE BETWEEN 0 AND 10>"/> -->
<!-- Selects whether the task should fail if there are findings with a rating equal or higher than the value defined for ${rating.findings}.
Default is false. -->
<property name="halton.findings" value="true"/>
<!-- The name of a property to set in the event of findings with a rating equal or higher than the value defined for ${rating.findings}.
By default no property is set. -->
<!-- <property name="property.findings" value="<NAME OF PROPERTY>"/> -->
<!-- A rating value. Only used if ${halton.findings} or ${property.findings} is set.
Default is 5. -->
<property name="rating.findings" value="7.00"/>
<!-- Selects whether a snapshot should be created after a successful analysis or not. Note: If any of the *halt on* checks fails no snapshot will be created.
Default is true. -->
<property name="create.snapshot" value="true"/>
<!-- ************************ Task Definition ************************ -->
<!-- ************************ DO NOT CHANGE THE FOLLOWING LINES ************************ -->
<taskdef name="runSecurityAnalysisTask" classname="com.rigsit.xanitizer.ant.RunSecurityAnalysisTask">
<classpath>
<fileset dir="${install.dir}/plugins" includes="**/*.jar"/>
</classpath>
</taskdef>
<condition property="create.snapshot" value="true">
<not>
<isset property="create.snapshot"/>
</not>
</condition>
<condition property="export.directory" value="">
<not>
<isset property="export.directory"/>
</not>
</condition>
<condition property="export.passphrase" value="">
<not>
<isset property="export.passphrase"/>
</not>
</condition>
<condition property="overview.report.outputfile" value="">
<not>
<isset property="overview.report.outputfile"/>
</not>
</condition>
<condition property="findingslist.report.outputfile" value="">
<not>
<isset property="findingslist.report.outputfile"/>
</not>
</condition>
<condition property="log.level" value="WARNING">
<not>
<isset property="log.level"/>
</not>
</condition>
<condition property="rating.newfindings" value="5">
<not>
<isset property="rating.newfindings"/>
</not>
</condition>
<condition property="rating.findings" value="5">
<not>
<isset property="rating.findings"/>
</not>
</condition>
<condition property="halton.missingsearchpaths" value="false">
<not>
<isset property="halton.missingsearchpaths"/>
</not>
</condition>
<condition property="halton.newfindings" value="false">
<not>
<isset property="halton.newfindings"/>
</not>
</condition>
<condition property="halton.findings" value="false">
<not>
<isset property="halton.findings"/>
</not>
</condition>
<condition property="property.missingsearchpaths" value="">
<not>
<isset property="property.missingsearchpaths"/>
</not>
</condition>
<condition property="property.newfindings" value="">
<not>
<isset property="property.newfindings"/>
</not>
</condition>
<condition property="property.findings" value="">
<not>
<isset property="property.findings"/>
</not>
</condition>
<target name="runSecurityAnalysis">
<assertions><enable/></assertions>
<runSecurityAnalysisTask
configFile="${config.file}"
installDir="${install.dir}"
createSnapshot="${create.snapshot}"
overviewReportOutputFile="${overview.report.outputfile}"
findingsListReportOutputFile="${findingslist.report.outputfile}"
onlyProblemsInFindingsListReport="${only.problems.in.findings.list.report}"
exportDirectory="${export.directory}"
exportPassphrase = "${export.passphrase}"
newFindingsRating="${rating.newfindings}"
findingsRating="${rating.findings}"
haltOnMissingSearchPaths="${halton.missingsearchpaths}"
haltOnNewFindings="${halton.newfindings}"
haltOnFindings="${halton.findings}"
missingSearchPathsProperty="${property.missingsearchpaths}"
newFindingsProperty="${property.newfindings}"
findingsProperty="${property.findings}"
logLevel="${log.level}"
/>
</target>
</project>