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=52659b7d5c1d12e1952529218abc805c75ce5732;hb=d4bd245768d2e2b3f94928b3db5a01380857e8b8;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..52659b7d5 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,25 @@ +/* + * Copyright (C) 2007-2012 Argeo GmbH + * + * 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 +34,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);