Make my addition use correct whitespace

The downside of using <http://editorconfig.org/> is that I sometimes
don't look at what style is being used in a file, especially if the rest
of the project is using something else (somewhat) consistently.  Sorry
about that.  Recommend editorconfig though, especially for its ability
to automatically trim trailing whitespace, which is something good to do
in DVCS environment like git anyway.  Especially given that some editors
don't have a convenient end-user way to do it, and for others the way
looks something like…

    autocmd BufWritePre *.py :%s/\s\+$//e

D'oh.
This commit is contained in:
T. Joseph Carter 2017-11-18 11:41:14 -08:00
parent 6e426d0b9c
commit 78fd52a53c
1 changed files with 26 additions and 26 deletions

View File

@ -10,34 +10,34 @@ mainClassName = 'com.webcodepro.applecommander.ui.AppleCommander'
// Configure build for each supported platform
ext {
os = System.getProperty("os.name").toLowerCase()
arch = System.getProperty("os.arch").toLowerCase()
os = System.getProperty("os.name").toLowerCase()
arch = System.getProperty("os.arch").toLowerCase()
// First let's sanitize arch
if (arch.contains("amd64")) {
swtArch = "x86_64"
} else if (arch.matches("i[3-6]86]")) {
swtArch = "x86"
} else {
swtArch = arch
}
// First let's sanitize arch
if (arch.contains("amd64")) {
swtArch = "x86_64"
} else if (arch.matches("i[3-6]86]")) {
swtArch = "x86"
} else {
swtArch = arch
}
if (os.contains("windows")) {
swtGUI = "win32.win32.$swtArch"
} else if (os.contains("mac os x")) {
swtGUI = "cocoa.macosx.$swtArch"
} else if (os.contains("linux")) {
swtGUI = "gtk.linux.$swtArch"
} else {
throw new GradleException("Don't know how to build for this platform:\n" +
" os = \"$os\"\n" +
" arch = \"$arch\"\n\n" +
"Edit build.gradle to add support")
/* At least you'll need to define swtGUI for your os and
* probably your arch too. Most SWT backend GUI descriptions
* take the form of <widgetset>.<os-tag>.<arch>.
*/
}
if (os.contains("windows")) {
swtGUI = "win32.win32.$swtArch"
} else if (os.contains("mac os x")) {
swtGUI = "cocoa.macosx.$swtArch"
} else if (os.contains("linux")) {
swtGUI = "gtk.linux.$swtArch"
} else {
throw new GradleException("Don't know how to build for this platform:\n" +
" os = \"$os\"\n" +
" arch = \"$arch\"\n\n" +
"Edit build.gradle to add support")
/* At least you'll need to define swtGUI for your os and
* probably your arch too. Most SWT backend GUI descriptions
* take the form of <widgetset>.<os-tag>.<arch>.
*/
}
}