=> blue
Regards, Gilbert
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 23, 2007 9:02 AM
To: user@ant.apache.org
Subject: AW: Using ant to parse text file
I played a little bit ...
import java.io.BufferedReader;
import j
}
public void setSection(String section) {
this.section = section;
}
}
Jan
>-Ursprüngliche Nachricht-
>Von: Kevin Jackson [mailto:[EMAIL PROTECTED]
>Gesendet: Freitag, 23. Februar 2007 03:31
>An: Ant Users List
>Betreff: Re: Using ant
Hi,
If you don't want to write a custom task in java, you could also try
and use a scripting language of your choice
http://ant.apache.org/manual/OptionalTasks/scriptdef.html
Kev
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Y [AG/1000]" <[EMAIL PROTECTED]>
To: Ant Users List
Sent: Thursday, February 22, 2007 9:58:05 AM
Subject: RE: Using ant to parse text file
I have looked at the property task as well - but I will not be able to
change the file format.
I used the
t back the line number - I could use the headfilter to get this
next line.
Thank you
Ajay Dharna
-Original Message-
From: Kevin Jackson [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 1:59 AM
To: Ant Users List
Subject: Re: Using ant to parse text file
> [Sample.txt]
&g
[Sample.txt]
Test1
Group=red
Test2
Group=blue
Test3
Group=green
Example:- If I was to provide the value "Test2", I would like the Ant to
search for "Test2" in the file, and return the value "blue". If I provide
the value - "Test3", it should return the value "green"
Please let me know if there
I dont know any way (without writing a custom task).
Jan
>-Ursprüngliche Nachricht-
>Von: DHARNA, AJAY [AG/1000] [mailto:[EMAIL PROTECTED]
>Gesendet: Donnerstag, 22. Februar 2007 07:04
>An: Ant Users List
>Betreff: Using ant to parse text file
>
>Hi all
>
&
Hi all
I am using Ant 1.6.5 - I would like to parse a text file that would contain
the following information:
[Sample.txt]
Test1
Group=red
Test2
Group=blue
Test3
Group=green
Example:- If I was to provide the value "Test2", I would like the Ant to
search for "Test2" in the file, and re