gavinpugh / vs-android

Integrated development of Android NDK C/C++ software with Microsoft Visual Studio.
Other
119 stars 34 forks source link

Ant Build with Paths with Spaces -- Solution inside #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set your ant build folder to something with a space in it
2. build your project
3. groan when ant dies

What is the expected output? What do you see instead?
Want your app deployed, instead it says build failed.

What version of the product are you using? On what operating system?
0.93, on win7

Please provide any additional information below.

in AntBuild.cs, line 108, add quotes like this:

[code]
                if ( AntBuildType.ToLower() == "debug" )
                {
                    OutputFile = "\"" + Path.GetFullPath(AntBuildPath + "\\" + BUILD_BIN_PATH + "\\" + ApkName + "-debug.apk") + "\"";
                }
                else
                {
                    OutputFile = "\"" + Path.GetFullPath(AntBuildPath + "\\" + BUILD_BIN_PATH + "\\" + ApkName + "-release.apk") + "\"";
                }
[/code]

Then everything is dandy and all paths can have spaces.

Original issue reported on code.google.com by nul...@gmail.com on 30 Jun 2012 at 1:31

GoogleCodeExporter commented 9 years ago
Apparently [code] doesn't work and I can't edit these things.

Original comment by nul...@gmail.com on 30 Jun 2012 at 1:32

GoogleCodeExporter commented 9 years ago

Original comment by gavin.dj.pugh on 5 Jul 2012 at 5:04

GoogleCodeExporter commented 9 years ago
Thanks for the fix. It's addressed in v0.94.

Original comment by gavin.dj.pugh on 25 Jul 2012 at 7:16