]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.rpmfactory/src/main/java/org/argeo/slc/rpmfactory/RpmFactory.java
2 * Copyright (C) 2007-2012 Argeo GmbH
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org
.argeo
.slc
.rpmfactory
;
19 import java
.util
.List
;
21 import javax
.jcr
.Node
;
24 * Defines a build environment. This information is typically used by other
25 * components performing the various actions related to RPM build.
27 public interface RpmFactory
{
29 // DIRECT ACTIONS ON JCR REPOSITORY
31 public void indexWorkspace(String workspace
);
33 public Node
newDistribution(String distributionId
);
36 // CONFIG FILES GENERATION
38 /** Creates a mock config file. */
39 public File
getMockConfigFile(String arch
, String branch
);
41 /** Creates a yum config file. */
42 public File
getYumRepoFile(String arch
);
47 public String
getStagingWorkspace();
50 * @return the name of the testing workspace, or null if and only if the
51 * testing workspace was not enabled.
53 public String
getTestingWorkspace();
55 public String
getStableWorkspace();
57 public File
getWorkspaceDir(String workspace
);
60 // ARCH DEPENDENT INFOS
62 public List
<String
> getArchs();
64 public String
getMockConfig(String arch
);
66 public String
getIdWithArch(String arch
);
68 public File
getResultDir(String arch
);
73 public String
getGitBaseUrl();
75 public Boolean
isDeveloperInstance();