diff --git a/build.xml b/build.xml
--- a/build.xml
+++ b/build.xml
@@ -186,13 +186,7 @@
       <equals arg1="${bbdd.rdbms}" arg2="POSTGRE" />
     </and>
   </condition>
-  
-  <condition property="java.security.egd" value="">
-    <not>
-      <isset property="${java.security.egd}" />
-    </not>
-  </condition>
-
+ 
   <path id="project.class.path">
     <pathelement path="${build}" />
     <pathelement path="${base.src}" />
diff --git a/src-wad/build.xml b/src-wad/build.xml
--- a/src-wad/build.xml
+++ b/src-wad/build.xml
@@ -61,7 +61,9 @@
     <java classname="org.openbravo.data.Sqlc" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
       <arg line="'${base.config}'/Openbravo.properties .xsql ./src/org '${build.wad.sqlc}'" />
       <classpath refid="wad.class.path" />
-      <sysproperty key="java.security.egd" value="${java.security.egd}"/>
+      <syspropertyset>
+        <propertyref name="java.security.egd" />
+      </syspropertyset>
     </java>
   	
   	<java classname="org.openbravo.data.Sqlc" jvm="${env.JAVA_HOME}/bin/java" fork="yes" maxmemory="${build.maxmemory}">
