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 = FormIntegrationTest 26PRJNAME = forms 27 28# --- Settings ----------------------------------------------------- 29.INCLUDE: settings.mk 30 31#----- compile .java files ----------------------------------------- 32 33JARFILES = ridl.jar unoil.jar jurt.jar juh.jar java_uno.jar OOoRunner.jar ConnectivityTools.jar 34JAVAFILES := $(shell @$(FIND) org -name "*.java") \ 35 $(shell @$(FIND) integration -name "*.java") 36 37#----- make a jar from compiled files ------------------------------ 38 39JARTARGET = $(TARGET).jar 40 41# --- Runner Settings ---------------------------------------------- 42 43# classpath and argument list 44RUNNER_CLASSPATH = -cp "$(CLASSPATH)$(PATH_SEPERATOR)$(SOLARBINDIR)$/OOoRunner.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/ConnectivityTools.jar" 45RUNNER_ARGS = org.openoffice.Runner -TestBase java_complex 46 47# --- Targets ------------------------------------------------------ 48 49.IF "$(depend)" == "" 50ALL : ALLTAR 51 @echo ----------------------------------------------------- 52 @echo - do a 'dmake show_targets' to show available targets 53 @echo ----------------------------------------------------- 54.ELSE 55ALL: ALLDEP 56.ENDIF 57 58.INCLUDE : target.mk 59 60show_targets: $(CLASSDIR)$/$(JARTARGET) 61 +@$(AUGMENT_LIBRARY_PATH) java $(RUNNER_CLASSPATH) complexlib.ShowTargets $(foreach,i,$(JAVAFILES) $(i:s/.\$///:s/.java//)) 62 63run: $(CLASSDIR)$/$(JARTARGET) 64 +$(COPY) integration$/forms$/*.props $(CLASSDIR) && $(AUGMENT_LIBRARY_PATH) java $(RUNNER_CLASSPATH) $(RUNNER_ARGS) -sce forms_all.sce 65 66run_%: $(CLASSDIR)$/$(JARTARGET) 67 +$(COPY) integration$/forms$/*.props $(CLASSDIR) && $(AUGMENT_LIBRARY_PATH) java $(RUNNER_CLASSPATH) $(RUNNER_ARGS) -o integration.$(PRJNAME).$(@:s/run_//) 68