blob: bba1bfa9d56be81a2e54a924c2cb9fde8d915b41 (
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
|
/*******************************************************************************
* Copyright (c) 2013 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:
* Alexander Kurtakov - initial API and implementation
* Neil Guzman - python, ruby implementation
*******************************************************************************/
package org.eclipse.linuxtools.rpmstubby;
/**
* Supported input types and file name patterns for the corresponding files.
*
*/
public enum InputType {
/** Eclipse feature.xml file. */
ECLIPSE_FEATURE("feature.xml"),
/** Maven pom.xml file. */
MAVEN_POM("pom.xml"),
/** Python Egg setup.py file */
PYTHON_EGG("setup.py"),
/** Ruby *.gemspec file */
RUBY_GEM("*.gemspec");
private String fileNamePattern;
private InputType(String fileName) {
this.fileNamePattern = fileName;
}
/**
* Returns the file name pattern for the input type.
*
* @return The pattern for the file name e.g. feature.xml or pom.xml.
*/
public String getFileNamePattern() {
return fileNamePattern;
}
}
|