Log file creation
Hi all, I am trying to create a log file when a java compile fails, or when a deployment fails and so on. Can anybody help me how I should achieve this please. Thanks in advance, Jayaram Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email.
RE: Log file creation
redirect the output to a file: maven jar:compile debug.txt if you need to catch the stderr output as well: maven jar:compile debug.txt 21 regards, Wim P.S.: This is on Windows ofcourse -Original Message- From: GOKULAM Jayaram [mailto:[EMAIL PROTECTED] Sent: donderdag 24 maart 2005 11:07 To: Maven Users List Subject: Log file creation Hi all, I am trying to create a log file when a java compile fails, or when a deployment fails and so on. Can anybody help me how I should achieve this please. Thanks in advance, Jayaram Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liablility for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
RE: Log file creation
Thanks Deblauwe. But am calling java:compile from within maven.xml file. My maven.xml file looks like project default=build xmlns:j=jelly:core xmlns:maven=jelly:maven xmlns:ant=jelly:ant goal name=nec:go prereqs=scm:cvs-checkout-project,java:compile,jar:jar,war:war,rar:rar,e ar:ear,clover:report,dashboard:report /goal /project Which invokes the java:compile goal. Is there anyother way to do this please? Thanks in advance, Jayaram -Original Message- From: Deblauwe, Wim [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 3:40 PM To: 'Maven Users List' Subject: RE: Log file creation redirect the output to a file: maven jar:compile debug.txt if you need to catch the stderr output as well: maven jar:compile debug.txt 21 regards, Wim P.S.: This is on Windows ofcourse -Original Message- From: GOKULAM Jayaram [mailto:[EMAIL PROTECTED] Sent: donderdag 24 maart 2005 11:07 To: Maven Users List Subject: Log file creation Hi all, I am trying to create a log file when a java compile fails, or when a deployment fails and so on. Can anybody help me how I should achieve this please. Thanks in advance, Jayaram Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liablility for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log file creation
You can use the Ant record task but it'll log only the Ant tasks used by Maven (javac being one of them). Check the Ant manual for more details. -Vincent -Original Message- From: GOKULAM Jayaram [mailto:[EMAIL PROTECTED] Sent: jeudi 24 mars 2005 11:07 To: Maven Users List Subject: Log file creation Hi all, I am trying to create a log file when a java compile fails, or when a deployment fails and so on. Can anybody help me how I should achieve this please. Thanks in advance, Jayaram Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]