ant build [message #14727] |
Wed, 01 April 2009 05:42  |
Eclipse User |
|
|
|
Hi,
I just got the newest Eclipse Ganymede Modeling Package and installed
Epsilon via the update manager with it. Now my ant build files don't seem
to work anymore. I get an elaborate error starting with
"loadModels:
[epsilon.loadModel] Internal error:
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource
'../Models/sca_v1_ClassDiagram.uml' does not exist."
for the first model it is supposed to load.
I never encountered this error with the previous versions. Did I maybe
forget to configure/think of something?
Thanks in advance for the help,
Anne
|
|
|
|
|
|
|
|
|
Re: ant build [message #14922 is a reply to message #14902] |
Wed, 01 April 2009 09:48   |
Eclipse User |
|
|
|
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 08:44  |
Eclipse User |
|
|
|
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 #566306 is a reply to message #14727] |
Wed, 01 April 2009 06:33  |
Eclipse User |
|
|
|
Hi Anne,
If you are using relative paths, you should use the file attribute
instead of the value one. For example
<parameter name="modelFile" *file*="../Models/some.uml"/>
will work while
<parameter name="modelFile" *value*="../Models/some.uml"/>
will not.
Cheers,
Dimitris
Anne Keller wrote:
> Hi,
>
> I just got the newest Eclipse Ganymede Modeling Package and installed
> Epsilon via the update manager with it. Now my ant build files don't
> seem to work anymore. I get an elaborate error starting with
> "loadModels:
> [epsilon.loadModel] Internal error:
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource
> '../Models/sca_v1_ClassDiagram.uml' does not exist."
>
> for the first model it is supposed to load.
>
> I never encountered this error with the previous versions. Did I maybe
> forget to configure/think of something?
>
> Thanks in advance for the help,
> Anne
>
|
|
|
Re: ant build [message #566331 is a reply to message #14760] |
Wed, 01 April 2009 07:39  |
Eclipse User |
|
|
|
Hi Dimitri,
I changed
<parameter name="modelFile" value="${basedir}/CardInsert.uml"/>
to
<parameter name="modelFile" file="${basedir}/CardInsert.uml"/>
but that doesn't change the error I get.
Something else I might be overlooking?
Thanks again and regards,
Anne
|
|
|
Re: ant build [message #566354 is a reply to message #14789] |
Wed, 01 April 2009 07:45  |
Eclipse User |
|
|
|
Hi Anne,
Could you please zip and send me your project so that I can have a look?
Cheers,
Dimitris
Anne Keller wrote:
> Hi Dimitri,
>
> I changed
> <parameter name="modelFile" value="${basedir}/CardInsert.uml"/>
>
> to
> <parameter name="modelFile" file="${basedir}/CardInsert.uml"/>
>
> but that doesn't change the error I get.
>
> Something else I might be overlooking?
>
> Thanks again and regards,
> Anne
>
|
|
|
Re: ant build [message #566366 is a reply to message #14817] |
Wed, 01 April 2009 09:13  |
Eclipse User |
|
|
|
Hi Anne,
Are you by any chance running Linux? If so, you may need to add a file:/
before your path to make sure that the load model task knows that it's
an absolute path. e.g.
<parameter name="modelFile" value="file:/${basedir}/CardInsert.uml"/>
Cheers,
Dimitris
Dimitris Kolovos wrote:
> Hi Anne,
>
> Could you please zip and send me your project so that I can have a look?
>
> Cheers,
> Dimitris
>
> Anne Keller wrote:
>> Hi Dimitri,
>>
>> I changed
>> <parameter name="modelFile" value="${basedir}/CardInsert.uml"/>
>>
>> to
>> <parameter name="modelFile" file="${basedir}/CardInsert.uml"/>
>>
>> but that doesn't change the error I get.
>>
>> Something else I might be overlooking?
>>
>> Thanks again and regards,
>> Anne
>>
|
|
|
Re: ant build [message #566383 is a reply to message #14847] |
Wed, 01 April 2009 09:37  |
Eclipse User |
|
|
|
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 #566399 is a reply to message #14874] |
Wed, 01 April 2009 09:40  |
Eclipse User |
|
|
|
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 09:48  |
Eclipse User |
|
|
|
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 08:44  |
Eclipse User |
|
|
|
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.02900 seconds