Skip to content

Commit 811b080

Browse files
authored
Merge pull request #3721 from branfosj/20250515140243_new_pr_jar
deprecate the JAR easyblock
2 parents 3d21594 + 4a7130b commit 811b080

File tree

1 file changed

+4
-24
lines changed
  • easybuild/easyblocks/generic

1 file changed

+4
-24
lines changed

easybuild/easyblocks/generic/jar.py

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,12 @@
3131
@author: Pieter De Baets (Ghent University)
3232
@author: Jens Timmerman (Ghent University)
3333
"""
34-
import shutil
35-
3634
from easybuild.easyblocks.generic.binary import Binary
3735

3836

3937
class JAR(Binary):
4038
"""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')

0 commit comments

Comments
 (0)