You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Lakshmi Prasad Thota <la...@glic.com> on 2007/05/29 22:10:40 UTC

generating log file in AIX

Hi All,

Can any one help me generating a log file for ant tasks in AIX?
When I run my ant scripts any  errors in execution should go to a log 
file.
Basically I'm using exec task in my build.xml

Thanks
Thota


-----------------------------------------
This message, and any attachments to it, may contain information
that is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination,
distribution, copying, or communication of this message is strictly
prohibited.  If you have received this message in error, please
notify the sender immediately by return e-mail and delete the
message and any attachments.  Thank you.

RE: generating log file in AIX

Posted by Lakshmi Prasad Thota <la...@glic.com>.
Thanks a lot  to  you all for  your hints.

I used these attributes output and error at each of my exec task. 
But when build failed it says '[exec] result: 166' at console and
writes 'Failed. Please check log file'  in the output log file (not in the 
error log file)
what log file is this? and where is it created?
The message is not clear about what was the actual error and why build 
failed.

Is there any thing else needs to be specified?

Thanks,
Thota




"Pankaj Arora01" <Pa...@infosys.com> 
05/30/2007 05:47 AM



To
"Ant Users List" <us...@ant.apache.org>, <la...@glic.com>
cc

Subject
RE: generating log file in AIX







If u r looking for log files for each of the exec task then you can use
smthing like following:

<exec dir="" 
        executable="fsum.exe" 
        output="a.log"
        error="b.log"
        failonerror="true">
</exec>


-----Original Message-----
From: prashanth.l@polaris.co.in [mailto:prashanth.l@polaris.co.in] 
Sent: Wednesday, May 30, 2007 3:13 PM
To: Ant Users List
Subject: RE: generating log file in AIX

ant -l <logname.log>

instead of just giving ant, use the above one. if you have build.xml in 
path.

Does that do what you're looking for?

Best regards,
Prashanth



"David Alves" <da...@brnphoenix.com> 
05/30/2007 02:37 AM
Please respond to
"Ant Users List" <us...@ant.apache.org>


To
"Ant Users List" <us...@ant.apache.org>
cc

Subject
RE: generating log file in AIX






Take a look at the <record> task at this address:
http://ant.apache.org/manual/CoreTasks/recorder.html

Does that do what you're looking for?

Regards,
David Alves

-----Original Message-----
From: Lakshmi Prasad Thota [mailto:lakshmi_thota@glic.com] 
Sent: Tuesday, May 29, 2007 1:11 PM
To: Ant Users List
Cc: user@ant.apache.org
Subject: generating log file in AIX

Hi All,

Can any one help me generating a log file for ant tasks in AIX?
When I run my ant scripts any  errors in execution should go to a log 
file.
Basically I'm using exec task in my build.xml

Thanks
Thota


-----------------------------------------
This message, and any attachments to it, may contain information
that is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination,
distribution, copying, or communication of this message is strictly
prohibited.  If you have received this message in error, please
notify the sender immediately by return e-mail and delete the
message and any attachments.  Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



This e-Mail may contain proprietary and confidential information and is
sent for the intended recipient(s) only.  If by an addressing or
transmission error this mail has been misdirected to you, you are
requested to delete this mail immediately. You are also hereby notified
that any use, any form of reproduction, dissemination, copying,
disclosure, modification, distribution and/or publication of this e-mail
message, contents or its attachment other than by its intended
recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended 
solely for the use of the addressee(s). If you are not the intended 
recipient, please notify the sender by e-mail and delete the original 
message. Further, you are not to copy, disclose, or distribute this e-mail 
or its contents to any other person and any such actions are unlawful. 
This e-mail may contain viruses. Infosys has taken every reasonable 
precaution to minimize this risk, but is not liable for any damage you may 
sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves 
the right to monitor and review the content of all messages sent to or 
from this e-mail address. Messages sent to or from this e-mail address may 
be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***


RE: generating log file in AIX

Posted by Pankaj Arora01 <Pa...@infosys.com>.
If u r looking for log files for each of the exec task then you can use
smthing like following:

<exec dir="" 
        executable="fsum.exe" 
        output="a.log"
        error="b.log"
        failonerror="true">
</exec>


-----Original Message-----
From: prashanth.l@polaris.co.in [mailto:prashanth.l@polaris.co.in] 
Sent: Wednesday, May 30, 2007 3:13 PM
To: Ant Users List
Subject: RE: generating log file in AIX

ant -l <logname.log>

instead of just giving ant, use the above one. if you have build.xml in 
path.

Does that do what you're looking for?

Best regards,
Prashanth



"David Alves" <da...@brnphoenix.com> 
05/30/2007 02:37 AM
Please respond to
"Ant Users List" <us...@ant.apache.org>


To
"Ant Users List" <us...@ant.apache.org>
cc

Subject
RE: generating log file in AIX






Take a look at the <record> task at this address:
http://ant.apache.org/manual/CoreTasks/recorder.html

Does that do what you're looking for?

Regards,
David Alves

-----Original Message-----
From: Lakshmi Prasad Thota [mailto:lakshmi_thota@glic.com] 
Sent: Tuesday, May 29, 2007 1:11 PM
To: Ant Users List
Cc: user@ant.apache.org
Subject: generating log file in AIX

Hi All,

Can any one help me generating a log file for ant tasks in AIX?
When I run my ant scripts any  errors in execution should go to a log 
file.
Basically I'm using exec task in my build.xml

Thanks
Thota


-----------------------------------------
This message, and any attachments to it, may contain information
that is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination,
distribution, copying, or communication of this message is strictly
prohibited.  If you have received this message in error, please
notify the sender immediately by return e-mail and delete the
message and any attachments.  Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



This e-Mail may contain proprietary and confidential information and is
sent for the intended recipient(s) only.  If by an addressing or
transmission error this mail has been misdirected to you, you are
requested to delete this mail immediately. You are also hereby notified
that any use, any form of reproduction, dissemination, copying,
disclosure, modification, distribution and/or publication of this e-mail
message, contents or its attachment other than by its intended
recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: generating log file in AIX

Posted by Saurabh Dave <sa...@patni.com>.
Use Record
<target..>
<record name="log.txt" action="start"/>
<task..>

</task>
<record name="log.txt" action="stop"/>
</target>

You can use separate record task for each target and can generate different
log files....

-----Original Message-----
From: prashanth.l@polaris.co.in [mailto:prashanth.l@polaris.co.in] 
Sent: Wednesday, May 30, 2007 3:13 PM
To: Ant Users List
Subject: RE: generating log file in AIX

ant -l <logname.log>

instead of just giving ant, use the above one. if you have build.xml in 
path.

Does that do what you're looking for?

Best regards,
Prashanth



"David Alves" <da...@brnphoenix.com> 
05/30/2007 02:37 AM
Please respond to
"Ant Users List" <us...@ant.apache.org>


To
"Ant Users List" <us...@ant.apache.org>
cc

Subject
RE: generating log file in AIX






Take a look at the <record> task at this address:
http://ant.apache.org/manual/CoreTasks/recorder.html

Does that do what you're looking for?

Regards,
David Alves

-----Original Message-----
From: Lakshmi Prasad Thota [mailto:lakshmi_thota@glic.com] 
Sent: Tuesday, May 29, 2007 1:11 PM
To: Ant Users List
Cc: user@ant.apache.org
Subject: generating log file in AIX

Hi All,

Can any one help me generating a log file for ant tasks in AIX?
When I run my ant scripts any  errors in execution should go to a log 
file.
Basically I'm using exec task in my build.xml

Thanks
Thota


-----------------------------------------
This message, and any attachments to it, may contain information
that is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination,
distribution, copying, or communication of this message is strictly
prohibited.  If you have received this message in error, please
notify the sender immediately by return e-mail and delete the
message and any attachments.  Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



This e-Mail may contain proprietary and confidential information and is sent
for the intended recipient(s) only.  If by an addressing or transmission
error this mail has been misdirected to you, you are requested to delete
this mail immediately. You are also hereby notified that any use, any form
of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its
attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: generating log file in AIX

Posted by pr...@polaris.co.in.
ant -l <logname.log>

instead of just giving ant, use the above one. if you have build.xml in 
path.

Does that do what you're looking for?

Best regards,
Prashanth



"David Alves" <da...@brnphoenix.com> 
05/30/2007 02:37 AM
Please respond to
"Ant Users List" <us...@ant.apache.org>


To
"Ant Users List" <us...@ant.apache.org>
cc

Subject
RE: generating log file in AIX






Take a look at the <record> task at this address:
http://ant.apache.org/manual/CoreTasks/recorder.html

Does that do what you're looking for?

Regards,
David Alves

-----Original Message-----
From: Lakshmi Prasad Thota [mailto:lakshmi_thota@glic.com] 
Sent: Tuesday, May 29, 2007 1:11 PM
To: Ant Users List
Cc: user@ant.apache.org
Subject: generating log file in AIX

Hi All,

Can any one help me generating a log file for ant tasks in AIX?
When I run my ant scripts any  errors in execution should go to a log 
file.
Basically I'm using exec task in my build.xml

Thanks
Thota


-----------------------------------------
This message, and any attachments to it, may contain information
that is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination,
distribution, copying, or communication of this message is strictly
prohibited.  If you have received this message in error, please
notify the sender immediately by return e-mail and delete the
message and any attachments.  Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in

RE: generating log file in AIX

Posted by David Alves <da...@brnphoenix.com>.
Take a look at the <record> task at this address:
http://ant.apache.org/manual/CoreTasks/recorder.html

Does that do what you're looking for?

Regards,
David Alves

-----Original Message-----
From: Lakshmi Prasad Thota [mailto:lakshmi_thota@glic.com] 
Sent: Tuesday, May 29, 2007 1:11 PM
To: Ant Users List
Cc: user@ant.apache.org
Subject: generating log file in AIX

Hi All,

Can any one help me generating a log file for ant tasks in AIX?
When I run my ant scripts any  errors in execution should go to a log 
file.
Basically I'm using exec task in my build.xml

Thanks
Thota


-----------------------------------------
This message, and any attachments to it, may contain information
that is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination,
distribution, copying, or communication of this message is strictly
prohibited.  If you have received this message in error, please
notify the sender immediately by return e-mail and delete the
message and any attachments.  Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org