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 6943] New: - Using Ant with Cygwin and Jikes seems to be broken
Date Thu, 07 Mar 2002 01:10:36 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=6943>.
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=6943

Using Ant with Cygwin and Jikes seems to be broken

           Summary: Using Ant with Cygwin and Jikes seems to be broken
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Wrapper scripts
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: richard.hensley@mckesson.com


I'm trying to use ant with jikes under CYGWIN. I went into the script and found 
the support, however I think the following chunk of script:

# supply JIKESPATH to Ant as jikes.class.path
if [ -n "$JIKESPATH" ] ; then
  if [ -n "$ANT_OPTS" ] ; then
    ANT_OPTS="$ANT_OPTS -Djikes.class.path=$JIKESPATH"
  else
    ANT_OPTS=-Djikes.class.path=$JIKESPATH
  fi
fi

should be replaced with

# supply JIKESPATH to Ant as jikes.class.path
if [ "$JIKESPATH" != "" ] ; then
  if $cygwin; then
      LOCALJIKESPATH=`cygpath --path --windows "$JIKESPATH"`
  fi
  if [ "$ANT_OPTS" != "" ] ; then
    ANT_OPTS="$ANT_OPTS -Djikes.class.path=$LOCALJIKESPATH"
  else
    ANT_OPTS=-Djikes.class.path=$LOCALJIKESPATH
  fi
fi

When I did this, everything started working as I expected. When this change was 
not in the script, I was getting a warning like c:\c\jdk1.3.1_01\bin is not 
valid. My JIKESPATH is set to /c/jdk1.3.1_01/bin so the message was because of 
a bad jikes.class.path property.

In my script, I also added a -Dbuild.compiler=jikes, but I think that many 
folks would not want that to be turned on.

--
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