meaar
asked on
Jakarta Ant RegEx
Wasn't sure if this belonged here, but I figured Java experts would be the most equipped to help me... Hopefuly. :)
I basically just want to parse the below sample perforce changelist info and retrieve the date and timestamp so I can use that information. For example from the below sample changelist info I want to pull out, "2006/04/05 23:06:34" so I can use it when synching (getting source down from Perforce). I was thinking of having a seperate file (samplefile.properties) with something similar to this:
====================
samplefile.properties file
====================
timestamp=2006/04/05 23:06:34
=====================
Here's the sample changelist info:
======================
# A Perforce Change Specification.
#
# Change: The change number. 'new' on a new changelist. Read-only.
# Date: The date this specification was last modified. Read-only.
# Client: The client on which the changelist was created. Read-only.
# User: The user who created the changelist. Read-only.
# Status: Either 'pending' or 'submitted'. Read-only.
# Description: Comments about the changelist. Required.
# Jobs: What opened jobs are to be closed by this changelist.
# You may delete jobs from this list. (New changelists only.)
#
# EXTRAVIEW: To close a job, remove the '<cli-ignore>' keyword from the job comment (or remove the entire comment).
#
# Files: What opened files from the default changelist are to be added
# to this changelist. You may delete files from this list.
# (New changelists only.)
Change: 70131
Date: 2006/04/05 23:06:34
Client: mea-trunk
User: mea
Status: submitted
Description:
mea stuff...
Thanks in advance!
I basically just want to parse the below sample perforce changelist info and retrieve the date and timestamp so I can use that information. For example from the below sample changelist info I want to pull out, "2006/04/05 23:06:34" so I can use it when synching (getting source down from Perforce). I was thinking of having a seperate file (samplefile.properties) with something similar to this:
====================
samplefile.properties file
====================
timestamp=2006/04/05 23:06:34
=====================
Here's the sample changelist info:
======================
# A Perforce Change Specification.
#
# Change: The change number. 'new' on a new changelist. Read-only.
# Date: The date this specification was last modified. Read-only.
# Client: The client on which the changelist was created. Read-only.
# User: The user who created the changelist. Read-only.
# Status: Either 'pending' or 'submitted'. Read-only.
# Description: Comments about the changelist. Required.
# Jobs: What opened jobs are to be closed by this changelist.
# You may delete jobs from this list. (New changelists only.)
#
# EXTRAVIEW: To close a job, remove the '<cli-ignore>' keyword from the job comment (or remove the entire comment).
#
# Files: What opened files from the default changelist are to be added
# to this changelist. You may delete files from this list.
# (New changelists only.)
Change: 70131
Date: 2006/04/05 23:06:34
Client: mea-trunk
User: mea
Status: submitted
Description:
mea stuff...
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER