-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodule.ant
More file actions
45 lines (36 loc) · 1.89 KB
/
Copy pathmodule.ant
File metadata and controls
45 lines (36 loc) · 1.89 KB
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
<!--
Ivy
Copyright 2025 MicroEJ Corp. This file has been modified and/or created by MicroEJ Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project name="com.microej.clibrary.llimpl;c-module" xmlns:ea="antlib:org.apache.easyant">
<ea:plugin module="phases-std" revision="0.9" />
<!-- Launch artifact-checker plugin during packaging step -->
<target name="bind-artifact-checker-plugin" depends="artifact-checker:check-current-module" extensionOf="package"/>
<target name="c-module:build" extensionOf="package">
<property name="include.dir" value="${basedir}/src/main"/>
<property name="include.pattern" value="**/*.c,**/*.h,**/*.cpp,**/*.hpp"/>
<!-- Check if Doxygen @version value matched with module version -->
<resourcecount property="count.success.checked.cfiles">
<fileset dir="${include.dir}" includes="${include.pattern}">
<contains text="@version ${ivy.revision}"/>
</fileset>
</resourcecount>
<resourcecount property="count.cfiles">
<fileset dir="${include.dir}" includes="${include.pattern}"/>
</resourcecount>
<!--fail message="Wrong pattern "@version ${ivy.revision}" in ".c" file(s) (${count.success.checked.cfiles}/${count.cfiles} OK).">
<condition>
<not><equals arg1="${count.success.checked.cfiles}" arg2="${count.cfiles}"/></not>
</condition>
</fail-->
</target>
</project>