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