look for java, javac and javadoc with the .exe suffix on windows
[LibreOffice.git] / testtools / qa / cliversioning / makefile.mk
blobdd3880bd134def229e678ad0a5655c8786082e52
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # Builds the SpreadSheet examples of the Developers Guide.
22 PRJ = ..$/..
23 PRJNAME = cli_ure
24 TARGET := qa_test_climaker
25 PACKAGE = cliversioning
27 .INCLUDE: settings.mk
29 #----- compile .java files -----------------------------------------
31 JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar
32 JAVAFILES = VersionTestCase.java
33 JAVACLASSFILES = $(foreach,i,$(JAVAFILES) $(CLASSDIR)$/$(PACKAGE)$/$(i:b).class)
35 #----- make a jar from compiled files ------------------------------
37 MAXLINELENGTH = 100000
39 JARCLASSDIRS = $(PACKAGE)
40 JARTARGET = $(TARGET).jar
41 JARCOMPRESS = TRUE
44 .INCLUDE: target.mk
46 ALLTAR : \
47 echo
49 echo :
50 @echo .
51 @echo ########################### N O T E ######################################
52 @echo .
53 @echo To run the test you have to provide the path to the office location. It must
54 @echo contain the ure (d:\myOffice\LibreOffice\URE).
55 @echo Also an office must be installed with full system integration.
56 @echo Example:
57 @echo dmake run office="d:\myOffice"
58 @echo .
59 @echo To build a test library with a particular name run. The names must start with "version".
60 @echo For example:
61 @echo "dmake name=version_10_10_10.dll"
62 @echo ########################### N O T E ######################################
63 @echo .
64 @echo .
66 # --- Parameters for the test --------------------------------------
68 # test base is java complex
69 CT_TESTBASE = -TestBase java_complex
71 # test looks something like the.full.package.TestName
72 CT_TEST = -o $(PACKAGE:s\$/\.\).$(JAVAFILES:b)
74 # start the runner application
75 CT_APP = org.openoffice.Runner
77 CT_NOOFFICE = -NoOffice
78 # --- Targets ------------------------------------------------------
80 RUN: $(MISC)$/copyassemblies.done
81 java -cp $(CLASSPATH) -DSystemRoot=$(SystemRoot) -Dcli_test_program=$(BIN)$/runtests.exe -Dpath="$(office)"\LibreOffice\URE\bin $(CT_APP) $(CT_NOOFFICE) $(CT_TESTBASE) $(CT_TEST)
83 run: RUN