Skip to main content



      Home
Home » Modeling » EMF » ant for JET?
ant for JET? [message #412205] Fri, 17 August 2007 08:06 Go to next message
Eclipse UserFriend
Originally posted by: thalya79.web.de

Hi!

Does anyone know how to start the eclipse jet engine with an ant-build-file?

I tried it with

<project name="generator-build.xml">

<target name="init">

<path id="system.classpath.id">
<pathelement location="classes"/>
<fileset dir="lib" includes="*.jar" />
</path>

<taskdef name="jet.compile" classname="org.eclipse.jet.ant.tasks.JETCompileTask">
<classpath refid="system.classpath.id" />
</taskdef>
</target>

<target name="compile" depends="init">

<jet.compile project="generator" destdir="jet2java">
<srcdir dir="./" includes="**/*.jet"/>
</jet.compile>

</target>
</project>

but that doesn't work.
I can handle it with the plugin using the "run-dialog" but I want to add more parameter and other build-files, too.

With the script above I get the following exception:

java.lang.IllegalStateException: Workspace is close

I have no idea what to do...

Thank you for any help!
Re: ant for JET? [message #412211 is a reply to message #412205] Fri, 17 August 2007 08:50 Go to previous message
Eclipse UserFriend
Yasmin,

Please use the M2T newsgroup to ask questions about org.eclipse.jet.
I've added it to the "to" list of the reply. Paul is on vacation
though. Are you running Ant as a headless Eclipse application as
opposed to a stand alone application? Your message implies you are
trying to run without having started a proper headless Eclipse
application...


Yasmin Stoesser wrote:
> Hi!
>
> Does anyone know how to start the eclipse jet engine with an ant-build-file?
>
> I tried it with
>
> <project name="generator-build.xml">
>
> <target name="init">
>
> <path id="system.classpath.id">
> <pathelement location="classes"/>
> <fileset dir="lib" includes="*.jar" />
> </path>
>
> <taskdef name="jet.compile" classname="org.eclipse.jet.ant.tasks.JETCompileTask">
> <classpath refid="system.classpath.id" />
> </taskdef>
> </target>
>
> <target name="compile" depends="init">
>
> <jet.compile project="generator" destdir="jet2java">
> <srcdir dir="./" includes="**/*.jet"/>
> </jet.compile>
>
> </target>
> </project>
>
> but that doesn't work.
> I can handle it with the plugin using the "run-dialog" but I want to add more parameter and other build-files, too.
>
> With the script above I get the following exception:
>
> java.lang.IllegalStateException: Workspace is close
>
> I have no idea what to do...
>
> Thank you for any help!
>
Previous Topic:how to select next element after deleting one
Next Topic:Custom CellEditor for Properties view
Goto Forum:
  


Current Time: Wed Nov 05 07:46:49 EST 2025

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

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

Back to the top