| Odd Behavior | Odd Behavior 2006-12-27 - By Res Pons
Thanks for replying. Java 1.5.6. However I found the problem. In my build.sh file I was redircting ant's output by redirection command forgetting that ant uses the -l option. This caused errors of course.
ant build > $HOME/build.log
and should've been
ant -l $HOME/build.log build
----Original Message Follows---- From: "Scot P. Floess" <floess@(protected)> Reply-To: floess@(protected) To: Ant Users List <user@(protected)> Subject: Re: Odd Behavior Date: Wed, 27 Dec 2006 15:58:46 -0500
As in on the command line:
which java
:)
Scot P. Floess wrote: >I bet its using the wrong JDK (as in the gcc version)... When you are >running ant in the "working" example, which java is it using? > >Res Pons wrote: >>I'm hoping someone could help me with my ant compile process. I have set >>up the build process and automation on a linux centOS box. >> >>When I cd into the build subfolder and manually run >> >>$ ant clean build >> >>Everything's ok. >> >> >>But when the cronjob kicks in and tries to compile, I get tons of errors: >> >>--here's the cronjob entry: >> >>40 12 * * * /home/rsvp/build.sh > /home/rsvp/cron.log >> >>--here's an excerpt from the build file (build.sh) >> >>cd project >>svn update > $HOME/svnupdate.log >>cd build >>ant clean build >> >>The problem I'm seeing is that the compile generates way too much verbose >>information and causes the build to generate errors and stop, any ideas? >> >> >> >>.compile: >> [javac] Compiling 2331 source files to /project/trunk/common/.classes >> [javac] ---------- >> [javac] 1. WARNING in /project/trunk/common/path/filename.java >> [javac] (at line 13) >> [javac] import classpath; >> [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> [javac] The import classpath is never used >> [javac] ---------- >> [javac] ---------- >> [javac] 2. WARNING in /project/trunk/common/path/filename.java >> [javac] (at line 15) >> [javac] import cclasspath; >> [javac] ^^^^^^^^^^^^^^^^^^^^^^^^^ >> [javac] The import classpath is never used >> [javac] ---------- >> [javac] ---------- >> [javac] 3. WARNING in /project/trunk/common/path/filename.java >> [javac] (at line 22) >> [javac] private static Logger the_log = Logger >> [javac] ^^^^^^^ >> [javac] The field blah_blah.the_log is never read locally >> [javac] ---------- >> [javac] ---------- >> >>_________________________________________________________________ >>>From photos to predictions, The MSN Entertainment Guide to Golden Globes >>>has >>it all. http://tv.msn.com/tv/globes2007/ >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@(protected) >>For additional commands, e-mail: user-help@(protected) >> >> >
-- Scot P. Floess 27 Lake Royale Louisburg, NC 27549
252-478-8087 (Home) 919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
_________________________________________________________________ Fixing up the home? Live Search can help http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en -US&source=hmemailtaglinenov06&FORM=WLMTAG
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |