Commit db256988 authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

jre_miniman.tests: fix pre/post hook running

parent b96d99b6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -25,12 +25,12 @@ in
    src = source;

    buildPhase = ''
      runHook preBuildPhase
      runHook preBuild
      ${jdk}/bin/javac src/Hello.java
      runHook postBuildPhase
      runHook postBuild
    '';
    installPhase = ''
      runHook preInstallPhase
      runHook preInstall

      mkdir -p $out/lib
      cp src/Hello.class $out/lib
@@ -42,6 +42,6 @@ in
      EOF
      chmod a+x $out/bin/hello

      runHook postInstallPhase
      runHook postInstall
    '';
  }
+4 −4
Original line number Diff line number Diff line
@@ -20,12 +20,12 @@ in
    src = source;

    buildPhase = ''
      runHook preBuildPhase
      runHook preBuild
      ${jdk}/bin/javac src/Hello.java
      runHook postBuildPhase
      runHook postBuild
    '';
    installPhase = ''
      runHook preInstallPhase
      runHook preInstall

      mkdir -p $out/lib
      cp src/Hello.class $out/lib
@@ -37,6 +37,6 @@ in
      EOF
      chmod a+x $out/bin/hello

      runHook postInstallPhase
      runHook postInstall
    '';
  }