quick suggestion, put maven around a () block

(
  maven xxxxx
  set error code or call exit(erorr code) here
) 2>&1 | tee $logfile


check for error


On 8/10/05, Keisuke Matsubara <[EMAIL PROTECTED]> wrote:
> Thank you Edwin.
> 
> Now I use redirection with tee command like you. Because I want to
> record log and output to console. But when I use tee command , the
> script calling maven can take correct return code from maven. (It always
> take 0).
> 
> I have searched good way to record than redirection.
> 
> Thanks.
> 
> 
> Edwin Punzalan wrote:
> > Try using the OS ">" redirection.
> >
> > For example: maven compile > log.txt
> >
> >
> > Keisuke Matsubara wrote:
> >
> >
> >>Hi,
> >>
> >>If someone has some information ,can you give me a hint.
> >>
> >>Thanks
> >>
> >>-------- Original Message --------
> >>Subject: [M1] How to output java:compile log to file
> >>Date: Wed, 10 Aug 2005 19:31:41 +0900
> >>From: Keisuke Matsubara <[EMAIL PROTECTED]>
> >>Reply-To: Maven Users List <users@maven.apache.org>
> >>Organization: NEC Corporation
> >>To: users@maven.apache.org
> >>
> >>Hi,
> >>
> >>I am searching how to output compile log to some log file.
> >>Is there some solution for my probrem.
> >>
> >>I had tried editing log4j.properties (add original appender ,change
> >>setting of log4j.category.org.apache.commons.jelly.tags.ant) in
> >>maven.jar ,but compile logs had not been recorded.
> >>
> >>Does someone have any idea?
> >>
> >>maven 1.0.2
> >>maven-java-plugin-1.5
> >>
> >>Thanks and Regards,
> >>Keisuke
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to