-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-macros.xml
24 lines (23 loc) · 1.06 KB
/
build-macros.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
<project>
<macrodef name="_jar">
<attribute name="module"/>
<sequential>
<manifest file="${src.dir}/@{module}/manifest" mode="update"/>
<jar destfile="${build.dir}/@{module}.jar" manifest="${src.dir}/@{module}/manifest">
<fileset dir="${classes.dir}" includes="@{module}/**/*.class" erroronmissingdir="false"/>
<fileset dir="${resources.dir}" includes="@{module}/**/*" erroronmissingdir="false"/>
</jar>
</sequential>
</macrodef>
<macrodef name="_src-jar">
<attribute name="module"/>
<sequential>
<manifest file="${src.dir}/@{module}/manifest" mode="update"/>
<jar destfile="${build.dir}/@{module}-src.jar" manifest="${src.dir}/@{module}/manifest">
<fileset dir="${classes.dir}" includes="@{module}/**/*.class" erroronmissingdir="false"/>
<fileset dir="${src.dir}" includes="@{module}/**/*.java" excludes="**/*.old/**" erroronmissingdir="false"/>
<fileset dir="${resources.dir}" includes="@{module}/**/*" erroronmissingdir="false"/>
</jar>
</sequential>
</macrodef>
</project>