You can try running ./ant.bat from OFBiz home folder. This will make sure you are running internal ant. I am not sure about Windows but on Linux systems, running 'ant clean-all' will run the command from system PATH. I generally use ./ant <target> to use the internal ant command.

Raj

On Tuesday 24 June 2014 10:24 PM, Adrian Crum wrote:
I don't understand what you are saying. The command

ant clean-all

has always worked before, and now it doesn't work. On my Windows machine, the command runs the ant.bat script. How do we get the script to work?

Adrian Crum
Sandglass Software
www.sandglass-software.com

On 6/24/2014 9:50 AM, Adam Heath wrote:
Yes, I know.  See my response to the buildbot failure.

Ofbiz makes use of internal ant version 1.9.0.  This version may or may
not have particular version requirements on the tools being called.

External ant may be any random version.  So, trying to have shipped jars
that match some random external version is very difficult.

I removed ant-nodeps, and moved other ant jars around.  If you are
attempting to use an external ant, then you will have to ensure yourself
that it has the correct installed contrib jars.

I've ran into this problem myself over the years; I eventually retrained
my fingers to always run the included ant.

On 06/24/2014 11:45 AM, Adrian Crum wrote:
I can't get OFBiz to build, using the latest trunk:

Buildfile: E:\Develop\ofbiz\build.xml

clean-all:

clean-ivy:

BUILD FAILED
E:\Develop\ofbiz\build.xml:83: The following error occurred while
executing this line:
E:\Develop\ofbiz\build.xml:1250: Problem: failed to create task or
type antlib:org.apache.ivy.ant:cleancache
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken
place.
No types or tasks have been defined in this namespace yet

This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
        -E:\Develop\ofbiz\lib\lib
        -a directory added on the command line with the -lib argument


Total time: 0 seconds





Reply via email to