X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.specs%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fdeploy%2FVersioningDriver.java;h=6779a3eca709eadf8f532bbb38341b109e00f3d9;hb=5fcacdb600e4c9e765cb93b46132932662832c1b;hp=f652c56543cb8ed1dd65149c8af1fb7f4d4ea80c;hpb=3ea3d9907de6c0401e596c1f19f0fd197daaf0c1;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/deploy/VersioningDriver.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/deploy/VersioningDriver.java index f652c5654..6779a3eca 100644 --- a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/deploy/VersioningDriver.java +++ b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/deploy/VersioningDriver.java @@ -1,9 +1,26 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.argeo.slc.deploy; import java.io.File; import java.io.OutputStream; import java.util.List; +/** Abstracts common versioning operations */ public interface VersioningDriver { public void getFileFromRepository(String repositoryBaseUrl, String location, OutputStream out); @@ -18,7 +35,13 @@ public interface VersioningDriver { public void importFileOrDir(String repositoryUrl, File fileOrDir); - public void checkout(String repositoryUrl, File destDir, Boolean recursive); + /** + * Checks out or update this versioned directory + * + * @return true if the content has changed, false otherwise + */ + public Boolean checkout(String repositoryUrl, File destDir, + Boolean recursive); public void createRepository(String filePath);