Skip to content

Commit

Permalink
mkgmap-splitter: migrate to ant setup hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 committed Nov 19, 2024
1 parent 94adf3e commit 105eddf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
5 changes: 2 additions & 3 deletions doc/languages-frameworks/ant.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
[Ant](https://ant.apache.org) is a build system.
It is primarily used to build Java projects.

The setup hook included with the `ant` package changes `buildPhase` by default.
The `checkPhase` and `installPhase` phases can be used by setting `doCheck`
and `doInstall` to `true`, respectively.
The setup hook included with the `ant` package sets `buildPhase` and `checkPhase`
by default.

## `ant` thin wrapper {#ant-thin-wrapper}

Expand Down
13 changes: 1 addition & 12 deletions pkgs/applications/misc/mkgmap/splitter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,9 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ jdk ant makeWrapper stripJavaArchivesHook ];

buildPhase = ''
runHook preBuild
ant
runHook postBuild
'';

inherit doCheck;

checkPhase = ''
runHook preCheck
ant run.tests
ant run.func-tests
runHook postCheck
'';
antCheckFlags = [ "run.tests" "run.func-tests" ];

installPhase = ''
runHook preInstall
Expand Down

0 comments on commit 105eddf

Please sign in to comment.