Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Ant and epsilon.loadModel
Ant and epsilon.loadModel [message #9653] Wed, 28 January 2009 21:42 Go to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Hi list,

I've been tried to play with build.xml ant and epsilon tasks, but I stuck
on a problem :


Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml

init:
[propertyfile] Updating property file:
/home/user/workspaces/symfonymodel1/mytestproj/properties

loadModel:
[epsilon.loadModel] java.lang.NullPointerException
[epsilon.loadModel] at
org.eclipse.epsilon.emc.emf.EmfUtil.collectDependencies(EmfU til.java:64)
[epsilon.loadModel] at
org.eclipse.epsilon.emc.emf.EmfModel.loadModel(EmfModel.java :157)
[epsilon.loadModel] at
org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:91)
[epsilon.loadModel] at
org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:85)
[epsilon.loadModel] at
org.eclipse.epsilon.workflow.tasks.LoadModelTask.executeImpl (LoadModelTask.java:49)
[epsilon.loadModel] at
org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
[epsilon.loadModel] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[epsilon.loadModel] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[epsilon.loadModel] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[epsilon.loadModel] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[epsilon.loadModel] at java.lang.reflect.Method.invoke(Method.java:597)
[epsilon.loadModel] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[epsilon.loadModel] at org.apache.tools.ant.Task.perform(Task.java:348)
[epsilon.loadModel] at
org.apache.tools.ant.Target.execute(Target.java:357)
[epsilon.loadModel] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[epsilon.loadModel] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[epsilon.loadModel] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
[epsilon.loadModel] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[epsilon.loadModel] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[epsilon.loadModel] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[epsilon.loadModel] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
[epsilon.loadModel] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
[epsilon.loadModel] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[epsilon.loadModel] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[epsilon.loadModel] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[epsilon.loadModel] at java.lang.reflect.Method.invoke(Method.java:597)
[epsilon.loadModel] at
org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[epsilon.loadModel] at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
[epsilon.loadModel] at java.lang.Thread.run(Thread.java:619)

BUILD FAILED
/home/user/workspaces/symfonymodel1/mytestproj/build.xml:36:
java.lang.NullPointerException

Total time: 99 milliseconds


Here is my build.xml :

<?xml version="1.0" encoding="UTF-8"?>
<!--
============================================================ ==========
28 janv. 2009 22:05:18


generatePhp5Model
Generate Php5 artefacts from a Php5 Model instance

user

============================================================ ========== -->
<project name="generatePhp5Model" default="default">
<description>
Generate Php5 artefacts from a Php5 Model instance
</description>

<!-- =================================
target: default
================================= -->
<target name="default" depends="init, loadModel" description="Generate
Php5 artefacts from a Php5 Model instance">
<epsilon.egl
src="platform:/php5.generator/src/php5/generator/generator.egl ">

</epsilon.egl>
</target>

<!-- - - - - - - - - - - - - - - - - -
target: init
- - - - - - - - - - - - - - - - - -->
<target name="init">
<propertyfile file="properties"></propertyfile>
</target>


<!-- - - - - - - - - - - - - - - - - -
target: loadModel
- - - - - - - - - - - - - - - - - -->
<target name="loadModel">
<epsilon.loadModel name="myModel" type="EMF">
<parameter name="modelFile" value="${inputModel}"/>
<parameter name="metamodelFile" value="http://php5"/>
<parameter name="isMetamodelFileBased" value="false"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>
</target>

</project>


I set the JRE as same as workspace as precised earlier in this list.


Thanks for any help !
Re: Ant and epsilon.loadModel [message #9676 is a reply to message #9653] Wed, 28 January 2009 21:51 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Stephane,

Off the top of my head, the following two lines:

<parameter name="modelFile" value="${inputModel}"/>
<parameter name="metamodelFile" value="http://php5"/>

should be instead:

<parameter name="modelFile" file="${inputModel}"/>
<parameter name="metamodelUri" value="http://php5"/>

Hope this helps. If not, I'll have a closer look at it tomorrow morning.

Cheers,
Dimitris

Stephane wrote:
> Hi list,
>
> I've been tried to play with build.xml ant and epsilon tasks, but I
> stuck on a problem :
>
>
> Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml
>
> init:
> [propertyfile] Updating property file:
> /home/user/workspaces/symfonymodel1/mytestproj/properties
>
> loadModel:
> [epsilon.loadModel] java.lang.NullPointerException
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfUtil.collectDependencies(EmfU til.java:64)
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.loadModel(EmfModel.java :157)
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:91)
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:85)
> [epsilon.loadModel] at
> org.eclipse.epsilon.workflow.tasks.LoadModelTask.executeImpl (LoadModelTask.java:49)
>
> [epsilon.loadModel] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
> [epsilon.loadModel] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [epsilon.loadModel] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [epsilon.loadModel] at java.lang.reflect.Method.invoke(Method.java:597)
> [epsilon.loadModel] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
> [epsilon.loadModel] at org.apache.tools.ant.Task.perform(Task.java:348)
> [epsilon.loadModel] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [epsilon.loadModel] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
> [epsilon.loadModel] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
>
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
>
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
>
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [epsilon.loadModel] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [epsilon.loadModel] at java.lang.reflect.Method.invoke(Method.java:597)
> [epsilon.loadModel] at
> org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> [epsilon.loadModel] at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
>
> [epsilon.loadModel] at java.lang.Thread.run(Thread.java:619)
>
> BUILD FAILED
> /home/user/workspaces/symfonymodel1/mytestproj/build.xml:36:
> java.lang.NullPointerException
>
> Total time: 99 milliseconds
>
>
> Here is my build.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> ============================================================ ==========
> 28 janv. 2009
> 22:05:18
> generatePhp5Model Generate Php5 artefacts from a Php5 Model
> instance
>
> user
> ============================================================ ========== -->
> <project name="generatePhp5Model" default="default">
> <description>
> Generate Php5 artefacts from a Php5 Model instance
> </description>
>
> <!-- ================================= target:
> default ================================= -->
> <target name="default" depends="init, loadModel"
> description="Generate Php5 artefacts from a Php5 Model instance">
> <epsilon.egl
> src="platform:/php5.generator/src/php5/generator/generator.egl ">
>
> </epsilon.egl>
> </target>
>
> <!-- - - - - - - - - - - - - - - - - - target:
> init - - - - - - - - - - - - - - - - - -->
> <target name="init">
> <propertyfile file="properties"></propertyfile>
> </target>
>
>
> <!-- - - - - - - - - - - - - - - - - - target:
> loadModel - - - - - - - - - - - - - - - - -
> -->
> <target name="loadModel">
> <epsilon.loadModel name="myModel" type="EMF">
> <parameter name="modelFile" value="${inputModel}"/>
> <parameter name="metamodelFile" value="http://php5"/>
> <parameter name="isMetamodelFileBased" value="false"/>
> <parameter name="readOnLoad" value="true"/>
> <parameter name="storeOnDisposal" value="true"/>
> </epsilon.loadModel>
> </target>
>
> </project>
>
>
> I set the JRE as same as workspace as precised earlier in this list.
>
>
> Thanks for any help !
>
Re: Ant and epsilon.loadModel [message #9697 is a reply to message #9676] Wed, 28 January 2009 22:38 Go to previous messageGo to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Thanks !

It's not fully working because I use the ${inputModel} and I don't know
why it doesn't work. Anyway I put model/php5.model but I still get error
about FileNotFound.

In fact, I have the .egl file in one project, and a build.xml in another
project.
The build.xml call the egl in the first project.
The problem here is that I don't know how to address a egl cross projects
(at dev time, what about when exported as plugin ?)

This is the error stacktrace :

Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml

init:
[propertyfile] Updating property file:
/home/user/workspaces/symfonymodel1/mytestproj/properties

loadModel:

default:
[../php5.generator/src/php5/generator/generator.egl] EXCEPTION:
java.io.FileNotFoundException:
/home/user/workspaces/symfonymodel1/mytestproj/\/../php5.gen erator/src/php5/generator/generator.egl
(Aucun fichier ou dossier de ce type)
[../php5.generator/src/php5/generator/generator.egl] at
java.io.FileInputStream.open(Native Method)
[../php5.generator/src/php5/generator/generator.egl] at
java.io.FileInputStream.<init>(FileInputStream.java:106)
[../php5.generator/src/php5/generator/generator.egl] at
java.io.FileReader.<init>(FileReader.java:55)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.epsilon.egl.EglModule.parse(EglModule.java:116)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:77)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[../php5.generator/src/php5/generator/generator.egl] at
java.lang.reflect.Method.invoke(Method.java:597)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Task.perform(Task.java:348)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Target.execute(Target.java:357)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[../php5.generator/src/php5/generator/generator.egl] at
java.lang.reflect.Method.invoke(Method.java:597)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
[../php5.generator/src/php5/generator/generator.egl] at
java.lang.Thread.run(Thread.java:619)

BUILD FAILED
/home/user/workspaces/symfonymodel1/mytestproj/build.xml:19:
java.io.FileNotFoundException:
/home/user/workspaces/symfonymodel1/mytestproj/\/../php5.gen erator/src/php5/generator/generator.egl
(Aucun fichier ou dossier de ce type)

Total time: 165 milliseconds



And the changes made to the build.xml :
<epsilon.egl src="../php5.generator/src/php5/generator/generator.egl">
instead of platform:/ which was not working too

<parameter name="modelFile" file="model/php5.model"/>
<parameter name="metamodelUri" value="http://php5"/>

Thanks !!!
Re: Ant and epsilon.loadModel [message #9710 is a reply to message #9697] Thu, 29 January 2009 09:48 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050200000902060808080606
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Stephane,

Having the EGL template and the ANT build file in two separate projects
should not cause any problems. To test this I've created two projects
XEGL1 and XEGL2 where the first contains the template and the second
contains the build file and it seems to work fine. I've attached the
projects. Could you please let me know if this minimal example runs OK
in your environment?

Cheers,
Dimitrios

Stephane wrote:
> Thanks !
>
> It's not fully working because I use the ${inputModel} and I don't know
> why it doesn't work. Anyway I put model/php5.model but I still get error
> about FileNotFound.
>
> In fact, I have the .egl file in one project, and a build.xml in another
> project.
> The build.xml call the egl in the first project.
> The problem here is that I don't know how to address a egl cross
> projects (at dev time, what about when exported as plugin ?)
>
> This is the error stacktrace :
> Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml
>
> init:
> [propertyfile] Updating property file:
> /home/user/workspaces/symfonymodel1/mytestproj/properties
>
> loadModel:
>
> default:
> [../php5.generator/src/php5/generator/generator.egl] EXCEPTION:
> java.io.FileNotFoundException:
> /home/user/workspaces/symfonymodel1/mytestproj/\/../php5.gen erator/src/php5/generator/generator.egl
> (Aucun fichier ou dossier de ce type)
> [../php5.generator/src/php5/generator/generator.egl] at
> java.io.FileInputStream.open(Native Method)
> [../php5.generator/src/php5/generator/generator.egl] at
> java.io.FileInputStream.<init>(FileInputStream.java:106)
> [../php5.generator/src/php5/generator/generator.egl] at
> java.io.FileReader.<init>(FileReader.java:55)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.epsilon.egl.EglModule.parse(EglModule.java:116)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:77)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> java.lang.reflect.Method.invoke(Method.java:597)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Task.perform(Task.java:348)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> java.lang.reflect.Method.invoke(Method.java:597)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> java.lang.Thread.run(Thread.java:619)
>
> BUILD FAILED
> /home/user/workspaces/symfonymodel1/mytestproj/build.xml:19:
> java.io.FileNotFoundException:
> /home/user/workspaces/symfonymodel1/mytestproj/\/../php5.gen erator/src/php5/generator/generator.egl
> (Aucun fichier ou dossier de ce type)
>
> Total time: 165 milliseconds
>
>
>
> And the changes made to the build.xml :
> <epsilon.egl src="../php5.generator/src/php5/generator/generator.egl">
> instead of platform:/ which was not working too
>
> <parameter name="modelFile" file="model/php5.model"/>
> <parameter name="metamodelUri" value="http://php5"/>
>
> Thanks !!!
>


--------------050200000902060808080606
Content-Type: application/x-zip-compressed;
name="xegl.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="xegl.zip"

UEsDBAoAAAAAACVNPToAAAAAAAAAAAAAAAAGAAAAWEVHTDIvUEsDBBQAAAAI AAtNPTqg5EBK
gAAAANEAAAAOAAAAWEVHTDIvLnByb2plY3Szsa/IzVEoSy0qzszPs1Uy1DNQ UkjNS85PycxL
t1UKDXHTtVCyt+Plsikoys9KTS5xSS1OLsosKAGqBopy2uQl5qbaRbi6+xjZ 6IPZIMHk/Nzc
1LwSOxt9GAskCjWhGMzRR+EllWbmpAQXpCZD5FC5eYklpUWpUG0IDtwIVCcB AFBLAwQUAAAA
CABHTT06huxtMZMAAAAqAQAADwAAAFhFR0wyL2J1aWxkLnhtbIWQsQ4CIQyG Z0nuHSo7R1wN
sBkXH8CVcPWC4YAAvr+HR1Cn+6e2+fL/bUVM4YmmwIQP/XJF0kVbT9VADuLI GMg9AYGuotOM
5QzVAv70hfYNGVMfXGx24PWCba11y4h+ypLWMptkY7HBr63qCQJjti74EWcH ORlJx5HfL9fb
iVePOq7ndZz/8C2Yb8mKDETw9iD1BlBLAwQKAAAAAAAUTT06AAAAAAAAAAAA AAAABgAAAFhF
R0wxL1BLAwQUAAAACAAGTT06LpyDC4AAAADRAAAADgAAAFhFR0wxLy5wcm9q ZWN0s7GvyM1R
KEstKs7Mz7NVMtQzUFJIzUvOT8nMS7dVCg1x07VQsrfj5bIpKMrPSk0ucUkt Ti7KLCgBqgaK
ctrkJeam2kW4uvsY2uiD2SDB5Pzc3NS8EjsbfRgLJAo1oRjM0UfhJZVm5qQE F6QmQ+RQuXmJ
JaVFqVBtCA7cCFQnAQBQSwMECgAAAAAAHE09Or11Q0obAAAAGwAAAA4AAABY RUdMMS9tYWlu
LmVnbFslDQoJJ0hlbGxvJy5wcmludGxuKCk7DQolXVBLAQIUAAoAAAAAACVN PToAAAAAAAAA
AAAAAAAGAAAAAAAAAAAAEAAAAAAAAABYRUdMMi9QSwECFAAUAAAACAALTT06 oORASoAAAADR
AAAADgAAAAAAAAABACAAAAAkAAAAWEVHTDIvLnByb2plY3RQSwECFAAUAAAA CABHTT06huxt
MZMAAAAqAQAADwAAAAAAAAABACAAAADQAAAAWEVHTDIvYnVpbGQueG1sUEsB AhQACgAAAAAA
FE09OgAAAAAAAAAAAAAAAAYAAAAAAAAAAAAQAAAAkAEAAFhFR0wxL1BLAQIU ABQAAAAIAAZN
PTounIMLgAAAANEAAAAOAAAAAAAAAAEAIAAAALQBAABYRUdMMS8ucHJvamVj dFBLAQIUAAoA
AAAAABxNPTq9dUNKGwAAABsAAAAOAAAAAAAAAAEAIAAAAGACAABYRUdMMS9t YWluLmVnbFBL
BQYAAAAABgAGAFkBAACnAgAAAAA=
--------------050200000902060808080606--
Re: Ant and epsilon.loadModel [message #10223 is a reply to message #9710] Thu, 29 January 2009 13:25 Go to previous messageGo to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Hi Dimitrios,
Thanks for your try, but I still get the same error, it's about filepath.


Buildfile: /home/user/workspaces/symfonymodel1/xegl1/build.xml

main:
[../xegl2/main.egl] EXCEPTION: java.io.FileNotFoundException:
/home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
fichier ou dossier de ce type)
[../xegl2/main.egl] at java.io.FileInputStream.open(Native Method)
[../xegl2/main.egl] at
java.io.FileInputStream.<init>(FileInputStream.java:106)
[../xegl2/main.egl] at java.io.FileReader.<init>(FileReader.java:55)
[../xegl2/main.egl] at
org.eclipse.epsilon.egl.EglModule.parse(EglModule.java:116)
[../xegl2/main.egl] at
org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:77)
[../xegl2/main.egl] at
org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
[../xegl2/main.egl] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[../xegl2/main.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[../xegl2/main.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[../xegl2/main.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[../xegl2/main.egl] at java.lang.reflect.Method.invoke(Method.java:597)
[../xegl2/main.egl] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[../xegl2/main.egl] at org.apache.tools.ant.Task.perform(Task.java:348)
[../xegl2/main.egl] at
org.apache.tools.ant.Target.execute(Target.java:357)
[../xegl2/main.egl] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[../xegl2/main.egl] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[../xegl2/main.egl] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
[../xegl2/main.egl] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[../xegl2/main.egl] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[../xegl2/main.egl] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[../xegl2/main.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
[../xegl2/main.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
[../xegl2/main.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[../xegl2/main.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[../xegl2/main.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[../xegl2/main.egl] at java.lang.reflect.Method.invoke(Method.java:597)
[../xegl2/main.egl] at
org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[../xegl2/main.egl] at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
[../xegl2/main.egl] at java.lang.Thread.run(Thread.java:619)

BUILD FAILED
/home/user/workspaces/symfonymodel1/xegl1/build.xml:3:
java.io.FileNotFoundException:
/home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
fichier ou dossier de ce type)

Total time: 134 milliseconds



/home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
fichier ou dossier de ce type)

I don't know why I get a \/ before the content of the src=""

<project default="main">
<target name="main" depends="" description="">
<epsilon.egl src='../xegl2/main.egl'></epsilon.egl>
</target>
</project>

I really don't know what's the point here.

Still searching, thanks !
Re: Ant and epsilon.loadModel [message #10250 is a reply to message #10223] Thu, 29 January 2009 13:39 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
From your paths it seems you are on a Linux box. I'll try to find a
Linux box myself and troubleshoot this.

Cheers,
Dimitris

Stephane wrote:
> Hi Dimitrios,
> Thanks for your try, but I still get the same error, it's about filepath.
>
>
> Buildfile: /home/user/workspaces/symfonymodel1/xegl1/build.xml
>
> main:
> [../xegl2/main.egl] EXCEPTION: java.io.FileNotFoundException:
> /home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
> fichier ou dossier de ce type)
> [../xegl2/main.egl] at java.io.FileInputStream.open(Native Method)
> [../xegl2/main.egl] at
> java.io.FileInputStream.<init>(FileInputStream.java:106)
> [../xegl2/main.egl] at java.io.FileReader.<init>(FileReader.java:55)
> [../xegl2/main.egl] at
> org.eclipse.epsilon.egl.EglModule.parse(EglModule.java:116)
> [../xegl2/main.egl] at
> org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:77)
>
> [../xegl2/main.egl] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
> [../xegl2/main.egl] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [../xegl2/main.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [../xegl2/main.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [../xegl2/main.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [../xegl2/main.egl] at java.lang.reflect.Method.invoke(Method.java:597)
> [../xegl2/main.egl] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
> [../xegl2/main.egl] at org.apache.tools.ant.Task.perform(Task.java:348)
> [../xegl2/main.egl] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [../xegl2/main.egl] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [../xegl2/main.egl] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
> [../xegl2/main.egl] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
> [../xegl2/main.egl] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
>
> [../xegl2/main.egl] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> [../xegl2/main.egl] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
> [../xegl2/main.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
>
> [../xegl2/main.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
>
> [../xegl2/main.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [../xegl2/main.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [../xegl2/main.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [../xegl2/main.egl] at java.lang.reflect.Method.invoke(Method.java:597)
> [../xegl2/main.egl] at
> org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> [../xegl2/main.egl] at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
>
> [../xegl2/main.egl] at java.lang.Thread.run(Thread.java:619)
>
> BUILD FAILED
> /home/user/workspaces/symfonymodel1/xegl1/build.xml:3:
> java.io.FileNotFoundException:
> /home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
> fichier ou dossier de ce type)
>
> Total time: 134 milliseconds
>
>
>
> /home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
> fichier ou dossier de ce type)
>
> I don't know why I get a \/ before the content of the src=""
>
> <project default="main">
> <target name="main" depends="" description="">
> <epsilon.egl src='../xegl2/main.egl'></epsilon.egl>
> </target>
> </project>
>
> I really don't know what's the point here.
>
> Still searching, thanks !
>
>
Re: Ant and epsilon.loadModel [message #10283 is a reply to message #10250] Thu, 29 January 2009 13:41 Go to previous messageGo to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Exact I'm on a virtual machine exactly, but doesn't matter here.
Ubuntu 8.10 with vmware fusion

Thanks !
Re: Ant and epsilon.loadModel [message #10316 is a reply to message #10283] Thu, 29 January 2009 15:49 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I've managed to reproduce the problem under Linux. Could you please open
a new bug about this for tracking purposes?

Cheers,
Dimitris

Stéphane wrote:
> Exact I'm on a virtual machine exactly, but doesn't matter here.
> Ubuntu 8.10 with vmware fusion
>
> Thanks !
>
Re: Ant and epsilon.loadModel [message #10348 is a reply to message #10316] Thu, 29 January 2009 16:12 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I (think I) have fixed it. If you use Epsilon from the SVN please update
to pick up the fix. If you have installed through the update site and do
not wish to switch to SVN you can patch your existing installation by
replacing org.eclipse.epsilon.workflow.jar under
plugins\org.eclipse.epsilon.workflow_xxx\lib with the newest version:

http://dev.eclipse.org/viewsvn/index.cgi/trunk/plugins/org.e clipse.epsilon.workflow/lib/org.eclipse.epsilon.workflow.jar ?revision=221&root=Modeling_EPSILON

Thanks for reporting this!

Cheers,
Dimitris

Dimitris Kolovos wrote:
> I've managed to reproduce the problem under Linux. Could you please open
> a new bug about this for tracking purposes?
>
> Cheers,
> Dimitris
>
> Stéphane wrote:
>> Exact I'm on a virtual machine exactly, but doesn't matter here.
>> Ubuntu 8.10 with vmware fusion
>>
>> Thanks !
>>
Re: Ant and epsilon.loadModel [message #10382 is a reply to message #10348] Thu, 29 January 2009 16:36 Go to previous messageGo to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Hi Dimitrios,

Thanks for your rapid update !!

It definitively works as I get new errors =D

BUILD FAILED
/home/user/workspaces/symfonymodel1/mytestproj/build.xml:19: Undefined
variable, type or model: 'Class'
(/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)

The generator.egl works fine when ran from Eclipse Run as EGL, but not as
within a Ant task.

Here is the build.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!--
============================================================ ==========
28 janv. 2009 22:05:18


generatePhp5Model
Generate Php5 artefacts from a Php5 Model instance

user

============================================================ ========== -->
<project name="generatePhp5Model" default="default">
<description>
Generate Php5 artefacts from a Php5 Model instance
</description>

<!-- =================================
target: default
================================= -->
<target name="default" depends="init, loadModel" description="Generate
Php5 artefacts from a Php5 Model instance">
<epsilon.egl src="../php5.generator/src/php5/generator/generator.egl">

</epsilon.egl>
</target>

<!-- - - - - - - - - - - - - - - - - -
target: init
- - - - - - - - - - - - - - - - - -->
<target name="init">
<propertyfile file="properties"></propertyfile>
</target>


<!-- - - - - - - - - - - - - - - - - -
target: loadModel
- - - - - - - - - - - - - - - - - -->
<target name="loadModel">
<epsilon.loadModel name="myModel" type="EMF">
<parameter name="modelFile" file="model/php5.model"/>
<parameter name="metamodelUri" value="http://php5"/>
<parameter name="isMetamodelFileBased" value="false"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>
</target>

</project>


And the launch configuration (using export as launch) :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration
type=" org.epsilon.egl.eclipse.dt.launching.EglLaunchConfigurationD elegate ">
<booleanAttribute key="appendToFile" value="false"/>
<intAttribute key="generateTo" value="1"/>
<listAttribute key="models">
<listEntry value="#&#10;#Wed Jan 28 19:54:02 CET
2009&#10;isMetamodelFileBased=false&#10;name=model&a mp;#10;readOnLoad=true&#10;storeOnDisposal=true&#10; aliases=&#10;metamodelUri=http\://php5&#10 ;type=BridgeEMF&#10;modelFile=/mytestproj/model/php5.mod el&#10;expand=false&#10;metamodelFile=&#10; "/>
</listAttribute>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<stringAttribute key="outputFilePath" value=""/>
<stringAttribute key="source"
value="/php5.generator/src/php5/generator/generator.egl"/>
</launchConfiguration>
Re: Ant and epsilon.loadModel [message #10413 is a reply to message #10382] Thu, 29 January 2009 16:43 Go to previous messageGo to next message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
I've tried with file based, but got the same error :

<target name="loadModel">
<epsilon.loadModel name="myModel" type="EMF">
<parameter name="modelFile" file="model/php5.model"/>
<parameter name="metamodelFile" file="../php5.model/model/php5.ecore"/>
<parameter name="isMetamodelFileBased" value="true"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>
</target>

Complete stack trace:


Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml

init:
[propertyfile] Updating property file:
/home/user/workspaces/symfonymodel1/mytestproj/properties

loadModel:

default:
[generator.egl] EXCEPTION: Undefined variable, type or model: 'Class'
(/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
[generator.egl] at
org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:191 )
[generator.egl] at
org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:1)
[generator.egl] at
org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:106)
[generator.egl] at
org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
[generator.egl] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[generator.egl] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[generator.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[generator.egl] at java.lang.reflect.Method.invoke(Method.java:597)
[generator.egl] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[generator.egl] at org.apache.tools.ant.Task.perform(Task.java:348)
[generator.egl] at org.apache.tools.ant.Target.execute(Target.java:357)
[generator.egl] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[generator.egl] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[generator.egl] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
[generator.egl] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[generator.egl] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[generator.egl] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[generator.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
[generator.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
[generator.egl] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[generator.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[generator.egl] at java.lang.reflect.Method.invoke(Method.java:597)
[generator.egl] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[generator.egl] at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
[generator.egl] at java.lang.Thread.run(Thread.java:619)
[generator.egl] Caused by: Undefined variable, type or model: 'Class'
(/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
[generator.egl] at
org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:86)
[generator.egl] at
org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:99)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
[generator.egl] at
org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:35)
[generator.egl] at
org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:122)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ForStatementExecutor.execute (ForStatementExecutor.java:44)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
[generator.egl] at
org.eclipse.epsilon.eol.execute.StatementBlockExecutor.execu te(StatementBlockExecutor.java:25)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
[generator.egl] at
org.eclipse.epsilon.eol.EolModule.execute(EolModule.java:57)
[generator.egl] at
org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:176 )
[generator.egl] ... 26 more

BUILD FAILED
/home/user/workspaces/symfonymodel1/mytestproj/build.xml:19: Undefined
variable, type or model: 'Class'
(/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)

Total time: 207 milliseconds



Thanks for any help !
Re: Ant and epsilon.loadModel [message #10446 is a reply to message #10413] Thu, 29 January 2009 17:13 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Do you reference the model in the epsilon.egl task?

e.g.

<epsilon.egl src="my.egl">
<model ref="myModel"/>
</epsilon.egl>

Cheers,
Dimitris

Stephane wrote:
> I've tried with file based, but got the same error :
>
> <target name="loadModel">
> <epsilon.loadModel name="myModel" type="EMF">
> <parameter name="modelFile" file="model/php5.model"/>
> <parameter name="metamodelFile"
> file="../php5.model/model/php5.ecore"/>
> <parameter name="isMetamodelFileBased" value="true"/>
> <parameter name="readOnLoad" value="true"/>
> <parameter name="storeOnDisposal" value="true"/>
> </epsilon.loadModel>
> </target>
>
> Complete stack trace:
>
>
> Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml
>
> init:
> [propertyfile] Updating property file:
> /home/user/workspaces/symfonymodel1/mytestproj/properties
>
> loadModel:
>
> default:
> [generator.egl] EXCEPTION: Undefined variable, type or model: 'Class'
> (/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
>
> [generator.egl] at
> org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:191 )
> [generator.egl] at
> org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:1)
> [generator.egl] at
> org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:106)
>
> [generator.egl] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
> [generator.egl] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [generator.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [generator.egl] at java.lang.reflect.Method.invoke(Method.java:597)
> [generator.egl] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
> [generator.egl] at org.apache.tools.ant.Task.perform(Task.java:348)
> [generator.egl] at org.apache.tools.ant.Target.execute(Target.java:357)
> [generator.egl] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [generator.egl] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
> [generator.egl] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
> [generator.egl] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
>
> [generator.egl] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> [generator.egl] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
> [generator.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
>
> [generator.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
>
> [generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [generator.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [generator.egl] at java.lang.reflect.Method.invoke(Method.java:597)
> [generator.egl] at
> org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> [generator.egl] at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
>
> [generator.egl] at java.lang.Thread.run(Thread.java:619)
> [generator.egl] Caused by: Undefined variable, type or model: 'Class'
> (/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:86)
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:99)
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:35)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:122)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ForStatementExecutor.execute (ForStatementExecutor.java:44)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.StatementBlockExecutor.execu te(StatementBlockExecutor.java:25)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.EolModule.execute(EolModule.java:57)
> [generator.egl] at
> org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:176 )
> [generator.egl] ... 26 more
>
> BUILD FAILED
> /home/user/workspaces/symfonymodel1/mytestproj/build.xml:19: Undefined
> variable, type or model: 'Class'
> (/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
>
>
> Total time: 207 milliseconds
>
>
>
> Thanks for any help !
>
Re: Ant and epsilon.loadModel [message #10480 is a reply to message #10446] Thu, 29 January 2009 17:19 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
It definitively works !!!!!
I'm on my way re rtfm ^^

Thank you !
Re: Ant and epsilon.loadModel [message #564252 is a reply to message #9653] Wed, 28 January 2009 21:51 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Stephane,

Off the top of my head, the following two lines:

<parameter name="modelFile" value="${inputModel}"/>
<parameter name="metamodelFile" value="http://php5"/>

should be instead:

<parameter name="modelFile" file="${inputModel}"/>
<parameter name="metamodelUri" value="http://php5"/>

Hope this helps. If not, I'll have a closer look at it tomorrow morning.

Cheers,
Dimitris

Stephane wrote:
> Hi list,
>
> I've been tried to play with build.xml ant and epsilon tasks, but I
> stuck on a problem :
>
>
> Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml
>
> init:
> [propertyfile] Updating property file:
> /home/user/workspaces/symfonymodel1/mytestproj/properties
>
> loadModel:
> [epsilon.loadModel] java.lang.NullPointerException
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfUtil.collectDependencies(EmfU til.java:64)
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.loadModel(EmfModel.java :157)
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:91)
> [epsilon.loadModel] at
> org.eclipse.epsilon.emc.emf.EmfModel.load(EmfModel.java:85)
> [epsilon.loadModel] at
> org.eclipse.epsilon.workflow.tasks.LoadModelTask.executeImpl (LoadModelTask.java:49)
>
> [epsilon.loadModel] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
> [epsilon.loadModel] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [epsilon.loadModel] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [epsilon.loadModel] at java.lang.reflect.Method.invoke(Method.java:597)
> [epsilon.loadModel] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
> [epsilon.loadModel] at org.apache.tools.ant.Task.perform(Task.java:348)
> [epsilon.loadModel] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [epsilon.loadModel] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
> [epsilon.loadModel] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
>
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> [epsilon.loadModel] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
>
> [epsilon.loadModel] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
>
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [epsilon.loadModel] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [epsilon.loadModel] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [epsilon.loadModel] at java.lang.reflect.Method.invoke(Method.java:597)
> [epsilon.loadModel] at
> org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> [epsilon.loadModel] at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
>
> [epsilon.loadModel] at java.lang.Thread.run(Thread.java:619)
>
> BUILD FAILED
> /home/user/workspaces/symfonymodel1/mytestproj/build.xml:36:
> java.lang.NullPointerException
>
> Total time: 99 milliseconds
>
>
> Here is my build.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> ============================================================ ==========
> 28 janv. 2009
> 22:05:18
> generatePhp5Model Generate Php5 artefacts from a Php5 Model
> instance
>
> user
> ============================================================ ========== -->
> <project name="generatePhp5Model" default="default">
> <description>
> Generate Php5 artefacts from a Php5 Model instance
> </description>
>
> <!-- ================================= target:
> default ================================= -->
> <target name="default" depends="init, loadModel"
> description="Generate Php5 artefacts from a Php5 Model instance">
> <epsilon.egl
> src="platform:/php5.generator/src/php5/generator/generator.egl ">
>
> </epsilon.egl>
> </target>
>
> <!-- - - - - - - - - - - - - - - - - - target:
> init - - - - - - - - - - - - - - - - - -->
> <target name="init">
> <propertyfile file="properties"></propertyfile>
> </target>
>
>
> <!-- - - - - - - - - - - - - - - - - - target:
> loadModel - - - - - - - - - - - - - - - - -
> -->
> <target name="loadModel">
> <epsilon.loadModel name="myModel" type="EMF">
> <parameter name="modelFile" value="${inputModel}"/>
> <parameter name="metamodelFile" value="http://php5"/>
> <parameter name="isMetamodelFileBased" value="false"/>
> <parameter name="readOnLoad" value="true"/>
> <parameter name="storeOnDisposal" value="true"/>
> </epsilon.loadModel>
> </target>
>
> </project>
>
>
> I set the JRE as same as workspace as precised earlier in this list.
>
>
> Thanks for any help !
>
Re: Ant and epsilon.loadModel [message #564273 is a reply to message #9676] Wed, 28 January 2009 22:38 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Thanks !

It's not fully working because I use the ${inputModel} and I don't know
why it doesn't work. Anyway I put model/php5.model but I still get error
about FileNotFound.

In fact, I have the .egl file in one project, and a build.xml in another
project.
The build.xml call the egl in the first project.
The problem here is that I don't know how to address a egl cross projects
(at dev time, what about when exported as plugin ?)

This is the error stacktrace :

Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml

init:
[propertyfile] Updating property file:
/home/user/workspaces/symfonymodel1/mytestproj/properties

loadModel:

default:
[../php5.generator/src/php5/generator/generator.egl] EXCEPTION:
java.io.FileNotFoundException:
/home/user/workspaces/symfonymodel1/mytestproj/\/../php5.gen erator/src/php5/generator/generator.egl
(Aucun fichier ou dossier de ce type)
[../php5.generator/src/php5/generator/generator.egl] at
java.io.FileInputStream.open(Native Method)
[../php5.generator/src/php5/generator/generator.egl] at
java.io.FileInputStream.<init>(FileInputStream.java:106)
[../php5.generator/src/php5/generator/generator.egl] at
java.io.FileReader.<init>(FileReader.java:55)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.epsilon.egl.EglModule.parse(EglModule.java:116)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:77)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[../php5.generator/src/php5/generator/generator.egl] at
java.lang.reflect.Method.invoke(Method.java:597)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Task.perform(Task.java:348)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Target.execute(Target.java:357)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[../php5.generator/src/php5/generator/generator.egl] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[../php5.generator/src/php5/generator/generator.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[../php5.generator/src/php5/generator/generator.egl] at
java.lang.reflect.Method.invoke(Method.java:597)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[../php5.generator/src/php5/generator/generator.egl] at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
[../php5.generator/src/php5/generator/generator.egl] at
java.lang.Thread.run(Thread.java:619)

BUILD FAILED
/home/user/workspaces/symfonymodel1/mytestproj/build.xml:19:
java.io.FileNotFoundException:
/home/user/workspaces/symfonymodel1/mytestproj/\/../php5.gen erator/src/php5/generator/generator.egl
(Aucun fichier ou dossier de ce type)

Total time: 165 milliseconds



And the changes made to the build.xml :
<epsilon.egl src="../php5.generator/src/php5/generator/generator.egl">
instead of platform:/ which was not working too

<parameter name="modelFile" file="model/php5.model"/>
<parameter name="metamodelUri" value="http://php5"/>

Thanks !!!
Re: Ant and epsilon.loadModel [message #564294 is a reply to message #9697] Thu, 29 January 2009 09:48 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050200000902060808080606
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Stephane,

Having the EGL template and the ANT build file in two separate projects
should not cause any problems. To test this I've created two projects
XEGL1 and XEGL2 where the first contains the template and the second
contains the build file and it seems to work fine. I've attached the
projects. Could you please let me know if this minimal example runs OK
in your environment?

Cheers,
Dimitrios

Stephane wrote:
> Thanks !
>
> It's not fully working because I use the ${inputModel} and I don't know
> why it doesn't work. Anyway I put model/php5.model but I still get error
> about FileNotFound.
>
> In fact, I have the .egl file in one project, and a build.xml in another
> project.
> The build.xml call the egl in the first project.
> The problem here is that I don't know how to address a egl cross
> projects (at dev time, what about when exported as plugin ?)
>
> This is the error stacktrace :
> Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml
>
> init:
> [propertyfile] Updating property file:
> /home/user/workspaces/symfonymodel1/mytestproj/properties
>
> loadModel:
>
> default:
> [../php5.generator/src/php5/generator/generator.egl] EXCEPTION:
> java.io.FileNotFoundException:
> /home/user/workspaces/symfonymodel1/mytestproj/\/../php5.gen erator/src/php5/generator/generator.egl
> (Aucun fichier ou dossier de ce type)
> [../php5.generator/src/php5/generator/generator.egl] at
> java.io.FileInputStream.open(Native Method)
> [../php5.generator/src/php5/generator/generator.egl] at
> java.io.FileInputStream.<init>(FileInputStream.java:106)
> [../php5.generator/src/php5/generator/generator.egl] at
> java.io.FileReader.<init>(FileReader.java:55)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.epsilon.egl.EglModule.parse(EglModule.java:116)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:77)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> java.lang.reflect.Method.invoke(Method.java:597)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Task.perform(Task.java:348)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> java.lang.reflect.Method.invoke(Method.java:597)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> [../php5.generator/src/php5/generator/generator.egl] at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
>
> [../php5.generator/src/php5/generator/generator.egl] at
> java.lang.Thread.run(Thread.java:619)
>
> BUILD FAILED
> /home/user/workspaces/symfonymodel1/mytestproj/build.xml:19:
> java.io.FileNotFoundException:
> /home/user/workspaces/symfonymodel1/mytestproj/\/../php5.gen erator/src/php5/generator/generator.egl
> (Aucun fichier ou dossier de ce type)
>
> Total time: 165 milliseconds
>
>
>
> And the changes made to the build.xml :
> <epsilon.egl src="../php5.generator/src/php5/generator/generator.egl">
> instead of platform:/ which was not working too
>
> <parameter name="modelFile" file="model/php5.model"/>
> <parameter name="metamodelUri" value="http://php5"/>
>
> Thanks !!!
>


--------------050200000902060808080606
Content-Type: application/x-zip-compressed;
name="xegl.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="xegl.zip"

UEsDBAoAAAAAACVNPToAAAAAAAAAAAAAAAAGAAAAWEVHTDIvUEsDBBQAAAAI AAtNPTqg5EBK
gAAAANEAAAAOAAAAWEVHTDIvLnByb2plY3Szsa/IzVEoSy0qzszPs1Uy1DNQ UkjNS85PycxL
t1UKDXHTtVCyt+Plsikoys9KTS5xSS1OLsosKAGqBopy2uQl5qbaRbi6+xjZ 6IPZIMHk/Nzc
1LwSOxt9GAskCjWhGMzRR+EllWbmpAQXpCZD5FC5eYklpUWpUG0IDtwIVCcB AFBLAwQUAAAA
CABHTT06huxtMZMAAAAqAQAADwAAAFhFR0wyL2J1aWxkLnhtbIWQsQ4CIQyG Z0nuHSo7R1wN
sBkXH8CVcPWC4YAAvr+HR1Cn+6e2+fL/bUVM4YmmwIQP/XJF0kVbT9VADuLI GMg9AYGuotOM
5QzVAv70hfYNGVMfXGx24PWCba11y4h+ypLWMptkY7HBr63qCQJjti74EWcH ORlJx5HfL9fb
iVePOq7ndZz/8C2Yb8mKDETw9iD1BlBLAwQKAAAAAAAUTT06AAAAAAAAAAAA AAAABgAAAFhF
R0wxL1BLAwQUAAAACAAGTT06LpyDC4AAAADRAAAADgAAAFhFR0wxLy5wcm9q ZWN0s7GvyM1R
KEstKs7Mz7NVMtQzUFJIzUvOT8nMS7dVCg1x07VQsrfj5bIpKMrPSk0ucUkt Ti7KLCgBqgaK
ctrkJeam2kW4uvsY2uiD2SDB5Pzc3NS8EjsbfRgLJAo1oRjM0UfhJZVm5qQE F6QmQ+RQuXmJ
JaVFqVBtCA7cCFQnAQBQSwMECgAAAAAAHE09Or11Q0obAAAAGwAAAA4AAABY RUdMMS9tYWlu
LmVnbFslDQoJJ0hlbGxvJy5wcmludGxuKCk7DQolXVBLAQIUAAoAAAAAACVN PToAAAAAAAAA
AAAAAAAGAAAAAAAAAAAAEAAAAAAAAABYRUdMMi9QSwECFAAUAAAACAALTT06 oORASoAAAADR
AAAADgAAAAAAAAABACAAAAAkAAAAWEVHTDIvLnByb2plY3RQSwECFAAUAAAA CABHTT06huxt
MZMAAAAqAQAADwAAAAAAAAABACAAAADQAAAAWEVHTDIvYnVpbGQueG1sUEsB AhQACgAAAAAA
FE09OgAAAAAAAAAAAAAAAAYAAAAAAAAAAAAQAAAAkAEAAFhFR0wxL1BLAQIU ABQAAAAIAAZN
PTounIMLgAAAANEAAAAOAAAAAAAAAAEAIAAAALQBAABYRUdMMS8ucHJvamVj dFBLAQIUAAoA
AAAAABxNPTq9dUNKGwAAABsAAAAOAAAAAAAAAAEAIAAAAGACAABYRUdMMS9t YWluLmVnbFBL
BQYAAAAABgAGAFkBAACnAgAAAAA=
--------------050200000902060808080606--
Re: Ant and epsilon.loadModel [message #564319 is a reply to message #9710] Thu, 29 January 2009 13:25 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Hi Dimitrios,
Thanks for your try, but I still get the same error, it's about filepath.


Buildfile: /home/user/workspaces/symfonymodel1/xegl1/build.xml

main:
[../xegl2/main.egl] EXCEPTION: java.io.FileNotFoundException:
/home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
fichier ou dossier de ce type)
[../xegl2/main.egl] at java.io.FileInputStream.open(Native Method)
[../xegl2/main.egl] at
java.io.FileInputStream.<init>(FileInputStream.java:106)
[../xegl2/main.egl] at java.io.FileReader.<init>(FileReader.java:55)
[../xegl2/main.egl] at
org.eclipse.epsilon.egl.EglModule.parse(EglModule.java:116)
[../xegl2/main.egl] at
org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:77)
[../xegl2/main.egl] at
org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
[../xegl2/main.egl] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[../xegl2/main.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[../xegl2/main.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[../xegl2/main.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[../xegl2/main.egl] at java.lang.reflect.Method.invoke(Method.java:597)
[../xegl2/main.egl] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[../xegl2/main.egl] at org.apache.tools.ant.Task.perform(Task.java:348)
[../xegl2/main.egl] at
org.apache.tools.ant.Target.execute(Target.java:357)
[../xegl2/main.egl] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[../xegl2/main.egl] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[../xegl2/main.egl] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
[../xegl2/main.egl] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[../xegl2/main.egl] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[../xegl2/main.egl] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[../xegl2/main.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
[../xegl2/main.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
[../xegl2/main.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[../xegl2/main.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[../xegl2/main.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[../xegl2/main.egl] at java.lang.reflect.Method.invoke(Method.java:597)
[../xegl2/main.egl] at
org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[../xegl2/main.egl] at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
[../xegl2/main.egl] at java.lang.Thread.run(Thread.java:619)

BUILD FAILED
/home/user/workspaces/symfonymodel1/xegl1/build.xml:3:
java.io.FileNotFoundException:
/home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
fichier ou dossier de ce type)

Total time: 134 milliseconds



/home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
fichier ou dossier de ce type)

I don't know why I get a \/ before the content of the src=""

<project default="main">
<target name="main" depends="" description="">
<epsilon.egl src='../xegl2/main.egl'></epsilon.egl>
</target>
</project>

I really don't know what's the point here.

Still searching, thanks !
Re: Ant and epsilon.loadModel [message #564333 is a reply to message #10223] Thu, 29 January 2009 13:39 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
From your paths it seems you are on a Linux box. I'll try to find a
Linux box myself and troubleshoot this.

Cheers,
Dimitris

Stephane wrote:
> Hi Dimitrios,
> Thanks for your try, but I still get the same error, it's about filepath.
>
>
> Buildfile: /home/user/workspaces/symfonymodel1/xegl1/build.xml
>
> main:
> [../xegl2/main.egl] EXCEPTION: java.io.FileNotFoundException:
> /home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
> fichier ou dossier de ce type)
> [../xegl2/main.egl] at java.io.FileInputStream.open(Native Method)
> [../xegl2/main.egl] at
> java.io.FileInputStream.<init>(FileInputStream.java:106)
> [../xegl2/main.egl] at java.io.FileReader.<init>(FileReader.java:55)
> [../xegl2/main.egl] at
> org.eclipse.epsilon.egl.EglModule.parse(EglModule.java:116)
> [../xegl2/main.egl] at
> org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:77)
>
> [../xegl2/main.egl] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
> [../xegl2/main.egl] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [../xegl2/main.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [../xegl2/main.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [../xegl2/main.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [../xegl2/main.egl] at java.lang.reflect.Method.invoke(Method.java:597)
> [../xegl2/main.egl] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
> [../xegl2/main.egl] at org.apache.tools.ant.Task.perform(Task.java:348)
> [../xegl2/main.egl] at
> org.apache.tools.ant.Target.execute(Target.java:357)
> [../xegl2/main.egl] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [../xegl2/main.egl] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
> [../xegl2/main.egl] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
> [../xegl2/main.egl] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
>
> [../xegl2/main.egl] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> [../xegl2/main.egl] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
> [../xegl2/main.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
>
> [../xegl2/main.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
>
> [../xegl2/main.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [../xegl2/main.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [../xegl2/main.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [../xegl2/main.egl] at java.lang.reflect.Method.invoke(Method.java:597)
> [../xegl2/main.egl] at
> org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> [../xegl2/main.egl] at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
>
> [../xegl2/main.egl] at java.lang.Thread.run(Thread.java:619)
>
> BUILD FAILED
> /home/user/workspaces/symfonymodel1/xegl1/build.xml:3:
> java.io.FileNotFoundException:
> /home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
> fichier ou dossier de ce type)
>
> Total time: 134 milliseconds
>
>
>
> /home/user/workspaces/symfonymodel1/xegl1/\/../xegl2/main.eg l (Aucun
> fichier ou dossier de ce type)
>
> I don't know why I get a \/ before the content of the src=""
>
> <project default="main">
> <target name="main" depends="" description="">
> <epsilon.egl src='../xegl2/main.egl'></epsilon.egl>
> </target>
> </project>
>
> I really don't know what's the point here.
>
> Still searching, thanks !
>
>
Re: Ant and epsilon.loadModel [message #564350 is a reply to message #10250] Thu, 29 January 2009 13:41 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Exact I'm on a virtual machine exactly, but doesn't matter here.
Ubuntu 8.10 with vmware fusion

Thanks !
Re: Ant and epsilon.loadModel [message #564371 is a reply to message #10283] Thu, 29 January 2009 15:49 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I've managed to reproduce the problem under Linux. Could you please open
a new bug about this for tracking purposes?

Cheers,
Dimitris

Stéphane wrote:
> Exact I'm on a virtual machine exactly, but doesn't matter here.
> Ubuntu 8.10 with vmware fusion
>
> Thanks !
>
Re: Ant and epsilon.loadModel [message #564388 is a reply to message #10316] Thu, 29 January 2009 16:12 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I (think I) have fixed it. If you use Epsilon from the SVN please update
to pick up the fix. If you have installed through the update site and do
not wish to switch to SVN you can patch your existing installation by
replacing org.eclipse.epsilon.workflow.jar under
plugins\org.eclipse.epsilon.workflow_xxx\lib with the newest version:

http://dev.eclipse.org/viewsvn/index.cgi/trunk/plugins/org.e clipse.epsilon.workflow/lib/org.eclipse.epsilon.workflow.jar ?revision=221&root=Modeling_EPSILON

Thanks for reporting this!

Cheers,
Dimitris

Dimitris Kolovos wrote:
> I've managed to reproduce the problem under Linux. Could you please open
> a new bug about this for tracking purposes?
>
> Cheers,
> Dimitris
>
> Stéphane wrote:
>> Exact I'm on a virtual machine exactly, but doesn't matter here.
>> Ubuntu 8.10 with vmware fusion
>>
>> Thanks !
>>
Re: Ant and epsilon.loadModel [message #564399 is a reply to message #10348] Thu, 29 January 2009 16:36 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
Hi Dimitrios,

Thanks for your rapid update !!

It definitively works as I get new errors =D

BUILD FAILED
/home/user/workspaces/symfonymodel1/mytestproj/build.xml:19: Undefined
variable, type or model: 'Class'
(/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)

The generator.egl works fine when ran from Eclipse Run as EGL, but not as
within a Ant task.

Here is the build.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!--
============================================================ ==========
28 janv. 2009 22:05:18


generatePhp5Model
Generate Php5 artefacts from a Php5 Model instance

user

============================================================ ========== -->
<project name="generatePhp5Model" default="default">
<description>
Generate Php5 artefacts from a Php5 Model instance
</description>

<!-- =================================
target: default
================================= -->
<target name="default" depends="init, loadModel" description="Generate
Php5 artefacts from a Php5 Model instance">
<epsilon.egl src="../php5.generator/src/php5/generator/generator.egl">

</epsilon.egl>
</target>

<!-- - - - - - - - - - - - - - - - - -
target: init
- - - - - - - - - - - - - - - - - -->
<target name="init">
<propertyfile file="properties"></propertyfile>
</target>


<!-- - - - - - - - - - - - - - - - - -
target: loadModel
- - - - - - - - - - - - - - - - - -->
<target name="loadModel">
<epsilon.loadModel name="myModel" type="EMF">
<parameter name="modelFile" file="model/php5.model"/>
<parameter name="metamodelUri" value="http://php5"/>
<parameter name="isMetamodelFileBased" value="false"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>
</target>

</project>


And the launch configuration (using export as launch) :

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration
type=" org.epsilon.egl.eclipse.dt.launching.EglLaunchConfigurationD elegate ">
<booleanAttribute key="appendToFile" value="false"/>
<intAttribute key="generateTo" value="1"/>
<listAttribute key="models">
<listEntry value="#&#10;#Wed Jan 28 19:54:02 CET
2009&#10;isMetamodelFileBased=false&#10;name=model&a mp;#10;readOnLoad=true&#10;storeOnDisposal=true&#10; aliases=&#10;metamodelUri=http\://php5&#10 ;type=BridgeEMF&#10;modelFile=/mytestproj/model/php5.mod el&#10;expand=false&#10;metamodelFile=&#10; "/>
</listAttribute>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
</listAttribute>
<stringAttribute key="outputFilePath" value=""/>
<stringAttribute key="source"
value="/php5.generator/src/php5/generator/generator.egl"/>
</launchConfiguration>
Re: Ant and epsilon.loadModel [message #564414 is a reply to message #10382] Thu, 29 January 2009 16:43 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
I've tried with file based, but got the same error :

<target name="loadModel">
<epsilon.loadModel name="myModel" type="EMF">
<parameter name="modelFile" file="model/php5.model"/>
<parameter name="metamodelFile" file="../php5.model/model/php5.ecore"/>
<parameter name="isMetamodelFileBased" value="true"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>
</target>

Complete stack trace:


Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml

init:
[propertyfile] Updating property file:
/home/user/workspaces/symfonymodel1/mytestproj/properties

loadModel:

default:
[generator.egl] EXCEPTION: Undefined variable, type or model: 'Class'
(/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
[generator.egl] at
org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:191 )
[generator.egl] at
org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:1)
[generator.egl] at
org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:106)
[generator.egl] at
org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
[generator.egl] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
[generator.egl] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[generator.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[generator.egl] at java.lang.reflect.Method.invoke(Method.java:597)
[generator.egl] at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
[generator.egl] at org.apache.tools.ant.Task.perform(Task.java:348)
[generator.egl] at org.apache.tools.ant.Target.execute(Target.java:357)
[generator.egl] at
org.apache.tools.ant.Target.performTasks(Target.java:385)
[generator.egl] at
org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
[generator.egl] at
org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
[generator.egl] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
[generator.egl] at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
[generator.egl] at
org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
[generator.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
[generator.egl] at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
[generator.egl] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[generator.egl] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
[generator.egl] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
[generator.egl] at java.lang.reflect.Method.invoke(Method.java:597)
[generator.egl] at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
[generator.egl] at
org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
[generator.egl] at java.lang.Thread.run(Thread.java:619)
[generator.egl] Caused by: Undefined variable, type or model: 'Class'
(/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
[generator.egl] at
org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:86)
[generator.egl] at
org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:99)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
[generator.egl] at
org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:35)
[generator.egl] at
org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:122)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ForStatementExecutor.execute (ForStatementExecutor.java:44)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
[generator.egl] at
org.eclipse.epsilon.eol.execute.StatementBlockExecutor.execu te(StatementBlockExecutor.java:25)
[generator.egl] at
org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
[generator.egl] at
org.eclipse.epsilon.eol.EolModule.execute(EolModule.java:57)
[generator.egl] at
org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:176 )
[generator.egl] ... 26 more

BUILD FAILED
/home/user/workspaces/symfonymodel1/mytestproj/build.xml:19: Undefined
variable, type or model: 'Class'
(/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)

Total time: 207 milliseconds



Thanks for any help !
Re: Ant and epsilon.loadModel [message #564430 is a reply to message #10413] Thu, 29 January 2009 17:13 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Do you reference the model in the epsilon.egl task?

e.g.

<epsilon.egl src="my.egl">
<model ref="myModel"/>
</epsilon.egl>

Cheers,
Dimitris

Stephane wrote:
> I've tried with file based, but got the same error :
>
> <target name="loadModel">
> <epsilon.loadModel name="myModel" type="EMF">
> <parameter name="modelFile" file="model/php5.model"/>
> <parameter name="metamodelFile"
> file="../php5.model/model/php5.ecore"/>
> <parameter name="isMetamodelFileBased" value="true"/>
> <parameter name="readOnLoad" value="true"/>
> <parameter name="storeOnDisposal" value="true"/>
> </epsilon.loadModel>
> </target>
>
> Complete stack trace:
>
>
> Buildfile: /home/user/workspaces/symfonymodel1/mytestproj/build.xml
>
> init:
> [propertyfile] Updating property file:
> /home/user/workspaces/symfonymodel1/mytestproj/properties
>
> loadModel:
>
> default:
> [generator.egl] EXCEPTION: Undefined variable, type or model: 'Class'
> (/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
>
> [generator.egl] at
> org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:191 )
> [generator.egl] at
> org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:1)
> [generator.egl] at
> org.eclipse.epsilon.workflow.tasks.ExecutableModuleTask.exec uteImpl(ExecutableModuleTask.java:106)
>
> [generator.egl] at
> org.eclipse.epsilon.workflow.tasks.EpsilonTask.execute(Epsil onTask.java:41)
> [generator.egl] at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:288)
> [generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [generator.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [generator.egl] at java.lang.reflect.Method.invoke(Method.java:597)
> [generator.egl] at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:105)
> [generator.egl] at org.apache.tools.ant.Task.perform(Task.java:348)
> [generator.egl] at org.apache.tools.ant.Target.execute(Target.java:357)
> [generator.egl] at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
> [generator.egl] at
> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1329)
> [generator.egl] at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298 )
> [generator.egl] at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:41)
>
> [generator.egl] at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> [generator.egl] at
> org.apache.tools.ant.Project.executeTargets(Project.java:118 1)
> [generator.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:623)
>
> [generator.egl] at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:456)
>
> [generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [generator.egl] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> [generator.egl] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> [generator.egl] at java.lang.reflect.Method.invoke(Method.java:597)
> [generator.egl] at
> org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> [generator.egl] at
> org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDe legate$1.run(AntLaunchDelegate.java:247)
>
> [generator.egl] at java.lang.Thread.run(Thread.java:619)
> [generator.egl] Caused by: Undefined variable, type or model: 'Class'
> (/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:86)
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.NameExecutor.execute(NameExe cutor.java:99)
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:35)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.PointExecutor.execute(PointE xecutor.java:122)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ForStatementExecutor.execute (ForStatementExecutor.java:44)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.StatementBlockExecutor.execu te(StatementBlockExecutor.java:25)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.execute.ExecutorFactory.executeAST(E xecutorFactory.java:184)
>
> [generator.egl] at
> org.eclipse.epsilon.eol.EolModule.execute(EolModule.java:57)
> [generator.egl] at
> org.eclipse.epsilon.egl.EglModule.execute(EglModule.java:176 )
> [generator.egl] ... 26 more
>
> BUILD FAILED
> /home/user/workspaces/symfonymodel1/mytestproj/build.xml:19: Undefined
> variable, type or model: 'Class'
> (/home/user/workspaces/symfonymodel1/php5.generator/src/php5 /generator/generator.egl@8:14)
>
>
> Total time: 207 milliseconds
>
>
>
> Thanks for any help !
>
Re: Ant and epsilon.loadModel [message #564453 is a reply to message #10446] Thu, 29 January 2009 17:19 Go to previous message
St is currently offline StFriend
Messages: 77
Registered: July 2009
Member
It definitively works !!!!!
I'm on my way re rtfm ^^

Thank you !
Previous Topic:Ant and epsilon.loadModel
Next Topic:EVL constraints over instance pairs/triples/etc
Goto Forum:
  


Current Time: Sat Nov 09 03:47:28 GMT 2024

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

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

Back to the top