http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2522
*** shadow/2522 Mon Jul 9 15:03:13 2001
--- shadow/2522.tmp.16119 Mon Jul 9 15:03:13 2001
***************
*** 0 ****
--- 1,41 ----
+ +============================================================================+
+ | Failure to accept -P option in cab task ([cab] -P option requires a parame |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2522 Product: Ant |
+ | Status: NEW Version: Nightly build |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: Windows NT/2K |
+ | Priority: Other Component: Optional Tasks |
+ +----------------------------------------------------------------------------+
+ | Assigned To: [EMAIL PROTECTED] |
+ | Reported By: [EMAIL PROTECTED] |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Overview: When specifiying a -P option to the cab task using the options
+ attribute I receive the following error: [cab] -P option requires a parameter
+
+ The task looks like the following:
+
+ <cab cabfile="${webapp_dir}/communication.cab"
+ verbose="yes"
+ basedir="${basedir}"
+ options="-P classes\ -P tweb\"
+ includes="classes/com/nsaglobal/communication/client/*.class,
+ tweb/**/*.class"
+ />
+
+ I modified Execute.java to output the command to the console. The result is:
+
+ cabarc -r -p "-P classes/ -P tweb/" n
E:\development\nsaglobal\webapp\communica
+ tion.cab @C:\DOCUME~1\bwalker\LOCALS~1\Temp\ant-73378.tmp
+
+ If I execute this directly from the command prompt I will get the same error
+ message. However, if the quotes are removed from around the -P arguments the
+ command will execute successfully.
+
+ So, I modified Commandline to no longer quote arguments with a space in them.
+ Unfortunately, the same error is produced, [cab] -P option requires a
parameter.
+
+ Any help is appreciated.