rhbz1110627 zanata init

https://bugzilla.redhat.com/show_bug.cgi?id=1110627
and https://bugzilla.redhat.com/show_bug.cgi?id=1038852

Depends on https://github.com/zanata/zanata-api/pull/15 and https://github.com/zanata/zanata-server/pull/520
Since we won't be including the update checker in (pending proper story and RFE), I will just comment out the usage of this class but leave it there for reference. 

----- Original Message -----

> From: "David Mason" <notifications@github.com>
> To: "zanata/zanata-client" <zanata-client@noreply.github.com>
> Cc: "Patrick Huang" <pahuang@redhat.com>
> Sent: Friday, July 18, 2014 9:56:38 AM
> Subject: Re: [zanata-client] rhbz1110627 zanata init (#27)

> In
> zanata-client-commands/src/main/java/org/zanata/client/commands/UpdateChecker.java:
> > +        this.console = console;
> > +        this.currentVersionNo = currentVersionNo;
> > +        this.updateMarker = updateMarker;
> > +    }
> > +
> > +    public boolean needToCheckUpdates(boolean interactiveMode) {
> > +        DateTime today = new DateTime();
> > +        try {
> > +            if (!updateMarker.exists()) {
> > +                createUpdateMarkerFile(updateMarker);
> > +                console.printfln(_("update.marker.created"),
> > updateMarker);
> > +                console.printfln(_("update.marker.hint"));
> > +                return true;
> > +            }
> > +            // read the content and see if we need to check
> > +            Properties props = loadFileToProperties(updateMarker);

> What happens if a user edits this file and makes it invalid? Will they get a
> sensible error message, or will their client spit out a stack trace? We do
> expect people to edit the file, so it is important to make sure it behaves
> in a way that will support that.

> —
> Reply to this email directly or view it on GitHub .