Short view into oata.Main [1]:
Main.java:0270: private void processArgs(String[] args) {
Main.java:0271: String searchForThis = null;
Main.java:0272: PrintStream logTo = null;
Main.java:0273:
Main.java:0276: for (int i = 0; i < args.length; i++) {
Main.java:0277: String arg = args[i];
Main.java:0298: } else if (arg.equals("-logfile") ||
arg.equals("-l")) {
Main.java:0299: try {
Main.java:0300: File logFile = new File(args[i + 1]);
Main.java:0301: i++;
Main.java:0302: logTo = new PrintStream(new
FileOutputStream(logFile));
Main.java:0303: isLogFileUsed = true;
Main.java:0304: } catch (IOException ioe) {
I dont see any possibility ...
Jan
[1]
http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/Main.java
>-----Ursprüngliche Nachricht-----
>Von: Remo Liechti [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 31. Oktober 2005 14:18
>An: Ant Users List
>Betreff: RE: -l logfile
>
>Yes, sure I can define a property with the value(path) of the logfile.
>But I thought they may be such a property so this would happen
>automaticly.
>
>Doesnt matter, i'll do it the "custom property" way...
>
>Remo
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Montag, 31. Oktober 2005 14:14
>> To: [email protected]
>> Subject: AW: -l logfile
>>
>> >It is possible to define a logfile(path) using the -l option.
>> >Is there a property that can be accessed out of the ant
>> script to read
>> >the path of the logfile?
>> >
>> >Remo
>>
>> I dont think so, but I havent looked at oata.launch.Launcher and
>> oata.Main.
>> The idea is to configure the registered BuildListeners with -l. Ant
>> itself shouldnt rely on any knowledge about the used listener.
>>
>> Again - you could set a property while starting Ant. Maybe via a
>> custom
>> wrapper:
>> call ant.bat -Dlogger=%ANT_LOGGER%
>-Dlogfile=%ANT_LOGFILE% -logger
>> %ANT_LOGGER% -logfile %ANT_LOGFILE% %*
>>
>>
>> Jan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED] For
>additional
>> commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> ____________________________________________________________
>> This message has been checked for all known viruses by Messagelabs.
>>
>
>____________________________________________________________
>This message may contain legally privileged or confidential
>information and is therefore addressed to the named persons only.
>The recipient should inform the sender and delete this
>message, if he/she is not named as addressee.
>The sender disclaims any and all liability for the integrity
>and punctuality of this message.
>The sender has activated an automatic virus scanning by
>Messagelabs, but does not guarantee the virus free
>transmission of this message.
>
>---------------------------------------------------------------------
>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]