You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ashutosh Sharma <as...@oracle.com> on 2004/01/28 06:00:28 UTC

how to use error and logError within the java task?

Hi,
while running my ant target from one of the file-i'm setting the jvm args so that i can send my exceptions/errors on the console and the Debug messages in some file. In absence of this boht of them mixed with each other and u get a garbled output which needs to be seperated with each other.
I'm using the output="..."
which wroks fine but logError and error are not allowed there:


<java
      classname="${TEST_CLASS_NAME}"
      classpath="${build};${libraries};${build}/prototypes/imp;${build.test}" fork="yes">
      output="...."---->ok
      error="....."----> NOT ok
      logError="......"----->NOT ok
      <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>

-- 
===================
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