Subject: Prevent shipped file modification
Description: Program updates a shipped file at install
 and upgrades. Patch sets the file once and prevent 
 program update.
Forwarded: not-needed
Author: Olivier Sallou <osallou@debian.org>
Last-Updated: 2012-10-04
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688433
--- a/usr/share/biomaj/bin/Configurator.java
+++ b/usr/share/biomaj/bin/Configurator.java
@@ -117,7 +117,7 @@
 		/*
 		 * Creer env.sh
 		 */
-		createEnv(params.get("ant_home"), params.get("java_home"));
+		//createEnv(params.get("ant_home"), params.get("java_home"));
 		
 				
 		log("Configuration complete");
--- a/usr/share/biomaj/bin/env.sh
+++ b/usr/share/biomaj/bin/env.sh
@@ -1 +1,4 @@
-#!/bin/sh
\ No newline at end of file
+#!/bin/sh
+export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::")
+export ANT_HOME=/usr/share/ant
+export BIOMAJ_ROOT=/usr/share/biomaj
