HI,
   Thanks for the information ...but my problem was somethin different
...which i figired out when I ran it in debug mode ...
it required my JAVA_HOME  to be set to /opt/java1.2/jre rather than
/opt/java1.2   which works fromm the normal shell ...

I made this change and it started working fine ...
--------------------------------------------------------------------------
build-cvs-lib:
 [echo] Checking out All Required files for lib module:
Execute:CommandLauncher: /home/builder/jakarta-ant-1.3/bin/antRun
/home/builder/
ant cvs -d :pserver:[EMAIL PROTECTED]:/dept/cvs checkout lib
Execute:CommandLauncher: /home/builder/jakarta-ant-1.3/bin/antRun
/home/builder/
ant cvs -d :pserver:[EMAIL PROTECTED]:/dept/cvs tag -R lb_2001-07-19_15-11
lib


----------------------------------------------------------------------------
-----
HOwever I have another problem now ...when I run the cron scripts none of
the CVS tasks seem to work ...I get this and none of the modules are checked
out or tagged ....

The same set of commands work when I run the same build.xml from outside.
Any ideas 

Regards,
Viraj Purang



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: RE: CRON JOBS ????


Let's see,
You quoted 
http://marc.theaimsgroup.com/?l=ant-user&m=98864920124953&w=4

But if you'd read the next two messages in the thread you'd see
We ask for more info detailing her setup
http://marc.theaimsgroup.com/?l=ant-user&m=98864967126299&w=4
and she figured out what her problem was
http://marc.theaimsgroup.com/?l=ant-user&m=98867338300851&w=4

(hint:  root has no init. files)

/bill

-----Original Message-----
From: viraj.purang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 4:35 PM
To: ant-user
Subject: CRON JOBS ????


Hi Dana,
    Were you able to resolve this JAVA_HOME error. I shifted my build
subsystem from linux to HP-UX  and have started getting the same error 
and I
need to resolve this fast.CAn you send me a copy of your wokring cron 
script
file, it would be a great help I guess...
Regards,
Viraj Purang.

-----Original Message-----
From: Dana Rice [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 9:44 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Sending -J-mx128m to Javac Task


Dianne,
thanks for the help, I got it to work. Well sort of. This probably is 
not a
true ant problem/question but you seem to have a good Unix 
understanding.
I'm trying to start the ant build from a cronjob. So I call a shell 
script
which contains the location of the ant executable, logfile, and 
buildfile.
So it's a one liner that looks like:
/export/home/ant1.3/dist/bin/ant -logfile export/home/tmp/antlog 
-buildfile
/export/home/tmp/test.xml. 
Now if I cut and paste the crontab entry that calls this one line 
script to
the command line everything works fine. If crontab executes it I get:
compile:
    [javac] Compiling 1020 source files to /export/home/tmp/classes
java.lang.OutOfMemoryError 

BUILD FAILED

/export/home/tmp/test.xml:32: Error starting classic compiler:(I'm not 
using
the classic compiler) 
--- Nested Exception ---
java.lang.reflect.InvocationTargetException

Now I get a Unix mail message which may be the real clue:
Warning: JAVA_HOME environment variable is not set.
  If build fails because sun.* classes could not be found
  you will need to set the JAVA_HOME environment variable
  to the installation directory of java.

Something happens differently from crontab!!!?? Any ideas?
Thanks
Dana



-----Original Message-----
From: Diane Holt [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 5:22 PM
To: [EMAIL PROTECTED]
Subject: RE: Sending -J-mx128m to Javac Task


--- Dana Rice <[EMAIL PROTECTED]> wrote:
> In my .profile. I have tried the entry JAVACMD=java -J-mx256m and
> several things people have suggested on this topic:
: java -Xmx256m,JAVA_CMD=java -mx12m.
> I get this:ksh: -J-mx256m:  not found. This on Solaris.

Not sure which JDK you're using, but I think jdk1.2.2 uses a different
flag construct than jdk1.3 uses (and I'm not sure if jdk1.1.8 even 
offers
the memory-increase flag at all) -- run 'java -help' to see what the 
java
you're running wants for flags for upping the memory (eg., mine has the 
-X
flag, which you can do a help on, using 'java -X -help', to show you 
what
the flag should look like). Then, in your .profile, export JAVACMD (not
JAVA_CMD)with that value -- be sure to export it and quote it. For
example, mine would be (using jdk1.3):

export JAVACMD="java -Xmx256m"

If you want to see what the java command-line from the 'ant' script 
looks
like, bracket the line with set -x/set +x:

set -x
$JAVACMD -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS
org.apache.tools.ant.Main "$@"
set +x

You should see something like (I just set it on the command-line for 
this
example):
[BINKY:dianeh]: JAVACMD="java -Xmx256m" ant noop
+ java -Xmx256m -classpath
.;D:\cygwin\usr\local\ant\jakarta-ant-1.3\lib\ant.jar;D:\cygwin\usr\loca
l\an
t\jakarta-ant-1.3\lib\jakarta-ant-1.3-optional.jar;D:\cygwin\usr\local\a
nt\j
akarta-ant-1.3\lib\jaxp.jar;D:\cygwin\usr\local\ant\jakarta-ant-1.3\lib\
pars
er.jar;D:\cygwin\usr\local\java\jdk13\lib\tools.jar
-Dant.home=D:
\cygwin\usr\local\ant\jakarta-ant-1.3 org.apache.tools.ant.Main noop
Buildfile: build.xml

noop:

BUILD SUCCESSFUL

Total time: 0 seconds
+ set +x

Diane

=====
([EMAIL PROTECTED])



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to