/usr/share/perl5/Debian/Debhelper/Buildsystem/ivy.pm is in ivy-debian-helper 1.0.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 46 47 48 | # A debhelper build system class for handling Ivy based projects.
#
# Copyright: 2015, Emmanuel Bourg
# License: Apache-2.0
package Debian::Debhelper::Buildsystem::ivy;
use strict;
use base 'Debian::Debhelper::Buildsystem';
use Debian::Debhelper::Dh_Lib qw(%dh doit);
sub DESCRIPTION {
"Ivy (build.xml)"
}
sub check_auto_buildable {
my $this=shift;
return (-e $this->get_sourcepath("build.xml")) ? 1 : 0;
}
sub new {
my $class=shift;
my $this=$class->SUPER::new(@_);
$ENV{CLASSPATH} = "/usr/share/java/ivy.jar";
@{$this->{ant_cmd}} = (
"ant",
"-Divy.settings.file=/usr/share/ivy-debian-helper/ivysettings.xml",
"-Divy.default.ivy.user.dir=$this->{cwd}/.ivy2",
);
return $this;
}
sub build {
my $this=shift;
$this->doit_in_builddir(@{$this->{ant_cmd}}, @_);
}
sub clean {
my $this=shift;
$this->doit_in_builddir_noerror(@{$this->{ant_cmd}}, "clean");
doit("rm", "-Rf", "$this->{cwd}/.ivy2");
}
1
|