|
|
|
|
|
|
|
Re: ant build [message #14922 is a reply to message #14902] |
Wed, 01 April 2009 13:48 |
Steffen Zschaler Messages: 266 Registered: July 2009 |
Senior Member |
|
|
Hi Dimitris,
Actually /foo/file.txt will always be an absolute path on a Unix-based
system. If you want a relative path you need to use foo/file.txt. I
think, Eclipse's standard path handling functions actually use this to
determine if a path is absolute or not, which is why I have found under
Windows you will sometimes have to use paths like /C:/... to make it
very clear to Eclipse that this is indeed an absolute path. Maybe at
some point someone will go in and make sure there is a platform-neutral,
consistently implemented way of identifying absolute vs. relative paths
in Java, but at this point everybody seems to be cooking their own.
Cheers,
Steffen
Dimitris Kolovos wrote:
> Hi Anne,
>
> Glad this helped :)
>
> The problem is that in Windows you can easily tell if a path is
> relative or not e.g. c:/file.txt is definitely absolute while
> /foo/file.txt is relative. In Unix-based systems however the latter
> can be both (thus the need for the file:/ prefix).
>
> Cheers,
> Dimitris
>
> Anne Keller wrote:
>> Solved. :)
>>
>> There was a misunderstanding. My line read:
>>
>> <parameter name="modelFile" file="../Models/some.uml"/>
>>
>> which didn't work. But
>> <parameter name="modelFile" value="file:/${basedir}/CardInsert.uml"/>
>>
>> works good (On Mac with and without the / ).
>>
>> Thanks,
>> Anne
>>
--
Dr. rer. nat. Steffen Zschaler
Senior Research Associate
Lancaster University
Lancaster, United Kingdom
Email szschaler@acm.org
Phone +44 (01524) 510354
WWW http://www.steffen-zschaler.de/
--
Consider submitting to MDPLE, the 1st International Workshop on
Model-Driven Product Line Engineering
http://www.feasiple.de/workshop_en.html
|
|
|
Re: ant build [message #14938 is a reply to message #14922] |
Thu, 02 April 2009 12:44 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Steffen,
I agree with everything you said :) I'll put this in my todo list for
further investigation.
Cheers,
Dimitris
Steffen Zschaler wrote:
> Hi Dimitris,
>
> Actually /foo/file.txt will always be an absolute path on a Unix-based
> system. If you want a relative path you need to use foo/file.txt. I
> think, Eclipse's standard path handling functions actually use this to
> determine if a path is absolute or not, which is why I have found under
> Windows you will sometimes have to use paths like /C:/... to make it
> very clear to Eclipse that this is indeed an absolute path. Maybe at
> some point someone will go in and make sure there is a platform-neutral,
> consistently implemented way of identifying absolute vs. relative paths
> in Java, but at this point everybody seems to be cooking their own.
>
> Cheers,
>
> Steffen
>
> Dimitris Kolovos wrote:
>> Hi Anne,
>>
>> Glad this helped :)
>>
>> The problem is that in Windows you can easily tell if a path is
>> relative or not e.g. c:/file.txt is definitely absolute while
>> /foo/file.txt is relative. In Unix-based systems however the latter
>> can be both (thus the need for the file:/ prefix).
>>
>> Cheers,
>> Dimitris
>>
>> Anne Keller wrote:
>>> Solved. :)
>>>
>>> There was a misunderstanding. My line read:
>>>
>>> <parameter name="modelFile" file="../Models/some.uml"/>
>>>
>>> which didn't work. But
>>> <parameter name="modelFile" value="file:/${basedir}/CardInsert.uml"/>
>>>
>>> works good (On Mac with and without the / ).
>>>
>>> Thanks,
>>> Anne
>>>
>
|
|
|
|
|
|
|
|
|
Re: ant build [message #566407 is a reply to message #14902] |
Wed, 01 April 2009 13:48 |
Steffen Zschaler Messages: 266 Registered: July 2009 |
Senior Member |
|
|
Hi Dimitris,
Actually /foo/file.txt will always be an absolute path on a Unix-based
system. If you want a relative path you need to use foo/file.txt. I
think, Eclipse's standard path handling functions actually use this to
determine if a path is absolute or not, which is why I have found under
Windows you will sometimes have to use paths like /C:/... to make it
very clear to Eclipse that this is indeed an absolute path. Maybe at
some point someone will go in and make sure there is a platform-neutral,
consistently implemented way of identifying absolute vs. relative paths
in Java, but at this point everybody seems to be cooking their own.
Cheers,
Steffen
Dimitris Kolovos wrote:
> Hi Anne,
>
> Glad this helped :)
>
> The problem is that in Windows you can easily tell if a path is
> relative or not e.g. c:/file.txt is definitely absolute while
> /foo/file.txt is relative. In Unix-based systems however the latter
> can be both (thus the need for the file:/ prefix).
>
> Cheers,
> Dimitris
>
> Anne Keller wrote:
>> Solved. :)
>>
>> There was a misunderstanding. My line read:
>>
>> <parameter name="modelFile" file="../Models/some.uml"/>
>>
>> which didn't work. But
>> <parameter name="modelFile" value="file:/${basedir}/CardInsert.uml"/>
>>
>> works good (On Mac with and without the / ).
>>
>> Thanks,
>> Anne
>>
--
Dr. rer. nat. Steffen Zschaler
Senior Research Associate
Lancaster University
Lancaster, United Kingdom
Email szschaler@acm.org
Phone +44 (01524) 510354
WWW http://www.steffen-zschaler.de/
--
Consider submitting to MDPLE, the 1st International Workshop on
Model-Driven Product Line Engineering
http://www.feasiple.de/workshop_en.html
|
|
|
Re: ant build [message #566428 is a reply to message #14922] |
Thu, 02 April 2009 12:44 |
Dimitrios Kolovos Messages: 1776 Registered: July 2009 |
Senior Member |
|
|
Hi Steffen,
I agree with everything you said :) I'll put this in my todo list for
further investigation.
Cheers,
Dimitris
Steffen Zschaler wrote:
> Hi Dimitris,
>
> Actually /foo/file.txt will always be an absolute path on a Unix-based
> system. If you want a relative path you need to use foo/file.txt. I
> think, Eclipse's standard path handling functions actually use this to
> determine if a path is absolute or not, which is why I have found under
> Windows you will sometimes have to use paths like /C:/... to make it
> very clear to Eclipse that this is indeed an absolute path. Maybe at
> some point someone will go in and make sure there is a platform-neutral,
> consistently implemented way of identifying absolute vs. relative paths
> in Java, but at this point everybody seems to be cooking their own.
>
> Cheers,
>
> Steffen
>
> Dimitris Kolovos wrote:
>> Hi Anne,
>>
>> Glad this helped :)
>>
>> The problem is that in Windows you can easily tell if a path is
>> relative or not e.g. c:/file.txt is definitely absolute while
>> /foo/file.txt is relative. In Unix-based systems however the latter
>> can be both (thus the need for the file:/ prefix).
>>
>> Cheers,
>> Dimitris
>>
>> Anne Keller wrote:
>>> Solved. :)
>>>
>>> There was a misunderstanding. My line read:
>>>
>>> <parameter name="modelFile" file="../Models/some.uml"/>
>>>
>>> which didn't work. But
>>> <parameter name="modelFile" value="file:/${basedir}/CardInsert.uml"/>
>>>
>>> works good (On Mac with and without the / ).
>>>
>>> Thanks,
>>> Anne
>>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03646 seconds