Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 40e5f5d379c30743daeb14339b6b63934dcead59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*******************************************************************************
 * Copyright (c) 2011 Red Hat, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Red Hat - initial API and implementation
 *******************************************************************************/
package org.eclipse.linuxtools.rpm.core;

import java.util.List;

import org.eclipse.core.resources.IContainer;

/**
 * Project configuration allowing to retrieve information needed for RPM builds.
 *
 */
public interface IProjectConfiguration {

    /**
     * Constant for the --define parameter.
     */
    String DEFINE = "--define"; //$NON-NLS-1$

    /**
     * Returns the folder to build into.
     *
     * @return The build folder.
     */
    IContainer getBuildFolder();

    /**
     * Returns the folder to put built binary rpms.
     *
     * @return The rpms folder.
     */
    IContainer getRpmsFolder();

    /**
     * Returns the folder to retrieve sources from.
     *
     * @return The sources folder.
     */
    IContainer getSourcesFolder();

    /**
     * Returns the folder to retrieve spec file from.
     *
     * @return The specs folder.
     */
    IContainer getSpecsFolder();

    /**
     * Returns the folder to put src.rpm.
     *
     * @return The source rpms folder.
     */
    IContainer getSrpmsFolder();


    /**
     * Returns list of RPM defines to be passed wherever needed so the project structure is respected.
     *
     * @return The defines setting various directories.
     */
    List<String> getConfigDefines();

}

Back to the top