Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28216 > unrolled thread
| Started by | "clu@aol.com" <clusardi2k@aol.com> |
|---|---|
| First post | 2014-04-24 11:12 -0700 |
| Last post | 2014-04-27 08:54 +0100 |
| Articles | 8 — 5 participants |
Back to article view | Back to comp.lang.java.programmer
How Do I Get Ant In Eclipse To Give Me Error Message "clu@aol.com" <clusardi2k@aol.com> - 2014-04-24 11:12 -0700
Re: How Do I Get Ant In Eclipse To Give Me Error Message Joerg Meier <joergmmeier@arcor.de> - 2014-04-24 20:42 +0200
Re: How Do I Get Ant In Eclipse To Give Me Error Message clusardi2k@aol.com - 2014-04-25 06:42 -0700
Re: How Do I Get Ant In Eclipse To Give Me Error Message clusardi2k@aol.com - 2014-04-25 06:47 -0700
Re: How Do I Get Ant In Eclipse To Give Me Error Message Joerg Meier <joergmmeier@arcor.de> - 2014-04-25 17:50 +0200
Re: How Do I Get Ant In Eclipse To Give Me Error Message Joerg Meier <joergmmeier@arcor.de> - 2014-04-24 20:43 +0200
Re: How Do I Get Ant In Eclipse To Give Me Error Message "clus@aol.com" <clusardi2k@aol.com> - 2014-04-25 06:17 -0700
Re: How Do I Get Ant In Eclipse To Give Me Error Message lipska the kat <lipskathekat@example.com> - 2014-04-27 08:54 +0100
| From | "clu@aol.com" <clusardi2k@aol.com> |
|---|---|
| Date | 2014-04-24 11:12 -0700 |
| Subject | How Do I Get Ant In Eclipse To Give Me Error Message |
| Message-ID | <7b07869b-886e-4fea-a7bc-a11339d4d228@googlegroups.com> |
Hello,
What are the steps that I have to do to get Ant (via file build.xml) to give me line by line error messages from my project.
Before trying the below techniques, my project compiled and ran perfectly.
Anyway, I decided I wanted to see syntax errors because it is of great use to me!
(1) So, I first tried going to Eclipse's menubar clicking on Run, External Tools, External Tools Configuration
And, adding "verbose" and even "debug" to the Arguments field, but when I compile, I get the following error message:
"The specified JRE installation does not exist."
I then went to the corresponding (above) JRE tab, but there was nothing to set. There were no JREs to choose from. I.E.: All the fields were blank.
I abandoned this attempt.
(2) I tried editing the build.xml file directly with minor success.
Near the top of the file I added the following code:
<record name="build.log" loglevel="verbose" action="start">
But, the resulting build.log file didn't have syntax errors in it.
For fun, I tried to set the same xml code to:
<record name="build.log" loglevel="debug" action="start">
But, that gave additional unuseful information.
What can I do to get the explicit syntax errors of a compilation using Ant with Eclipse.
My assumption is the debug option has to do with debugging a project and nothing to do with syntax errors from a compiler.
Thank you,
[toc] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2014-04-24 20:42 +0200 |
| Message-ID | <194qix3qfstal$.1lacpx3hoypmd$.dlg@40tude.net> |
| In reply to | #28216 |
On Thu, 24 Apr 2014 11:12:22 -0700 (PDT), clu@aol.com wrote: > I then went to the corresponding (above) JRE tab, but there was nothing to set. There were no JREs to choose from. I.E.: All the fields were blank. > I abandoned this attempt. That tab only lists the JREs you have configured for your Eclipse. Since you apparently haven't configured any, it doesn't show any. That is easy to remedy though: go to the menu, Window/Preferences/Java/Installed JREs, then click on Add, select Standard VM, and point it to your JRE(s). Those instructions are for Kepler, let me know if you use a different version where the steps don't match. Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
[toc] | [prev] | [next] | [standalone]
| From | clusardi2k@aol.com |
|---|---|
| Date | 2014-04-25 06:42 -0700 |
| Message-ID | <c596092d-4739-441a-8152-de97251f16da@googlegroups.com> |
| In reply to | #28217 |
On Thursday, April 24, 2014 2:42:00 PM UTC-4, Joerg Meier wrote: > On Thu, 24 Apr 2014 11:12:22 -0700 (PDT), clu@aol.com wrote: > > > > > I then went to the corresponding (above) JRE tab, but there was nothing to set. There were no JREs to choose from. I.E.: All the fields were blank. > > > > > I abandoned this attempt. > > That tab only lists the JREs you have configured for your Eclipse. Since > you apparently haven't configured any, it doesn't show any. That is easy to > remedy though: go to the menu, Window/Preferences/Java/Installed JREs, then > click on Add, select Standard VM, and point it to your JRE(s). > > Those instructions are for Kepler, let me know if you use a different > version where the steps don't match. > I did what you said, but I get the following message: BUILD FAILED Target "verbose" does not exist in the project FYI: I tried to add the following line (mentioned above) to the build.xml file: <record name="build.log" loglevel="verbose" action="start"> But, the editor showed a red X mark on the first line (<project name =... >) of the build.xml file which said the following: "Default target release does not exist in this project" There were no errors with the build.xml file before adding the new line.
[toc] | [prev] | [next] | [standalone]
| From | clusardi2k@aol.com |
|---|---|
| Date | 2014-04-25 06:47 -0700 |
| Message-ID | <a0c64370-99da-4931-a1b6-0f6e2f2d46ad@googlegroups.com> |
| In reply to | #28217 |
On Thursday, April 24, 2014 2:42:00 PM UTC-4, Joerg Meier wrote: > On Thu, 24 Apr 2014 11:12:22 -0700 (PDT), clu@aol.com wrote: > > > I then went to the corresponding (above) JRE tab, but there was nothing to set. There were no JREs to choose from. I.E.: All the fields were blank. > > > I abandoned this attempt. > > That tab only lists the JREs you have configured for your Eclipse. Since > you apparently haven't configured any, it doesn't show any. That is easy to > remedy though: go to the menu, Window/Preferences/Java/Installed JREs, then > click on Add, select Standard VM, and point it to your JRE(s). > > Those instructions are for Kepler, let me know if you use a different > version where the steps don't match. > > Liebe Gruesse, > > Joerg > Will the "verbose" option be enough to yield me all the syntactical errors?
[toc] | [prev] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2014-04-25 17:50 +0200 |
| Message-ID | <1ip0qesj9tprj.zf26mi2q9lej.dlg@40tude.net> |
| In reply to | #28230 |
On Fri, 25 Apr 2014 06:47:37 -0700 (PDT), clusardi2k@aol.com wrote: > On Thursday, April 24, 2014 2:42:00 PM UTC-4, Joerg Meier wrote: >> On Thu, 24 Apr 2014 11:12:22 -0700 (PDT), clu@aol.com wrote: >>> I then went to the corresponding (above) JRE tab, but there was nothing to set. There were no JREs to choose from. I.E.: All the fields were blank. >>> I abandoned this attempt. >> That tab only lists the JREs you have configured for your Eclipse. Since >> you apparently haven't configured any, it doesn't show any. That is easy to >> remedy though: go to the menu, Window/Preferences/Java/Installed JREs, then >> click on Add, select Standard VM, and point it to your JRE(s). >> Those instructions are for Kepler, let me know if you use a different >> version where the steps don't match. > Will the "verbose" option be enough to yield me all the syntactical errors? I'm afraid I have no idea. Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
[toc] | [prev] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2014-04-24 20:43 +0200 |
| Message-ID | <1f4nmh98yz6n8$.1fysdf62irhct.dlg@40tude.net> |
| In reply to | #28216 |
ps.: All that being said, I have abandoned Ant a while ago, but I recall the output of running it just going to the console window. Is that not the case for you ? Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
[toc] | [prev] | [next] | [standalone]
| From | "clus@aol.com" <clusardi2k@aol.com> |
|---|---|
| Date | 2014-04-25 06:17 -0700 |
| Message-ID | <beee13a9-0058-4434-9f0a-15887d9a32a3@googlegroups.com> |
| In reply to | #28218 |
On Thursday, April 24, 2014 2:43:34 PM UTC-4, Joerg Meier wrote: > ps.: All that being said, I have abandoned Ant a while ago, but I recall > > the output of running it just going to the console window. Is that not the > > case for you ? All it tells me is failed build or successful build.
[toc] | [prev] | [next] | [standalone]
| From | lipska the kat <lipskathekat@example.com> |
|---|---|
| Date | 2014-04-27 08:54 +0100 |
| Message-ID | <ptWdnf958rA2KsHOnZ2dnUVZ8gWdnZ2d@bt.com> |
| In reply to | #28228 |
On 25/04/14 14:17, clus@aol.com wrote: > On Thursday, April 24, 2014 2:43:34 PM UTC-4, Joerg Meier wrote: >> ps.: All that being said, I have abandoned Ant a while ago, but I recall >> >> the output of running it just going to the console window. Is that not the >> >> case for you ? > > All it tells me is failed build or successful build. > I think you need to take a step back here. If you are using Eclipse then there really is no need to use Ant to compile your project, Eclipse will do that for you. Enable Window -> Show View -> Markers to see compile time errors, fix the errors then build. Where Ant is useful (to me) is for building archive files. I use Eclipse to develop web applications mainly, once things compile I run the Ant script in Eclipse to build and deploy a war file to the server. It is perfectly possible to build and deploy an application using Ant even though your code has arbitrary errors, Ant will not complain if you are not using it to compile your code. Are you actually using Ant to *compile* your code or just assemble the archive? -- lipska the kat - treacherous feline. Proudly nominated for IPOTY 2014 - LIGAF GNU/Linux user #560883 - linuxcounter.net
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web