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  = StorageUnitTest
26PRJNAME = package
27PACKAGE = complex$/ofopxmlstorages
28
29# --- Settings -----------------------------------------------------
30.INCLUDE: settings.mk
31
32
33#----- compile .java files -----------------------------------------
34
35JARFILES        = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
36
37JAVAFILES       =\
38				StorageUnitTest.java\
39				StorageTest.java\
40				TestHelper.java\
41				Test01.java\
42				Test02.java\
43				Test03.java\
44				Test04.java\
45				Test05.java\
46				Test06.java\
47				Test07.java\
48				Test08.java
49
50JAVACLASSFILES	= $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
51
52#----- make a jar from compiled files ------------------------------
53
54MAXLINELENGTH = 100000
55
56JARCLASSDIRS    = $(PACKAGE)
57JARTARGET       = $(TARGET).jar
58JARCOMPRESS 	= TRUE
59
60# --- Parameters for the test --------------------------------------
61
62# start an office if the parameter is set for the makefile
63.IF "$(OFFICE)" == ""
64CT_APPEXECCOMMAND =
65.ELSE
66CT_APPEXECCOMMAND = -AppExecutionCommand "$(OFFICE)$/soffice -accept=socket,host=localhost,port=8100;urp;"
67.ENDIF
68
69# test base is java complex
70CT_TESTBASE = -TestBase java_complex
71
72# test looks something like the.full.package.TestName
73CT_TEST     = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
74
75# start the runner application
76CT_APP      = org.openoffice.Runner
77
78# --- Targets ------------------------------------------------------
79
80.INCLUDE: target.mk
81
82RUN: run
83
84run:
85    java -cp $(CLASSPATH) $(CT_APP) $(CT_TESTBASE) $(CT_APPEXECCOMMAND) $(CT_TEST)
86
87
88