ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashutosh Sharma <ashutosh.sha...@oracle.com>
Subject Re: how to configure stderr and stdout in ant
Date Tue, 27 Jan 2004 07:09:07 GMT
Hi Jan,
thanks for ur quick reply. Here is that excerpt of my ant file:
 <target name="test_imp_functional_test"
          description="Executes class specified by TEST_CLASS_NAME 
property using configuration files for DATABASE">
    <java
      classname="${TEST_CLASS_NAME}"
      output="${build}/out.txt"
      logError
      
classpath="${build};${libraries};${build}/prototypes/imp;${build.test}" 
fork="yes">
      <jvmarg value="-DBC4JConfig=test/util/${DATABASE}.properties" />
      <jvmarg value="-DETSConfig=props/ETS.properties" />
      <jvmarg value="-DDBCFile=dbc/${DATABASE}.dbc" />
      <jvmarg value="-DScriptDir=test/scripts/" />
      <jvmarg value="-DDataDir=test/systemTest/data/" />
      <jvmarg value="-Djbo.debugoutput=silent" />
      <jvmarg value="-DENCOUNTER_DEPENDENCIES_ON=Y" />
      <jvmarg value="-Djbo.323.compatible=true" />
      <jvmarg value="-DJTFDBCFILE=dbc/${DATABASE}.dbc" />
      <jvmarg value="-DCLEAN_DATABASE=${CLEAN_DATABASE}" />
      <jvmarg value="-DEXTENSION_SUFFIX=${EXTENSION_SUFFIX}" />
      <jvmarg value="-DIMP_DEBUG=${IMP_DEBUG}" />

    </java>
  </target>

output wroks fine but logError and error are not allowed there-have any 
idea how to do this?


Jan.Materne@rzf.fin-nrw.de wrote:

><java> supports nested <jvmarg>s.
><java> has "output" and "error".
>
>But redirecting is IMHO not the right way. Better would be using a logging
>framework
>like Log4J [1].
>
>
>Jan
>
>
>[1] http://logging.apache.org/log4j/docs/index.html
>    Log4J Homepage
>[2] http://www.jguru.com/faq/Log4j
>    Log4J FAQ
>[3] http://www.jguru.com/faq/view.jsp?EID=1007093
>    FAQ: Why use Log4J
>[4] http://www.jguru.com/faq/view.jsp?EID=1007096
>    FAQ: "What are the features of log4j?"
>
>
>
>
>  
>
>>-----Original Message-----
>>From: Ashutosh Sharma [mailto:ashutosh.sharma@oracle.com]
>>Sent: Tuesday, January 27, 2004 7:10 AM
>>To: user@ant.apache.org
>>Subject: how to configure stderr and stdout in ant
>>
>>
>>Hi while running my ant target from one of the file-i'm 
>>setting the jvm 
>>args. This jvm args args prints the customized Debug messages 
>>which shud 
>>go to the stderr and the exceptions shud go to the 
>>stdout(console). But 
>>the debugging mechanism that we r using is too primitive-we 
>>just can't 
>>redirect it to some other source.
>>Could someone tell me how to configure ant to use some other file as 
>>stderr and stdout on linux?
>>
>>-- 
>>===================
>>With best regards :
>>
>>Ashutosh Sharma
>>Oracle India Development Center,
>>Prestige Blue Chip, #9, Hosur Road,
>>Bangalore 560029
>>Email: ashutosh.sharma@oracle.com
>>AOL IM :AshutoshOracle
>>Phone: 080-51083937
>>Locaton : 4A 181
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>    
>>
>
>  
>

-- 
===================
With best regards :

Ashutosh Sharma
Oracle India Development Center,
Prestige Blue Chip, #9, Hosur Road,
Bangalore 560029
Email: ashutosh.sharma@oracle.com
AOL IM :AshutoshOracle
Phone: 080-51083937
Locaton : 4A 181


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message