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 10784] New: - The $ANT_LIB variable for Cygwin / ant-1.5
Date Sun, 14 Jul 2002 06:54:24 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10784>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10784

The $ANT_LIB variable for Cygwin / ant-1.5

           Summary: The $ANT_LIB variable for Cygwin / ant-1.5
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Wrapper scripts
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: y.inoue@computer.org


-----------
The facts
-----------

I entered 'ant -version' in the Cygwin console:
------
[Administrator@SEBASTIAN Administrator]$ ant -version
java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
Exception in thread "main" [Administrator@SEBASTIAN Administrator]$ 
------
CLASSPATH was not properly set in the $ANT_HOME/bin/ant.

-------------
Modification
-------------

before:
-------
# set ANT_LIB location
ANT_LIB=${ANT_HOME}/lib

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
   [ -n "$ANT_HOME" ] &&
     ANT_HOME=`cygpath --unix "$ANT_HOME"`
   [ -n "$JAVA_HOME" ] &&
     JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
   [ -n "$CLASSPATH" ] &&
     CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi

--------
after:
--------

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
   [ -n "$ANT_HOME" ] &&
     ANT_HOME=`cygpath --unix "$ANT_HOME"`
   [ -n "$JAVA_HOME" ] &&
     JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
   [ -n "$CLASSPATH" ] &&
     CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi

# set ANT_LIB location
ANT_LIB=${ANT_HOME}/lib

--------
result:
--------

[Administrator@SEBASTIAN Administrator]$ ant -version
Apache Ant version 1.5 compiled on July 9 2002
[Administrator@SEBASTIAN Administrator]$

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


Mime
View raw message