Hi All,

I wrote the following simple code to map a NT drive to some path:

        <target name="map_drive" depends="" description="-->
description">
                <exec executable="cmd.exe">
                        <arg value="NET USE N: \\cm-web01"/>
                </exec>
        </target>

And once I execute it, I get the following errors:

        "The ' characters around the executable and arguments are not
part of the command."

The file attached include the full error log.

Please advice.
Thanks,
Yona.


Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: C:\Documents and Settings\yonae\workspace\web_build\test.xml
parsing buildfile C:\Documents and Settings\yonae\workspace\web_build\test.xml 
with URI = 
file:/C:/Documents%20and%20Settings/yonae/workspace/web_build/test.xml
Project base dir set to: C:\Documents and Settings\yonae\workspace\web_build
Build sequence for target(s) `map_drive' is [map_drive]
Complete build sequence is [map_drive, full_build, ]
map_drive:
[antlib:org.apache.tools.ant] Could not load definitions from resource 
org/apache/tools/ant/antlib.xml. It could not be found.
     [exec] Current OS is Windows XP
     [exec] Executing 'cmd.exe' with arguments:
     [exec] 'NET USE N: \\cm-web01'
     [exec] 
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
     [exec] Microsoft Windows XP [Version 5.1.2600]
     [exec] (C) Copyright 1985-2001 Microsoft Corp.
     [exec] C:\Documents and Settings\yonae\workspace\web_build>
BUILD SUCCESSFUL
Total time: 250 milliseconds
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to