]> git.donarmstrong.com Git - debhelper.git/blob - Debian/Debhelper/Buildsystem/ant.pm
Fix build system auto-selection breakage.
[debhelper.git] / Debian / Debhelper / Buildsystem / ant.pm
1 # A debhelper build system class for handling Ant based projects.
2 #
3 # Copyright: © 2009 Joey Hess
4 # License: GPL-2+
5
6 package Debian::Debhelper::Buildsystem::ant;
7
8 use strict;
9 use base 'Debian::Debhelper::Buildsystem';
10
11 sub DESCRIPTION {
12         "Ant (build.xml)"
13 }
14
15 sub check_auto_buildable {
16         my $this=shift;
17         return (-e $this->get_sourcepath("build.xml")) ? 1 : 0;
18 }
19
20 sub new {
21         my $class=shift;
22         my $this=$class->SUPER::new(@_);
23         $this->enforce_in_source_building();
24         return $this;
25 }
26
27 sub build {
28         my $this=shift;
29         $this->doit_in_sourcedir("ant", @_);
30 }
31
32 sub clean {
33         my $this=shift;
34         $this->doit_in_sourcedir("ant", "clean", @_);
35 }
36
37 1