Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Problem with ant output.
Problem with ant output. [message #56112] Fri, 13 June 2003 12:00 Go to next message
No real name is currently offline No real nameFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I don't know what Im missing here. I have a normal build.xml which compiles
normally in the dos-prompt. The thing is that when I use it in Eclipse Im
missing a lot of the output. For example, when I do a build (where I compile
one file) I get this in Eclipse:

Buildfile: D:\Project\myproject\build.xml
init:
compile:
BUILD SUCCESSFUL
Total time: 771 milliseconds

But when I do this in dos, I get:
Buildfile: build.xml
init:
compile:
[javac] Compiling 1 source file to D:\Project\myproject\lib
BUILD SUCCESSFUL
Total time: 12 seconds

How do I set Eclipse so I see the javac output? Another things I have
noticed is that I can compile error files through Eclipse.With that I mean
that I get the same output as the first example when I know there is an
error in the file. The error is then shown when I run the program (it can
for example be a missing semicolon). Eclipse dont tell me anything that the
error exist, more than showing it in the task view. Is there some way to
make it stop when there is an error?

This is the tasks I have in the build.xml file:
<target name="init">
<mkdir dir="${build}" />
<tstamp/>
</target>

<target name="compile" depends="init">
<javac classpath = "${classpath}"
srcdir = "${src}"
destdir = "${build}"
deprecation = "on"
>
<include name="**/*.java"/>
</javac>
</target>

Thanks in advance!

/Mathias Ohlsson
Re: Problem with ant output. [message #56140 is a reply to message #56112] Fri, 13 June 2003 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: darin_swanson.oti.com

Which compiler are you using? Are you setting the build.compiler property?
javac will attempt to do incremental compiles...from the Ant doc: "
The source and destination directory will be recursively scanned for Java
source files to compile. Only Java files that have no corresponding .class
file or where the class file is older than the .java file will be compiled."

Could this be the case that the .class files is up to date?

If not please log a bug report against platform-ant and we can look into
things more in detail.

Thanks
Darins

"Mathias Ohlsson" <mathias.ohlsson@enovation.se> wrote in message
news:bccebi$3j6$1@rogue.oti.com...
> Hi,
>
> I don't know what Im missing here. I have a normal build.xml which
compiles
> normally in the dos-prompt. The thing is that when I use it in Eclipse Im
> missing a lot of the output. For example, when I do a build (where I
compile
> one file) I get this in Eclipse:
>
> Buildfile: D:\Project\myproject\build.xml
> init:
> compile:
> BUILD SUCCESSFUL
> Total time: 771 milliseconds
>
> But when I do this in dos, I get:
> Buildfile: build.xml
> init:
> compile:
> [javac] Compiling 1 source file to D:\Project\myproject\lib
> BUILD SUCCESSFUL
> Total time: 12 seconds
>
> How do I set Eclipse so I see the javac output? Another things I have
> noticed is that I can compile error files through Eclipse.With that I mean
> that I get the same output as the first example when I know there is an
> error in the file. The error is then shown when I run the program (it can
> for example be a missing semicolon). Eclipse dont tell me anything that
the
> error exist, more than showing it in the task view. Is there some way to
> make it stop when there is an error?
>
> This is the tasks I have in the build.xml file:
> <target name="init">
> <mkdir dir="${build}" />
> <tstamp/>
> </target>
>
> <target name="compile" depends="init">
> <javac classpath = "${classpath}"
> srcdir = "${src}"
> destdir = "${build}"
> deprecation = "on"
> >
> <include name="**/*.java"/>
> </javac>
> </target>
>
> Thanks in advance!
>
> /Mathias Ohlsson
>
>
Re: Problem with ant output. [message #56410 is a reply to message #56140] Fri, 13 June 2003 12:41 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 7
Registered: July 2009
Junior Member
No, the .class file is not up to date and that isnt the real problem. The
file is found and compiled, that I have checked but its the output in the
console thats missing. It doesnt say that there is x nr of files compiling
nor does it give feedback when there is errors in the file. Although I find
it strange that it can output an .class file with errors in it, the problem
I have is that I lack the information about it.

/Mathias

"Darin Swanson" <darin_swanson@oti.com> wrote in message
news:bccgd0$5ms$1@rogue.oti.com...
> Which compiler are you using? Are you setting the build.compiler property?
> javac will attempt to do incremental compiles...from the Ant doc: "
> The source and destination directory will be recursively scanned for Java
> source files to compile. Only Java files that have no corresponding .class
> file or where the class file is older than the .java file will be
compiled."
>
> Could this be the case that the .class files is up to date?
>
> If not please log a bug report against platform-ant and we can look into
> things more in detail.
>
> Thanks
> Darins
>
> "Mathias Ohlsson" <mathias.ohlsson@enovation.se> wrote in message
> news:bccebi$3j6$1@rogue.oti.com...
> > Hi,
> >
> > I don't know what Im missing here. I have a normal build.xml which
> compiles
> > normally in the dos-prompt. The thing is that when I use it in Eclipse
Im
> > missing a lot of the output. For example, when I do a build (where I
> compile
> > one file) I get this in Eclipse:
> >
> > Buildfile: D:\Project\myproject\build.xml
> > init:
> > compile:
> > BUILD SUCCESSFUL
> > Total time: 771 milliseconds
> >
> > But when I do this in dos, I get:
> > Buildfile: build.xml
> > init:
> > compile:
> > [javac] Compiling 1 source file to D:\Project\myproject\lib
> > BUILD SUCCESSFUL
> > Total time: 12 seconds
> >
> > How do I set Eclipse so I see the javac output? Another things I have
> > noticed is that I can compile error files through Eclipse.With that I
mean
> > that I get the same output as the first example when I know there is an
> > error in the file. The error is then shown when I run the program (it
can
> > for example be a missing semicolon). Eclipse dont tell me anything that
> the
> > error exist, more than showing it in the task view. Is there some way to
> > make it stop when there is an error?
> >
> > This is the tasks I have in the build.xml file:
> > <target name="init">
> > <mkdir dir="${build}" />
> > <tstamp/>
> > </target>
> >
> > <target name="compile" depends="init">
> > <javac classpath = "${classpath}"
> > srcdir = "${src}"
> > destdir = "${build}"
> > deprecation = "on"
> > >
> > <include name="**/*.java"/>
> > </javac>
> > </target>
> >
> > Thanks in advance!
> >
> > /Mathias Ohlsson
> >
> >
>
>
Re: Problem with ant output. [message #56437 is a reply to message #56410] Fri, 13 June 2003 12:51 Go to previous message
Eclipse UserFriend
Originally posted by: darin_swanson.oti.com

We will investigate your bug report.

Darins

"Mathias Ohlsson" <mathias.ohlsson@enovation.se> wrote in message
news:bccgpl$63l$1@rogue.oti.com...
> No, the .class file is not up to date and that isnt the real problem. The
> file is found and compiled, that I have checked but its the output in the
> console thats missing. It doesnt say that there is x nr of files compiling
> nor does it give feedback when there is errors in the file. Although I
find
> it strange that it can output an .class file with errors in it, the
problem
> I have is that I lack the information about it.
>
> /Mathias
>
> "Darin Swanson" <darin_swanson@oti.com> wrote in message
> news:bccgd0$5ms$1@rogue.oti.com...
> > Which compiler are you using? Are you setting the build.compiler
property?
> > javac will attempt to do incremental compiles...from the Ant doc: "
> > The source and destination directory will be recursively scanned for
Java
> > source files to compile. Only Java files that have no corresponding
..class
> > file or where the class file is older than the .java file will be
> compiled."
> >
> > Could this be the case that the .class files is up to date?
> >
> > If not please log a bug report against platform-ant and we can look into
> > things more in detail.
> >
> > Thanks
> > Darins
> >
> > "Mathias Ohlsson" <mathias.ohlsson@enovation.se> wrote in message
> > news:bccebi$3j6$1@rogue.oti.com...
> > > Hi,
> > >
> > > I don't know what Im missing here. I have a normal build.xml which
> > compiles
> > > normally in the dos-prompt. The thing is that when I use it in Eclipse
> Im
> > > missing a lot of the output. For example, when I do a build (where I
> > compile
> > > one file) I get this in Eclipse:
> > >
> > > Buildfile: D:\Project\myproject\build.xml
> > > init:
> > > compile:
> > > BUILD SUCCESSFUL
> > > Total time: 771 milliseconds
> > >
> > > But when I do this in dos, I get:
> > > Buildfile: build.xml
> > > init:
> > > compile:
> > > [javac] Compiling 1 source file to D:\Project\myproject\lib
> > > BUILD SUCCESSFUL
> > > Total time: 12 seconds
> > >
> > > How do I set Eclipse so I see the javac output? Another things I have
> > > noticed is that I can compile error files through Eclipse.With that I
> mean
> > > that I get the same output as the first example when I know there is
an
> > > error in the file. The error is then shown when I run the program (it
> can
> > > for example be a missing semicolon). Eclipse dont tell me anything
that
> > the
> > > error exist, more than showing it in the task view. Is there some way
to
> > > make it stop when there is an error?
> > >
> > > This is the tasks I have in the build.xml file:
> > > <target name="init">
> > > <mkdir dir="${build}" />
> > > <tstamp/>
> > > </target>
> > >
> > > <target name="compile" depends="init">
> > > <javac classpath = "${classpath}"
> > > srcdir = "${src}"
> > > destdir = "${build}"
> > > deprecation = "on"
> > > >
> > > <include name="**/*.java"/>
> > > </javac>
> > > </target>
> > >
> > > Thanks in advance!
> > >
> > > /Mathias Ohlsson
> > >
> > >
> >
> >
>
>
Previous Topic:Anyone using MyEclipse?
Next Topic:Feedback on new 3.0M1 smart insert features
Goto Forum:
  


Current Time: Sun Sep 01 06:04:24 GMT 2024

Powered by FUDForum. Page generated in 0.02701 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top