ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 2522] New: - Failure to accept -P option in cab task ([cab] -P option requires a parameter)
Date Mon, 09 Jul 2001 22:03:13 GMT
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: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: brent@walkertree.net                                         |
+ +----------------------------------------------------------------------------+
+ |          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.

Mime
View raw message