forked from rafamanzo/SIGP
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
185 lines (185 loc) · 10.3 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="build" name="SIGP">
<property environment="env"/>
<property name="ECLIPSE_HOME" value="../../../Programs/eclipse-javaee"/>
<property name="junit.output.dir" value="junit"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.5"/>
<property name="source" value="1.5"/>
<path id="Server Library [Apache Tomcat v6.0] (unbound).libraryclasspath"/>
<path id="Web App Libraries.libraryclasspath">
<pathelement location="WebContent/WEB-INF/lib/aopalliance.jar"/>
<pathelement location="WebContent/WEB-INF/lib/aspectjrt.jar"/>
<pathelement location="WebContent/WEB-INF/lib/cglib-nodep-2.1_3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-collections-3.2.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/commons-logging.jar"/>
<pathelement location="WebContent/WEB-INF/lib/dom4j-1.6.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/guava-r07.jar"/>
<pathelement location="WebContent/WEB-INF/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar"/>
<pathelement location="WebContent/WEB-INF/lib/hibernate-validator-4.2.0.Final.jar"/>
<pathelement location="WebContent/WEB-INF/lib/hibernate-validator-annotation-processor-4.2.0.Final.jar"/>
<pathelement location="WebContent/WEB-INF/lib/hibernate3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/javassist-3.9.0.GA.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jstl-api-1.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jstl-impl-1.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jta-1.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/junit.jar"/>
<pathelement location="WebContent/WEB-INF/lib/log4j-1.2.16.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mirror-1.5.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mockito-all-1.9.0-rc1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/mysql-connector-java-5.1.17-bin.jar"/>
<pathelement location="WebContent/WEB-INF/lib/objenesis-1.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/ognl-2.7.3.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.hamcrest.core_1.1.0.v20090501071000.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.springframework.aop-3.0.5.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.springframework.asm-3.0.5.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.springframework.aspects-3.0.5.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.springframework.beans-3.0.5.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.springframework.context-3.0.5.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.springframework.core-3.0.5.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.springframework.expression-3.0.5.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/org.springframework.web-3.0.5.RELEASE.jar"/>
<pathelement location="WebContent/WEB-INF/lib/paranamer-2.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/scannotation-1.0.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/slf4j-api-1.6.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/slf4j-log4j12-1.6.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/validation-api-1.0.0.GA.jar"/>
<pathelement location="WebContent/WEB-INF/lib/vraptor-3.3.1.jar"/>
<pathelement location="WebContent/WEB-INF/lib/xstream-1.3.1.jar"/>
</path>
<path id="EAR Libraries.libraryclasspath"/>
<path id="JUnit 4.libraryclasspath">
<pathelement location="${ECLIPSE_HOME}/plugins/org.junit_4.8.2.v4_8_2_v20110321-1705/junit.jar"/>
<pathelement location="${ECLIPSE_HOME}/plugins/org.hamcrest.core_1.1.0.v20090501071000.jar"/>
</path>
<path id="SIGP.classpath">
<pathelement location="WebContent/WEB-INF/classes"/>
<path refid="Server Library [Apache Tomcat v6.0] (unbound).libraryclasspath"/>
<path refid="Web App Libraries.libraryclasspath"/>
<path refid="EAR Libraries.libraryclasspath"/>
<path refid="JUnit 4.libraryclasspath"/>
</path>
<target name="init">
<mkdir dir="WebContent/WEB-INF/classes"/>
<copy includeemptydirs="false" todir="WebContent/WEB-INF/classes">
<fileset dir="src">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="WebContent/WEB-INF/classes"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="WebContent/WEB-INF/classes" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="SIGP.classpath"/>
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
<target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
<copy todir="${ant.library.dir}">
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</copy>
<unzip dest="${ant.library.dir}">
<patternset includes="jdtCompilerAdapter.jar"/>
<fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
</unzip>
</target>
<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
<antcall target="build"/>
</target>
<target name="CriaTabela">
<java classname="sigp.src.CriaTabela" failonerror="true" fork="yes">
<classpath refid="SIGP.classpath"/>
</java>
</target>
<target name="DisciplinaControllerTest">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="sigp.test.controllers.DisciplinaControllerTest" todir="${junit.output.dir}"/>
<classpath refid="SIGP.classpath"/>
</junit>
</target>
<target name="DisciplinaTest">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="sigp.test.DisciplinaTest" todir="${junit.output.dir}"/>
<classpath refid="SIGP.classpath"/>
</junit>
</target>
<target name="GrupoControllerTest">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="sigp.test.controllers.GrupoControllerTest" todir="${junit.output.dir}"/>
<classpath refid="SIGP.classpath"/>
</junit>
</target>
<target name="IndexControllerTest">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="sigp.test.IndexControllerTest" todir="${junit.output.dir}"/>
<classpath refid="SIGP.classpath"/>
</junit>
</target>
<target name="ProjetoTest">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="sigp.test.ProjetoTest" todir="${junit.output.dir}"/>
<classpath refid="SIGP.classpath"/>
</junit>
</target>
<target name="sigp.src.hash">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<classpath refid="SIGP.classpath"/>
</junit>
</target>
<target name="src">
<mkdir dir="${junit.output.dir}"/>
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml"/>
<test name="sigp.test.ContribuinteTest" todir="${junit.output.dir}"/>
<test name="sigp.test.DisciplinaTest" todir="${junit.output.dir}"/>
<test name="sigp.test.FiliacaoTest" todir="${junit.output.dir}"/>
<test name="sigp.test.GrupoTest" todir="${junit.output.dir}"/>
<test name="sigp.test.IndexControllerTest" todir="${junit.output.dir}"/>
<test name="sigp.test.LinhaPesquisaTest" todir="${junit.output.dir}"/>
<test name="sigp.test.PasswordCodificatorTest" todir="${junit.output.dir}"/>
<test name="sigp.test.ProjetoTest" todir="${junit.output.dir}"/>
<test name="sigp.test.PublicacaoTest" todir="${junit.output.dir}"/>
<test name="sigp.test.UsuarioTest" todir="${junit.output.dir}"/>
<test name="sigp.test.controllers.DisciplinaControllerTest" todir="${junit.output.dir}"/>
<test name="sigp.test.controllers.GrupoControllerTest" todir="${junit.output.dir}"/>
<test name="sigp.test.controllers.LinhaDePesquisaControllerTest" todir="${junit.output.dir}"/>
<test name="sigp.test.controllers.ProjetoControllerTest" todir="${junit.output.dir}"/>
<test name="sigp.test.controllers.PublicacaoControllerTest" todir="${junit.output.dir}"/>
<test name="sigp.test.controllers.UsuarioControllerTest" todir="${junit.output.dir}"/>
<classpath refid="SIGP.classpath"/>
</junit>
</target>
<target name="junitreport">
<junitreport todir="${junit.output.dir}">
<fileset dir="${junit.output.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${junit.output.dir}"/>
</junitreport>
</target>
</project>