Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
107d2174
Commit
107d2174
authored
Jul 29, 2012
by
halatmit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generate "none" as the buld version in the case where git describe fails
parent
cf5332f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
appinventor/common/GitBuildId.template
appinventor/common/GitBuildId.template
+7
-4
No files found.
appinventor/common/GitBuildId.template
View file @
107d2174
...
@@ -18,9 +18,12 @@ public final class GitBuildId {
...
@@ -18,9 +18,12 @@ public final class GitBuildId {
public
static
String
getVersion
()
{
public
static
String
getVersion
()
{
String
version
=
GIT_BUILD_VERSION
;
String
version
=
GIT_BUILD_VERSION
;
//
We
can
't use isEmpty() here because we want this to run
//
This
catches
the
error
returned
by
git
describe
// in jdk 1.5 for the Blocks Editor
//
in
the
case
where
there
is
no
description
.
In
general
if (version.equals("")) {
//
the
version
needs
to
be
a
string
that
can
be
//
embedded
into
a
legal
file
name
.
If
it
can
't, then the
// blocks editor won'
t
load
.
if
(
version
.
contains
(
" "
))
{
return
"none"
;
return
"none"
;
}
else
{
}
else
{
return
version
;
return
version
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment