ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From relaxed...@optusnet.com.au
Subject Re: RE: Pathconvert question - SOLVED
Date Tue, 22 Jun 2004 01:48:00 GMT
Mani G. Iyer got up one morning and decided to ruin 
my day by writing:
> That still does not make it truly platform dependent!  
> mani

Well, that's true.. :-/
At least it is a lot easier to cover all bases.. 

Actually - the way to make it platform independent 
would have the implementation obey the 
documentation. The documentation says that I should 
not have to specify either targetos OR pathsep + 
dirsep - since pathsep and dirsep should default to the 
VM's File.pathSeparator and JVM File.separator.

Is this a bug or have I misinterpreted something? 

If so, I will happily raise a bug report.. 

Rob
:)

> 
> -----Original Message-----
> From: relaxedrob@optusnet.com.au [mailto:
relaxedrob@optusnet.com.au] 
> Sent: Monday, June 21, 2004 9:33 PM
> To: Ant Users List
> Subject: Re: Pathconvert question - SOLVED
> 
> Hi All!
> 
> Please ignore my question - I didn't realise that you 
can have more
> than
> one 
> pathconvert tasks for each OS:
>	<pathconvert targetos="windows" 
property="jinifiles"
> refid="jini.jarfiles.path"/>
>	<pathconvert targetos="unix" 
property="jinifiles"
> refid="jini.jarfiles.path"/>
> 
> It works wonderfully!
> 
> Rob
> :)
> 
> 
> 
> > Robert Mark Bram <relaxedrob@optusnet.com.
au> wrote:
> > 
> > Hi All!
> > 
> > In the docs for the pathconvert task, it says that 
targetos is
> > required 
> > *unless* "pathsep and/or dirsep are specified".
> > The docs for pathsep and dirsep say they are not 
required because
> > they 
> > default to current JVM File.pathSeparator and 
JVM File.separator 
> > respectively.
> > 
> > So I tried the following:
> > 
> > <path id="jini.jarfiles.path">
> > <filelist id="jini.jarfiles"
> > dir="${jiniHome}/lib"
> > files="jini-core.jar,
> > jini-ext.jar,
> > sun-util.jar" />
> > </path>
> > <pathconvert property="jinifiles" refid="jini.jarfiles.
path"/>
> > 
> > and got this error:
> > BUILD FAILED
> > E:\java\JiniHelloWorld\bin\build.xml:123: You 
must specify at least
> > one of 
> > targetOS, dirSep, or pathSep
> > 
> > I was hoping to avoid specifying targetos, pathsep 
and dirsep to
> keep
> > this 
> > script as portable as possible.. otherwise I will 
have to write
> > different 
> > versions of pathconvert for every OS I hope to 
support and *then*
> put
> > in 
> > some decision making structure in my targets that 
use the converted
> > path!
> > 
> > Any advice would be most welcome!
> > 
> > Rob
> > :)
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.
apache.org
> > For additional commands, e-mail: user-help@ant.
apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.
apache.org
> For additional commands, e-mail: user-help@ant.
apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.
apache.org
> For additional commands, e-mail: user-help@ant.
apache.org
> 


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


Mime
View raw message