You've already forked OpenUxAS-bootstrap
mirror of
https://github.com/AdaCore/OpenUxAS-bootstrap.git
synced 2026-02-12 13:07:23 -08:00
Was pointing at a mirror, rather than the official apache archive; the mirror seems to have gone away. Also update to 1.10.8, which is the latest ant.
30 lines
783 B
Plaintext
30 lines
783 B
Plaintext
import os
|
|
from e3.anod.loader import spec
|
|
from e3.anod.spec import Anod
|
|
|
|
|
|
class Ant(spec('common')):
|
|
"""Install Apache ANT."""
|
|
|
|
@property
|
|
def build_source_list(self):
|
|
return [Anod.Source(name='apache-ant-1.10.8-bin.tar.gz',
|
|
publish=True)]
|
|
|
|
@property
|
|
def source_pkg_build(self):
|
|
return [
|
|
self.HTTPSSourceBuilder(
|
|
name='apache-ant-1.10.8-bin.tar.gz',
|
|
url='https://archive.apache.org/dist/ant/binaries/'
|
|
'apache-ant-1.10.8-bin.tar.gz')]
|
|
|
|
def setenv(self, prefix=None):
|
|
if prefix is None:
|
|
prefix = self.build_space.src_dir
|
|
self.env.add_path(os.path.join(prefix, 'bin'))
|
|
|
|
@Anod.primitive()
|
|
def build(self):
|
|
pass
|