-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
33 lines (33 loc) · 1.54 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
<project name="${project.artifactId}" basedir=".">
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${basedir}\userlib\ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<description>51Degrees for Mendix</description>
<target name="createRequiredLibs">
<echo message="Create RequiredLib files for dependencies in ${basedir}\userlib."/>
<foreach param="file" target="touchRequiredLibFile" inheritall="true">
<path>
<fileset dir="${basedir}\userlib" includes="*.jar" excludes="ant-*"/>
</path>
</foreach>
</target>
<target name="touchRequiredLibFile">
<touch file="${file}.${project.artifactId}.RequiredLib"/>
</target>
<target name="exportModulePackage">
<echo message="Export module package for Mendix ${mendixVersion}."/>
<exec executable="cmd">
<arg value="/c"/>
<arg value="${mendixInstallDir}\${mendixVersion}\modeler\mxutil.exe"/>
<arg value="create-module-package"/>
<arg value="--filter-required-libs"/>
<arg value="--package-dir=target"/>
<arg value="${project.artifactId}.mpr"/>
<arg value="${project.artifactId}"/>
</exec>
<echo message="Copy module package to release folder."/>
<copy file="${basedir}\target\${project.artifactId}.mpk" tofile="${basedir}\releases\${project.artifactId}-${project.version}.mpk"/>
</target>
</project>