I experienced this with the latest trunk compiling with OpenJDK 1.6 the same trunk compiled fine on windows with oracle JDK https://issues.apache.org/jira/browse/OFBIZ-3993
========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man René Scheibe sent the following on 12/27/2010 5:11 AM:
Some time ago the Ant "if" task implementation was replaced by another one using a Javascript version. I was wondering why this is named If-ant.py and not If-ant.js? The scriptdef of this "if" task in macros.xml could also be cleaned. <scriptdef name="if" language="javascript" classpathref="rhino.class.path" loaderref="rhino.class.path.loader" src="./If-ant.py"> <element name="condition" classname="org.apache.tools.ant.taskdefs.condition.And"/> <element name="commands" classname="org.apache.tools.ant.taskdefs.Sequential"/> <element name="else" classname="org.apache.tools.ant.taskdefs.Sequential"/> </scriptdef> The referenced loaderref "rhino.class.path.loader" is defined nowhere. The referenced "rhino.class.path" references a Rhino jar file ("${ofbiz.home.dir}/extension/rhino/lib/js-1.7.R1.jar") which is not existing. There is no "extension" folder at all in trunk. If the classpathref and loaderref is removed, the "if" task is still working as they are optional. So it looks like a Javascript engine is included somewhere else. If also have found framework/base/ant-scripts/if-script.groovy and it looks like this is not used either. I would anyway suggest to use ant-contrib which also includes an "if" task. See: http://ant-contrib.sourceforge.net/tasks/tasks/if.html Regards René Scheibe