Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » ant build
ant build [message #14727] Wed, 01 April 2009 09:42 Go to next message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
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 #14760 is a reply to message #14727] Wed, 01 April 2009 10:33 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 #14789 is a reply to message #14760] Wed, 01 April 2009 11:39 Go to previous messageGo to next message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
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 #14817 is a reply to message #14789] Wed, 01 April 2009 11:45 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 #14847 is a reply to message #14817] Wed, 01 April 2009 13:13 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 #14874 is a reply to message #14847] Wed, 01 April 2009 13:37 Go to previous messageGo to next message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
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 #14902 is a reply to message #14874] Wed, 01 April 2009 13:40 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 #14922 is a reply to message #14902] Wed, 01 April 2009 13:48 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
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 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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 #566306 is a reply to message #14727] Wed, 01 April 2009 10:33 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 11:39 Go to previous message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
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 11:45 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 13:13 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 13:37 Go to previous message
Anne is currently offline AnneFriend
Messages: 37
Registered: July 2009
Member
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 13:40 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 Go to previous message
Steffen Zschaler is currently offline Steffen ZschalerFriend
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 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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
>>>
>
Previous Topic:ant build
Next Topic:Problems View not Showing Markers from EVL
Goto Forum:
  


Current Time: Thu Mar 28 15:54:38 GMT 2024

Powered by FUDForum. Page generated in 0.05854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top