jiangtiandao / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

Build fails if there are spaces in the source path #234

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Here is a patch which will add the necessary quoting, as well as changing the 
basedir to '../' so 
builds directly form SVN will work properly:

Index: build.xml
===========================================================
========
--- build.xml   (revision 159)
+++ build.xml   (working copy)
@@ -21,8 +21,9 @@
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
 -->
-<project name="flexlib" basedir="/projects/misc/flexlib" default="lib">

+<project name="flexlib" basedir="../" default="lib">
+
    <!-- Define variables/paths used in this build script -->

    <!-- 
@@ -63,8 +64,8 @@
            <arg line="-o '${bin.dir}/${testRunner.name}.swf'" />

            <!-- Define source directories for "src" and "tests" -->
-           <arg line="-sp ${src.dir}" />
-           <arg line="-sp ${tests.dir}" />
+           <arg line="-sp '${src.dir}'" />
+           <arg line="-sp '${tests.dir}'" />

            <!-- Include the necessary framework libraries in the class path -->
            <arg line="-l '${flexsdk.lib.dir}'" />
@@ -105,7 +106,7 @@
            <arg line="-sp '${src.dir}'" />

            <!-- Specify the manifest.xml file and namespace to use -->
-           <arg line="-namespace http://flexlib.googlecode.com/ 
${src.dir}/manifest.xml" />
+           <arg line="-namespace http://flexlib.googlecode.com/ 
'${src.dir}/manifest.xml'" 
/>
            <arg line="-include-namespaces http://flexlib.googlecode.com/" />

            <!-- Exclude the core flex framework from the library -->
@@ -303,4 +304,4 @@
        </zip>
    </target>

-</project>
\ No newline at end of file
+</project>

Original issue reported on code.google.com by wole...@gmail.com on 8 Jul 2009 at 2:43