ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myron Uecker" <uec...@us.ibm.com>
Subject Re: OS/390, Ant 1.3 and Compiler Messages - Solution Found
Date Tue, 10 Jul 2001 12:52:19 GMT

I figured out how to fix this problem and it was actually a simple change.
I modified Javac12.java and added the following lines just before the
return statement:

try {
  logstr.close();
} catch (Exception e) {
}

With this simple change, I now get compiler output on OS/390.  The
try/catch may not be necessary, but I wasn't sure whether the stream would
have been closed prior to this statement being executed.

$ ant -buildfile MyClass.xml
Buildfile: MyClass.xml

prepare:

build:
    [javac] Compiling 1 source file to /u/muecke1/test
IOException getting canonical path for
/usr/lpp/WebSphere/AppServer/lib/jsdk.jar
: bad path error
IOException getting canonical path for
/usr/lpp/WebSphere/AppServer/lib/ibmwebas
.jar: bad path error
    [javac] /u/muecke1/test/MyClass.java:13: Invalid expression statement.
Sys
^
/u/muecke1/test/MyClass.java:13: ';' expected.
Sys
   ^
2 errors


BUILD FAILED

/u/muecke1/test/MyClass.xml:63: Compile failed, messages should have been
provid
ed.

Total time: 5 seconds

Myron Uecker
muecker@att.com



Mime
View raw message