Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13333
| Date | 2012-04-02 20:08 -0400 |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Parse a text file and match more than one line |
| References | <3e114ac2-7034-4167-8d67-ac869f6643f1@h20g2000yqd.googlegroups.com> |
| Message-ID | <4f7a3f85$0$293$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
On 4/2/2012 7:36 AM, mike wrote: > I am trying to figure out how to use regexp in java to match this > pattern: > > compile: > [javac] Compiling 933 source files to /tmp/gdduser/classes > > dft.properties: > > So I want to make sure I have: > > compile: > [javac] Compiling 933 source files to /tmp/gdduser/classes > <<nothing on this line>> > > How can I use java to apply it? It will be something like, when > "compile:" is found check that there is a [javac] Compiling .... on > next line . If there is then I need to check if there is an empty > line. If all conditions are fullfilled then I can I know that my build > step is completed and I have a full match. I fear that you are depending a lot on very specific ant output format. Maybe it would be better to build using the compiler API where you have full control over what is being compiled and what errors occur. Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Parse a text file and match more than one line mike <mikaelpetterson@hotmail.com> - 2012-04-02 04:36 -0700
Re: Parse a text file and match more than one line Knute Johnson <nospam@knutejohnson.com> - 2012-04-02 14:43 -0700
Re: Parse a text file and match more than one line Martin Gregorie <martin@address-in-sig.invalid> - 2012-04-02 22:09 +0000
Re: Parse a text file and match more than one line Jim Janney <jjanney@shell.xmission.com> - 2012-04-02 16:50 -0600
Re: Parse a text file and match more than one line Jim Janney <jjanney@shell.xmission.com> - 2012-04-02 20:57 -0600
Re: Parse a text file and match more than one line Roedy Green <see_website@mindprod.com.invalid> - 2012-04-02 15:53 -0700
Re: Parse a text file and match more than one line Arne Vajhøj <arne@vajhoej.dk> - 2012-04-02 20:08 -0400
csiph-web