[kepler-dev] ant test fails because ant directory cannot be written
Christopher Brooks
cxh at eecs.berkeley.edu
Fri Mar 20 09:32:16 PDT 2009
Hi David,
As a lark, I thought I'd run "ant test".
The first time I ran it, I had to set ANT_HOME.
It would be nice if the build system could figure out ANT_HOME for
us. However, this is not required.
A more pressing problem is that "ant test" tries to update
$ANT_HOME, which on my machine is owned by root.
The output is below:
--start--
bash-3.2$ ant test
Buildfile: build.xml
compile:
[compile] Compiling ptolemy...
[compile] <<< The module is ptolemy. Setting includes and excludes....
[compile] Compiling 1 source file to
/Users/cxh/src/kepler/ptolemy/target/classes
[compile] Compiling common...
[compile] Compiling directors...
[compile] Compiling actors...
[compile] Compiling core...
[compile] Compiling util...
[compile] Compiling loader...
test:
[test] Copying 1 file to /usr/share/ant/lib
BUILD FAILED
/Users/cxh/src/kepler/build-area/build.xml:55:
/Users/cxh/src/kepler/build-area/build.xml:55: Failed to copy
/Users/cxh/src/kepler/build-area/ant-tasks/lib/junit-4.5.jar to
/usr/share/ant/lib/junit-4.5.jar due to java.io.FileNotFoundException
/usr/share/ant/lib/junit-4.5.jar (Permission denied)
--end--
Is there any workaround?
I'd like to run the tests as part of the little nightly build I'm
running here at Berkeley.
_Christopher
--
Christopher Brooks (cxh at eecs berkeley edu) University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480
More information about the Kepler-dev
mailing list