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 20144] - Javadoc task running with cygwin
Date Thu, 22 May 2003 20:18:17 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=20144>.
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=20144

Javadoc task running with cygwin

levylambert@tiscali-dsl.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From levylambert@tiscali-dsl.de  2003-05-22 20:18 -------
cygwin is not really an operating system; rather it is an application suite 
running under Windows and providing some UNIX like functionality. AFAIK, Sun did 
not create any specific Java Development Kit or Java Runtime Environment for 
cygwin. See this link : http://www.inonit.com/cygwin/faq/ . Only Windows path 
names are supported by JDK and JRE tools under Windows or cygwin. Relative path 
names such as "src/org/apache/tools" are supported, but Java tools do not 
understand /cygdrive/c to mean c:\.
So I would resolve this as invalid, because the problem is not ant, but the 
absence of specific Java environment for cygwin.
The utility cygpath (used industrially in the ant script to support cygwin) can 
convert cygwin path names to Windows.
You can use the <exec/> task in ant to convert cygwin paths to Windows path, for 
instance like that :
<project name="cygpath">
<property name="some.cygwin.path" value="/cygdrive/h/somepath"/>
<exec executable="cygpath" outputproperty="windows.pathname">
   <arg value="--windows"/>
   <arg value="${some.cygwin.path}"/>
</exec>
<echo message="${windows.pathname}"/>
</project>
A request to create a task or to extend <pathconvert/> to support cygwin is 
thinkable, I am not sure though whether it would be OK.

Mime
View raw message