You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/01/05 16:29:23 UTC

DO NOT REPLY [Bug 38138] New: - Command line parsing error when using -noclasspath and -nouserlib without using -lib

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38138>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38138

           Summary: Command line parsing error when using -noclasspath and -
                    nouserlib without using -lib
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: simon_c_wood@yahoo.co.uk
                CC: simon_c_wood@yahoo.co.uk


I am developing a build system where everything is self contained.  I am doing
it this way to avoid problems with different setups on different machines.  So,
any JARs I need I keep within the build system directory structure.  To help
enforce this I supplied both -noclasspath and -nouserlib on the command line.  I
did not specify -lib.  When I run the build I get the following error:
Unknown argument: -noclasspath
Note: -noclasspath was specified as the first command line parameter.
>From the documentation that I can find on the subject, my understanding of what
should happen in this case is as follows.  The only elements that should be in
the classpath are the items in ANT_HOME\lib.  Note: if I add -lib %ANT_HOME%\lib
along with the other two arguments everything works.  My belief was that the ant
lib directory would be included in the class regardless.  This does not appear
to be the case.
It is possible that this is correct behaviour.  In which case, I would suggest
that the documentation needs clarifying.

The following is the contents of the batch file I am using to run the build system.

@echo off

setlocal

set BUILD_HOME=%~dp0
set ANT_HOME=%BUILD_HOME%apache-ant-1.6.5
set PATH=%ANT_HOME%\bin;%PATH%

set WTK_HOME=%BUILD_HOME%\wtk

set ANT_ARGS=-noclasspath -nouserlib -lib %ANT_HOME%\lib

ant -buildfile=%BUILD_HOME%build.xml -Dbasedir=%CD% -Dwtk.home=%WTK_HOME% %*

endlocal


As I mentioned before, with the -lib parameter it works, without it causes the
Unknown argument error.

Regards

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 38138] - Command line parsing error when using -noclasspath and -nouserlib without using -lib

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38138>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38138


gudnabrsam@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From gudnabrsam@yahoo.com  2006-06-27 21:39 -------
Benjamin's diagnosis will stand.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 38138] - Command line parsing error when using -noclasspath and -nouserlib without using -lib

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38138>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38138





------- Additional Comments From BBurgess@tiaa-cref.org  2006-01-05 19:04 -------
I beleive this bug is a duplicate of 36171 which was fixed in HEAD about 3
months ago.

Checkout, compile, and use the latest version of
ant/src/main/org/apache/tools/ant/launch/Launcher.java from the repository. 
This should fix your problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 38138] - Command line parsing error when using -noclasspath and -nouserlib without using -lib

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38138>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38138


gudnabrsam@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From gudnabrsam@yahoo.com  2006-04-11 21:27 -------
ping?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org