1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <project name =" App" default =" deploy" basedir =" C:\Users\work\Documents\GitHub\Xpath-Module" >
3+ <description >Ant buildfile for deployment. Generated by Mendix Studio Pro.</description >
4+ <property name =" deployment" location =" deployment" />
5+ <property name =" model" location =" ${deployment}/model" />
6+ <target name =" clean" description =" clean the deployment directory" >
7+ <delete dir =" ${model}" />
8+ <delete dir =" ${deployment}/run" />
9+ </target >
10+ <target name =" clean-custom-classes" description =" clean the compiled custom java action classes" >
11+ <delete >
12+ <fileset dir =" ${deployment}/run/bin" includes =" **/*" />
13+ </delete >
14+ </target >
15+ <target name =" deploy" description =" deploy the project" >
16+ <copy todir =" ${deployment}" overwrite =" true" >
17+ <fileset dir =" C:/Program Files/Mendix/8.7.0.1476/modeler/runtemplates/deployment" >
18+ <exclude name =" **/*.template" />
19+ </fileset >
20+ </copy >
21+ <copy todir =" ${model}/lib/userlib" overwrite =" true" >
22+ <fileset dir =" userlib" />
23+ </copy >
24+ <copy todir =" ${model}/resources" overwrite =" true" >
25+ <fileset dir =" resources" />
26+ </copy >
27+ </target >
28+ <target name =" compile" description =" Compile Java actions" >
29+ <javac destdir =" ${deployment}/run/bin" includeAntRuntime =" false" debug =" true" debuglevel =" lines,source" encoding =" UTF-8" >
30+ <src path =" javasource" />
31+ <classpath >
32+ <fileset file =" C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/com.mendix.json.jar" />
33+ <fileset file =" C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/com.mendix.logging-api.jar" />
34+ <fileset file =" C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/com.mendix.m2ee-api.jar" />
35+ <fileset file =" C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/com.mendix.public-api.jar" />
36+ <fileset file =" C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/javax.servlet-api.servlet.jar" />
37+ <fileset dir =" userlib" >
38+ <include name =" *.jar" />
39+ </fileset >
40+ </classpath >
41+ </javac >
42+ </target >
43+ <target name =" checkDependencies" description =" Check dependencies" >
44+ <tempfile property =" jdeps.outputlog" destdir =" ${java.io.tmpdir}" createfile =" true" deleteonexit =" true" />
45+ <exec executable =" java" output =" ${jdeps.outputlog}" >
46+ <arg value =" -Duser.language=en" />
47+ <arg value =" com.sun.tools.jdeps.Main" />
48+ <arg value =" -cp" />
49+ <arg value =" C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/com.mendix.json.jar${path.separator}C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/com.mendix.logging-api.jar${path.separator}C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/com.mendix.m2ee-api.jar${path.separator}C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/com.mendix.public-api.jar${path.separator}C:/Program Files/Mendix/8.7.0.1476/runtime/bundles/javax.servlet-api.servlet.jar${path.separator}userlib/.*" />
50+ <arg value =" --multi-release" />
51+ <arg value =" 11" />
52+ <arg value =" -verbose:class" />
53+ <arg value =" -p" />
54+ <arg value =" javax.activation" />
55+ <arg value =" -p" />
56+ <arg value =" javax.activity" />
57+ <arg value =" -p" />
58+ <arg value =" javax.annotation" />
59+ <arg value =" -p" />
60+ <arg value =" javax.jws.soap" />
61+ <arg value =" -p" />
62+ <arg value =" javax.jws" />
63+ <arg value =" -p" />
64+ <arg value =" javax.transaction" />
65+ <arg value =" -p" />
66+ <arg value =" javax.rmi.CORBA" />
67+ <arg value =" -p" />
68+ <arg value =" javax.rmi" />
69+ <arg value =" -p" />
70+ <arg value =" javax.xml.bind.annotation.adapters" />
71+ <arg value =" -p" />
72+ <arg value =" javax.xml.bind.annotation" />
73+ <arg value =" -p" />
74+ <arg value =" javax.xml.bind.attachment" />
75+ <arg value =" -p" />
76+ <arg value =" javax.xml.bind.helpers" />
77+ <arg value =" -p" />
78+ <arg value =" javax.xml.bind.util" />
79+ <arg value =" -p" />
80+ <arg value =" javax.xml.bind" />
81+ <arg value =" -p" />
82+ <arg value =" javax.xml.soap" />
83+ <arg value =" -p" />
84+ <arg value =" javax.xml.ws.handler.soap" />
85+ <arg value =" -p" />
86+ <arg value =" javax.xml.ws.handler" />
87+ <arg value =" -p" />
88+ <arg value =" javax.xml.ws.http" />
89+ <arg value =" -p" />
90+ <arg value =" javax.xml.ws.soap" />
91+ <arg value =" -p" />
92+ <arg value =" javax.xml.ws.spi.http" />
93+ <arg value =" -p" />
94+ <arg value =" javax.xml.ws.spi" />
95+ <arg value =" -p" />
96+ <arg value =" javax.xml.ws.wsaddressing" />
97+ <arg value =" -p" />
98+ <arg value =" javax.xml.ws" />
99+ <arg value =" -p" />
100+ <arg value =" org.omg.CORBA" />
101+ <arg value =" -p" />
102+ <arg value =" org.omg.CORBA_2_3" />
103+ <arg value =" -p" />
104+ <arg value =" org.omg.CORBA_2_3.portable" />
105+ <arg value =" -p" />
106+ <arg value =" org.omg.CORBA.DynAnyPackage" />
107+ <arg value =" -p" />
108+ <arg value =" org.omg.CORBA.ORBPackage" />
109+ <arg value =" -p" />
110+ <arg value =" org.omg.CORBA.portable" />
111+ <arg value =" -p" />
112+ <arg value =" org.omg.CORBA.TypeCodePackage" />
113+ <arg value =" -p" />
114+ <arg value =" org.omg.CosNaming" />
115+ <arg value =" -p" />
116+ <arg value =" org.omg.CosNaming.NamingContextExtPackage" />
117+ <arg value =" -p" />
118+ <arg value =" org.omg.CosNaming.NamingContextPackage" />
119+ <arg value =" -p" />
120+ <arg value =" org.omg.Dynamic" />
121+ <arg value =" -p" />
122+ <arg value =" org.omg.DynamicAny" />
123+ <arg value =" -p" />
124+ <arg value =" org.omg.DynamicAny.DynAnyFactoryPackage" />
125+ <arg value =" -p" />
126+ <arg value =" org.omg.DynamicAny.DynAnyPackage" />
127+ <arg value =" -p" />
128+ <arg value =" org.omg.IOP" />
129+ <arg value =" -p" />
130+ <arg value =" org.omg.IOP.CodecFactoryPackage" />
131+ <arg value =" -p" />
132+ <arg value =" org.omg.IOP.CodecPackage" />
133+ <arg value =" -p" />
134+ <arg value =" org.omg.Messaging" />
135+ <arg value =" -p" />
136+ <arg value =" org.omg.PortableInterceptor" />
137+ <arg value =" -p" />
138+ <arg value =" org.omg.PortableInterceptor.ORBInitInfoPackage" />
139+ <arg value =" -p" />
140+ <arg value =" org.omg.PortableServer" />
141+ <arg value =" -p" />
142+ <arg value =" org.omg.PortableServer.CurrentPackage" />
143+ <arg value =" -p" />
144+ <arg value =" org.omg.PortableServer.POAManagerPackage" />
145+ <arg value =" -p" />
146+ <arg value =" org.omg.PortableServer.POAPackage" />
147+ <arg value =" -p" />
148+ <arg value =" org.omg.PortableServer.portable" />
149+ <arg value =" -p" />
150+ <arg value =" org.omg.PortableServer.ServantLocatorPackage" />
151+ <arg value =" -p" />
152+ <arg value =" org.omg.SendingContext" />
153+ <arg value =" -p" />
154+ <arg value =" org.omg.stub.java.rmi" />
155+ <arg value =" ${deployment}/run/bin" />
156+ </exec >
157+ <loadfile srcfile =" ${jdeps.outputlog}" property =" jdeps.output" >
158+ <filterchain >
159+ <linecontains negate =" true" >
160+ <contains value =" Warning: " />
161+ </linecontains >
162+ </filterchain >
163+ </loadfile >
164+ <condition property =" jdeps.hasErrors" >
165+ <contains string =" ${jdeps.output}" substring =" not found" casesensitive =" false" />
166+ </condition >
167+ <echo xmlns : if =" ant:if" if : true =" ${jdeps.hasErrors}" message =" ${jdeps.output}" />
168+ <fail if =" ${jdeps.hasErrors}" message =" Dependency checked failed, most probably some packages and/or classes are not provided." />
169+ </target >
170+ <target name =" package" description =" Generate Jar File" >
171+ <jar destfile =" ${deployment}/model/bundles/project.jar" >
172+ <fileset dir =" ${deployment}/run/bin" excludes =" .keep" />
173+ <fileset dir =" userlib" excludes =" **/*.jar" casesensitive =" false" />
174+ <zipfileset dir =" ${deployment}/run" includes =" component.xml" fullpath =" OSGI-INF/component.xml" />
175+ <manifest >
176+ <attribute name =" Bundle-Name" value =" Xpath_Module" />
177+ <attribute name =" Bundle-SymbolicName" value =" project" />
178+ <attribute name =" Service-Component" value =" OSGI-INF/component.xml" />
179+ </manifest >
180+ </jar >
181+ </target >
182+ </project >
0 commit comments