1*87e37ca8SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*87e37ca8SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*87e37ca8SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*87e37ca8SAndrew Rist * distributed with this work for additional information 6*87e37ca8SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*87e37ca8SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*87e37ca8SAndrew Rist * "License"); you may not use this file except in compliance 9*87e37ca8SAndrew Rist * with the License. You may obtain a copy of the License at 10*87e37ca8SAndrew Rist * 11*87e37ca8SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*87e37ca8SAndrew Rist * 13*87e37ca8SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*87e37ca8SAndrew Rist * software distributed under the License is distributed on an 15*87e37ca8SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*87e37ca8SAndrew Rist * KIND, either express or implied. See the License for the 17*87e37ca8SAndrew Rist * specific language governing permissions and limitations 18*87e37ca8SAndrew Rist * under the License. 19*87e37ca8SAndrew Rist * 20*87e37ca8SAndrew Rist *************************************************************/ 21*87e37ca8SAndrew Rist 22*87e37ca8SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir package test.java.runner; 25cdf0e10cSrcweir 26cdf0e10cSrcweir import java.net.URL; 27cdf0e10cSrcweir import com.sun.star.lib.unoloader.UnoLoader; 28cdf0e10cSrcweir 29cdf0e10cSrcweir public final class Runner { main(String[] arguments)30cdf0e10cSrcweir public static void main(String[] arguments) throws Exception { 31cdf0e10cSrcweir String[] args = new String[arguments.length - 2]; 32cdf0e10cSrcweir System.arraycopy(arguments, 2, args, 0, args.length); 33cdf0e10cSrcweir UnoLoader.execute(new URL(arguments[0]), new URL(arguments[1]), args); 34cdf0e10cSrcweir } 35cdf0e10cSrcweir Runner()36cdf0e10cSrcweir private Runner() {} 37cdf0e10cSrcweir } 38