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
24PRJ = ..$/..$/..
25TARGET  = PropertyValues
26PRJNAME = $(TARGET)
27PACKAGE = complex$/ooxml
28
29# --- Settings -----------------------------------------------------
30.INCLUDE: settings.mk
31
32
33#----- compile .java files -----------------------------------------
34
35JARFILES = mysql.jar ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
36JAVAFILES       = LoadDocuments.java
37JAVACLASSFILES  = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
38
39#----- make a jar from compiled files ------------------------------
40
41MAXLINELENGTH = 100000
42
43JARCLASSDIRS    = $(PACKAGE)
44JARTARGET       = $(TARGET).jar
45JARCOMPRESS     = TRUE
46
47# --- Parameters for the test --------------------------------------
48
49# start an office if the parameter is set for the makefile
50.IF "$(OFFICE)" == ""
51CT_APPEXECCOMMAND =
52.ELSE
53CT_APPEXECCOMMAND = -AppExecutionCommand "$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;"
54.ENDIF
55
56# test base is java complex
57CT_TESTBASE = -TestBase java_complex
58
59# build package name with "." instead of $/
60CT_PACKAGE  = -o $(PACKAGE:s\$/\.\)
61
62# start the runner application
63CT_APP      = org.openoffice.Runner
64
65# --- Targets ------------------------------------------------------
66
67.IF "$(depend)" == ""
68ALL: ALLTAR
69.ELSE
70ALL: ALLDEP
71.ENDIF
72
73.INCLUDE :  target.mk
74
75run: \
76	LoadDocuments
77
78RUN: run
79
80LoadDocuments:
81    +java -cp $(CLASSPATH) $(CT_APP) $(CT_APPEXECCOMMAND) $(CT_TESTBASE) -tdoc $(PWD)$/testdocuments $(CT_PACKAGE).LoadDocuments
82
83