Re: Distributed build fails with "Unparseable date" error

Julian Simpson <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
On 25 May 2011 16:07, Bánsághi, Csaba <[email protected]> wrote:

> I opened up CCDistVersion.java and scrolled to line 66:
>
>    /** The date format in the properties file, should match the ant format
> used for ${TODAY} ${TSTAMP} */
>        private static final DateFormat DF_ANT_TODAY_TSTAMP = new
> SimpleDateFormat("MMMM d yyyy hhmm");
>        private static Date buildDate;
>        public static Date getVersionBuildDate() {
>            if (buildDate == null) {
>                try {
>                    buildDate =
> DF_ANT_TODAY_TSTAMP.parse(PROPS_CCDIST_BUILD_VERSION.getProperty("ccdist.version.date"));
>  // <-- line 66
>                } catch (ParseException e) {
>                    LOG.error("Error parsing build date: "
>                        +
> PROPS_CCDIST_BUILD_VERSION.getProperty("ccdist.version.date"), e);
>                }
>            }
>            return buildDate;
>        }
>
>

If I were you I'd try and find out what populates PROPS_CCDIST_BUILD_VERSION.
 Sorry I can't be more helpful, I never used distributed CruiseControl.

J.


>
> Shouldn't the string "May 24 2011 1502" match the format "MMMM d yyyy
> hhmm"? What's going on here? Note that I'm using SVN for source control,
> which - as far as I can see - has no options to specify the date format in
> config.xml.
>
> Any help would be appreciated
> Csaba
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>



-- 
Julian Simpson
The Build Doctor Ltd.
http://www.build-doctor.com
[email protected]
(+44) 207 183 0323

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.