ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38138] New: - Command line parsing error when using -noclasspath and -nouserlib without using -lib
Date Thu, 05 Jan 2006 15:29:23 GMT
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


Mime
View raw message