ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaganthi, Madhusudan R." <m...@cdc.gov>
Subject RE: PrintWriter deprecated in the 3.1 build
Date Thu, 01 Jun 2000 16:41:00 GMT
This is the log output when try to run bootstrap.

Is there anything I can do about this??

____________________________________________________________________
...........

... Building Ant Distribution
java -ms128 -mx128 org.apache.tools.ant.Main main
Buildfile: build.xml
Project base dir set to: C:\tools\jakarta-ant
Executing Target: prepare
Created dir: C:\tools\jakarta-ant\build
Executing Target: check_for_optional_packages
Executing Target: compile
Created dir: C:\tools\jakarta-ant\build\classes
Compiling 57 source files to C:\tools\jakarta-ant\build\classes
C:\tools\jakarta-ant\src\main\org\apache\tools\ant\Main.java:118: Note: The
cons
tructor java.io.PrintStream(java.io.OutputStream) has been deprecated.
                    out = new PrintStream(new FileOutputStream(logFile));
                          ^
java.lang.OutOfMemoryError: java.lang.String
        at sun.tools.java.Package.makeName(Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:676)
        at org.apache.tools.ant.Project.executeTarget(Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Compiled Code)
        at org.apache.tools.ant.Main.main(Compiled Code)
C:\tools\jakarta-ant\src\main\org\apache\tools\ant\taskdefs\Ant.java:111:
Note:
The constructor java.io.PrintStream(java.io.OutputStream) has been
deprecated.
                PrintStream out=new PrintStream(new
FileOutputStream(output));
                                ^
error: An error has occurred in the compiler; please file a bug report
(http://j
ava.sun.com/cgi-bin/bugreport.cgi).
Note: 2 files use deprecated APIs.  Please consult the documentation for a
bette
r alternative in each case.
1 error, 3 warnings
BUILD FATAL ERROR: Compile failed, messages should have been provided.

... Cleaning Up Build Directories
Buildfile: build.xml
Project base dir set to: C:\tools\jakarta-ant
Executing Target: clean
Deleting: C:\tools\jakarta-ant\build
Deleting: C:\tools\jakarta-ant\dist
Completed in 1 seconds

... Done Bootstrapping Ant Distribution
____________________________________________________________________________
______


-----Original Message-----
From: Chaganthi, Madhusudan R. [mailto:mvc9@cdc.gov]
Sent: Thursday, June 01, 2000 12:06 PM
To: 'ant-dev@jakarta.apache.org'
Subject: PrintWriter deprecated in the 3.1 build


Hi All
I have been trying to run bootstrap with the 3.1 build

 jakarta-ant.zip         18-Apr-2000 16:09   331k  

I am running into deprecated api (in org.apache.tools.ant.Main) where it
uses 
java.io.PrintStream.
Is there a future version which took care of this?
I ran into a OutOfMemory at about the same point even after going for
-ms128 and -mx128.

Any suggestions would be most helpful.
Thanks
Madhu

Mime
View raw message