01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.deployment.plugin.remote;
17:
18: import org.apache.geronimo.kernel.Kernel;
19:
20: import javax.enterprise.deploy.spi.Target;
21: import javax.enterprise.deploy.shared.ModuleType;
22:
23: import java.io.File;
24: import java.io.InputStream;
25:
26: /**
27: * A version of the distribute command that works on a server different
28: * than the application server.
29: *
30: * @version $Rev: 512979 $ $Date: 2007-02-28 13:28:28 -0800 (Wed, 28 Feb 2007) $
31: */
32: public class DistributeCommand extends
33: org.apache.geronimo.deployment.plugin.local.DistributeCommand {
34: public DistributeCommand(Kernel kernel, Target[] targetList,
35: File moduleArchive, File deploymentPlan) {
36: super (kernel, targetList, moduleArchive, deploymentPlan);
37: }
38:
39: public DistributeCommand(Kernel kernel, Target[] targetList,
40: ModuleType moduleType, InputStream moduleStream,
41: InputStream deploymentStream) {
42: super (kernel, targetList, moduleType, moduleStream,
43: deploymentStream);
44: }
45:
46: protected void massageFileNames(File[] inputs) {
47: RemoteDeployUtil.uploadFilesToServer(inputs, this);
48: }
49: }
|