-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
107 lines (90 loc) · 3.44 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
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
<?xml version="1.0"?>
<project name="Fabrica" basedir="." default="deployWar">
<property name="project" value="Fabrica" />
<property name="ox3" value="true" />
<property name="openxava.base.dir" value=".."/> <!-- Change if you want OpenXava and Addons in another folder -->
<property file="../openxava.properties"/>
<!-- 2019-10-10 Agregado por carper -->
<property name="webinf.dir" value="web/WEB-INF" />
<!--
Compile all .java and .groovy
Not needed to call it if you work inside Eclipse
-->
<target name="compile">
<ant antfile="${openxava.base.dir}/OpenXava/build.xml" target="compile"/>
</target>
<!--
Build and deploy the application in war format.
It deploys it on the Tomcat included in OpenXava distribution,
to deploy to other location modify the tomcat.dir property of workspace/openxava.properties.
-->
<target name="deployWar">
<!-- In a directory -->
<ant antfile="${openxava.base.dir}/OpenXava/build.xml" target="deploy"/>
<!-- In a file (it does not work well on windows + tomcat)
<ant antfile="${openxava.base.dir}/OpenXava/build.xml" target="deployWar"/>
-->
</target>
<!--
Build the application in war format.
Leaves the war in the workspace.dist/YourApplication.dist folder.
-->
<target name="createWar">
<ant antfile="${openxava.base.dir}/OpenXava/build.xml" target="createWar"/>
</target>
<!--
Build the application in portlets format
-->
<target name="generatePortlets">
<ant antfile="${openxava.base.dir}/OpenXava/build.xml" target="generatePortlets"/>
</target>
<!--
Update this project with the latest OpenXava version present in the workspace.
It must be called just after update the OpenXava version.
-->
<target name="updateOX">
<ant antfile="${openxava.base.dir}/OpenXava/build.xml" target="updateOX"/>
</target>
<!--
Connects to your database and updates your schema in order to match to your current application.
Remember to give value to schema.path with the path of the JDBC driver jar for your database.
-->
<target name="updateSchema">
<ant antfile="${openxava.base.dir}/OpenXava/build.xml" target="updateSchemaJPA">
<property name="persistence.unit" value="junit"/>
<property name="schema.path" value="../OpenXava/lib/hsqldb.jar"/>
<!-- <property name="schema.path" value="${webinf.dir}/lib/postgresql-42.2.8.jar"/> -->
</ant>
</target>
<!-- 2019-10-08 Agregado por carper -->
<property name="class.dir" value="${webinf.dir}/classes" />
<property name="represult.dir" value="tests" />
<path id="master-classpath" description="Master CLASSPATH for this script">
<fileset dir="${webinf.dir}/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${openxava.base.dir}/OpenXava/lib">
<include name="*.jar" />
</fileset>
<pathelement location="${class.dir}/" />
</path>
<target name="test" depends="compile">
<mkdir dir="${represult.dir}"/>
<junit printsummary="true" showoutput="yes" filtertrace="false">
<classpath refid="master-classpath" />
<batchtest fork="yes" todir="${represult.dir}">
<formatter type="plain" />
<!-- <formatter type="xml" /> -->
<fileset dir="${class.dir}">
<include name="**/*Test.class" />
<!--
<include name="**/CodeTest.class" />
<exclude name="**/HibernateTest.class" />
<exclude name="**/SpringTest.class" />
<exclude name="**/AllTests.class" />
-->
</fileset>
</batchtest>
</junit>
</target>
</project>