1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24.IF "$(OOO_JUNIT_JAR)" == ""
25nothing .PHONY:
26    @echo -----------------------------------------------------
27    @echo - JUnit not available, not building anything
28    @echo -----------------------------------------------------
29.ELSE
30
31PRJ = ../../..
32PRJNAME = dbaccess
33TARGET = qa_complex_dbaccess
34PACKAGE = complex/dbaccess
35
36# --- Settings -----------------------------------------------------
37.INCLUDE: settings.mk
38
39#----- compile .java files -----------------------------------------
40
41JARFILES        = OOoRunner.jar ridl.jar test.jar juh.jar unoil.jar ConnectivityTools.jar
42EXTRAJARFILES   = $(OOO_JUNIT_JAR)
43
44#----- create a jar from compiled files ----------------------------
45
46JARTARGET       = $(TARGET).jar
47
48#----- Java files --------------------------------------------------
49
50# here store only Files which contain a @Test
51JAVATESTFILES = \
52	ApplicationController.java \
53	Beamer.java \
54	DataSource.java \
55	DatabaseDocument.java \
56	Parser.java \
57	PropertyBag.java \
58	Query.java \
59	QueryInQuery.java \
60	RowSet.java \
61	SingleSelectQueryComposer.java \
62	UISettings.java \
63	CopyTableWizard.java \
64
65# put here all other files
66JAVAFILES = $(JAVATESTFILES) \
67	CRMBasedTestCase.java \
68    CopyTableInterActionHandler.java \
69	DatabaseApplication.java \
70	FileHelper.java \
71	RowSetEventListener.java \
72    TestCase.java \
73
74
75# Sample how to debug
76# JAVAIFLAGS=-Xdebug  -Xrunjdwp:transport=dt_socket,server=y,address=9003,suspend=y
77
78# --- Targets ------------------------------------------------------
79
80.INCLUDE: target.mk
81
82ALL :   ALLTAR
83
84# --- subsequent tests ---------------------------------------------
85
86.IF "$(OOO_SUBSEQUENT_TESTS)" != ""
87
88.INCLUDE: installationtest.mk
89
90ALLTAR : javatest
91
92    # Sample how to debug
93    # JAVAIFLAGS=-Xdebug  -Xrunjdwp:transport=dt_socket,server=y,address=9003,suspend=y
94
95.END    # "$(OOO_SUBSEQUENT_TESTS)" == ""
96
97.END    # ELSE "$(OOO_JUNIT_JAR)" != ""
98
99