File tree Expand file tree Collapse file tree 1 file changed +4
-24
lines changed
easybuild/easyblocks/generic Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change 31
31
@author: Pieter De Baets (Ghent University)
32
32
@author: Jens Timmerman (Ghent University)
33
33
"""
34
- import shutil
35
-
36
34
from easybuild .easyblocks .generic .binary import Binary
37
35
38
36
39
37
class JAR (Binary ):
40
38
"""Support for installing JAR files."""
41
-
42
- def install_step_xxx (self ):
43
- """Custom installation for JAR files: just copy them to install path."""
44
-
45
- for srcfile in self .src :
46
- shutil .copy (srcfile ['path' ], self .installdir )
47
-
48
- def make_module_extra (self ):
49
- """Extra module entries for JAR files: CLASSPATH."""
50
-
51
- txt = super ().make_module_extra ()
52
-
53
- for srcfile in self .src :
54
- srcname = srcfile ['name' ]
55
-
56
- self .log .debug ('Checking %s...' % srcname )
57
-
58
- if srcname .endswith ('.jar' ):
59
- self .log .debug ('Adding %s to classpath' % srcname )
60
- txt += self .module_generator .prepend_paths ('CLASSPATH' , [srcname ])
61
-
62
- return txt
39
+ def __init__ (self , * args , ** kwargs ):
40
+ """Initialize."""
41
+ super ().__init__ (* args , ** kwargs )
42
+ self .log .deprecated ("The JAR easyblock is deprecated. Use the Binary easyblock instead." , '6.0' )
You can’t perform that action at this time.
0 commit comments