logo       

Re: Build problem: msg#00014

java.enhydra.xmlc

Subject: Re: Build problem

Change the following line in xmlc/xmlc/modules/xmlc/build-default.properties

build.compiler=jikes

to

build.compiler=modern

David


On Monday, Mar 3, 2003, at 00:11 Asia/Shanghai, Xue-Feng Yang wrote:

It is much better. It looks the error message was
misleading since I checked the optional.jar that
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
was there. Some other classes may be missing there.


However, I had the attached error message. I use Sun
JDK not jikes. Do I have to modify build.xml manually?
Or there is a way to configue this.

Thanks,

Xue-Feng

BUILD FAILED
file:D:/Programs/cvs/XMLC/xmlc/modules/xmlc/build.xml:139:
Error running jikes compiler





--- Jacob Kjome <hoju@xxxxxxxx> wrote: >
By "root", I mean the top level directory which
contains a build.xml
file. For instance, here is how it looks on my
machine....

D:\myclasses\Repository\Enhydra\XMLC_2002-12-31\XMLC

I created the "XMLC_2002-12-31" directory myself.
The "XMLC" directory was
created via the checkout of the XMLC project from
CVS.

Here is the problem. I just double checked this for
myself. I removed
junit-3.8.1.jar from ANT_HOME/lib (which I had put
there intentionally for
another project that uses JUnit). I ran a simple
"ant clean" and got this....


D:\myclasses\Repository\Enhydra\XMLC_2002-12-31\XMLC>ant
clean
Buildfile: build.xml

clean:

call-subprojects:

init:

BUILD FAILED

file:D:/myclasses/Repository/Enhydra/XMLC_2002-12-31/XMLC/libraries/ util/modules
/junitTivano/build.xml:79: taskdef class
org.apache.tools.ant.taskdefs.optional.
junit.JUnitTask cannot be found


So, the moral of the story is, put the junit jar in
ANT_HOME/lib before
running ant. You will get better results.

Now just do:

D:\myclasses\Repository\Enhydra\XMLC_2002-12-31\XMLC>ant

And everything will be built for you.

Jake


At 09:14 PM 3/1/2003 -0500, you wrote:
I don't know which "root" you talked about. Let me
copy the error messages which I run under three
different directories:

/******1********/
D:\Programs\cvs\XMLC\xmlc>ant
Buildfile: build.xml

prepare:
[mkdir] Created dir:
D:\Programs\cvs\XMLC\xmlc\classes

copy:

BUILD FAILED
file:D:/Programs/cvs/XMLC/xmlc/build.xml:55: Must
specify a file not a directory
in the filtersfile
attribute:D:\Programs\cvs\build\runtime.filters

Total time: 2 seconds
D:\Programs\cvs\XMLC\xmlc>cd ..

D:\Programs\cvs\XMLC>ant
Buildfile: build.xml

lib:

call-subprojects:

init:

BUILD FAILED

file:D:/Programs/cvs/XMLC/libraries/util/modules/junitTivano/ build.xml:79:
taskd
ef class

org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
cannot be found

Total time: 1 second

/******2********/
D:\Programs\cvs\XMLC\xmlc>ant
Buildfile: build.xml

prepare:

copy:

BUILD FAILED
file:D:/Programs/cvs/XMLC/xmlc/build.xml:55: Must
specify a file not a directory
in the filtersfile
attribute:D:\Programs\cvs\build\runtime.filters

Total time: 2 seconds

/******3********/
D:\Programs\cvs\XMLC\xmlc\modules\xmlc>ant
Buildfile: build.xml

init:

BUILD FAILED

file:D:/Programs/cvs/XMLC/xmlc/modules/xmlc/build.xml:111:
taskdef class org.apa
che.tools.ant.taskdefs.optional.junit.JUnitTask
cannot
be found

Total time: 2 seconds



--- Jacob Kjome <hoju@xxxxxxxx> wrote: >
I take that back. There does seem to be
something
wrong with running the
tests. However, if you just do cd to the root
of
the project build and
type "ant", that will run the "lib" target which
will succeed under
Ant-1.5.1 and ant-1.5.2beta1.

Don't bother with the cygwin environment. Just
do
it from the normal
command line.

Jake

At 03:17 PM 3/1/2003 -0600, you wrote:

Are you sure? What makes it incompatible? I
use
Ant-1.5.1 to build
XMLC. As far as the JUnit stuff goes, you need
to
put the JUnit jar file
in ANT_HOME/lib in order for it to work. This
is
because the JUnit task
is part of the optional task which are in
ANT_HOME/lib. The JUnit
libraries must come from the same classloader
(or
higher...such as
jre/ib/ext) as the optional tasks. I use
JUnit-3.8.1.

Jake

At 02:18 AM 3/2/2003 +0800, you wrote:
The XMLC build.xml isn't compatible with the
1.5.1. The 1.4 Ant is
included with the source and you can take a
look
at the build.sh and
maybe write a build.bat for building on
Windows.

By the way, the binary distribution of the
XMLC
2.2 Alpha 3 is at:

http://homepage.mac.com/taweili/XMLC.html

David


On Sunday, Mar 2, 2003, at 01:51
Asia/Shanghai,
Xue-Feng Yang wrote:

I tried to chechout the source by pserver,
but no
luck.

The error message is attched.

The problem may be the version of the ant.
Could
anyone please tell me what version of ANT for
building
XMLC? If anyone met this before, please help
me.

I use JDK 1.4.1 and Ant 1.5.1.

Thanks

=== message truncated ===

______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
_______________________________________________
XMLC mailing list
XMLC@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/xmlc


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise