ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daisy Guo <Daisy....@everypath.com>
Subject RE: How to Run Auto Build
Date Thu, 04 Oct 2001 21:21:30 GMT
put your batch file in the root directory, e.g. c:\  (you might need to
change your batch a little) and enter the at command like this:
 
at 12:10 /interactive cmd /k c:\tmp.bat
 
This worked for me on both NT4 and 2000

-----Original Message-----
From: Barry Jia [mailto:bjia@brightspark.com]
Sent: Thursday, October 04, 2001 12:17 PM
To: 'ant-user@jakarta.apache.org'
Subject: RE: How to Run Auto Build



Simply,I create two files tmp.bat and tmp.xml as below. My platform is NT4
and NT2000. 
run tmp.bat, it can create a tmp directory and copy tmp.xml and tmp.bat to
tmp directory. OK. 
now I use at to run it 
   "at 12:10 tmp"( suppose it is 12:08 now) 
 use "at" to check the job queue, it is there. 
when it is 12:10, check it again , it sratus is Error. Nothing else tell me.

That means I can not use at to schedule it. 
Anybody encounter same proplem. 
----The test file---- 

tmp.bat, its contents is : 
    set ANT_HOME=.\jakarta-ant-1.4 
    %ANT_HOME%\bin\ant.bat -buildfile tmp.xml 
and xml file tmp.xml 
    <project name="SQA_AIS" default="dailybuild" basedir="."> 

      <property name="source" value= "tmp"/> 

     <target name="dailybuild" depends="vsscreate" >  
    
       <copy file="tmp.bat" todir="${source}\" overwrite="yes"/> 
       <copy file="tmp.xml" todir="${source}\" 
                  overwrite="yes"/> 
        
       
    </target> 
    <target name="vssdelete" > 
       
       <delete dir="${source}"/> 
   </target> 
   <target name="vsscreate" depends="vssdelete"> 
       <mkdir dir="${source}"/> 
   </target> 

   </project> 

-----Original Message----- 
From: T Master [ mailto:tmaster@iknowledgeinc.com
<mailto:tmaster@iknowledgeinc.com> ] 
Sent: Thursday, October 04, 2001 11:45 AM 
To: ant-user@jakarta.apache.org 
Subject: Re: How to Run Auto Build 



What's the error output if any? 



----- Original Message ----- 
From: "Barry Jia" <bjia@brightspark.com> 
To: <ant-user@jakarta.apache.org> 
Sent: Thursday, October 04, 2001 9:27 AM 
Subject: How to Run Auto Build 


> H i, All, 
> I wrote a batch file to run my build, I want to run it automatically at 
> middle night at WINNT, I use at command to schedule a task, it does not 
> work. The job is invoked but it looks not run my build, any idea ? 


Mime
View raw message