File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/java/org/apache/hadoop/fs/glusterfs Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import java .util .Properties ;
6
6
7
+ import org .slf4j .Logger ;
8
+ import org .slf4j .LoggerFactory ;
9
+
7
10
/**
8
11
* Versioning stuff for the shim. This class is not tested since there is no
9
12
* deterministic behaviour (i.e. it might not work if not building from binary),
10
13
* and the effects are pure side effects.
11
14
*/
12
15
public class Version extends Properties {
16
+ static final Logger LOG = LoggerFactory .getLogger (Version .class );
13
17
public Version () {
14
18
super ();
15
19
try {
16
20
load (this .getClass ().getClassLoader ().getResourceAsStream ("git.properties" ));
17
21
}
18
22
catch (Throwable t ){
19
- throw new RuntimeException ("Couldn't find git properties for version info " + t .getMessage ());
23
+ LOG .warn ("Couldn't find GIT properties for version info " +
24
+ t .getMessage ()+". This jar may have been built OUTSIDE a GIT repo." );
20
25
}
21
26
}
22
27
public String getTag (){
You can’t perform that action at this time.
0 commit comments