Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » jet ant task
jet ant task [message #39256] Fri, 11 January 2008 13:57 Go to next message
Eclipse UserFriend
Originally posted by: ymo.noemail.com

Hi.

I am trying desperatly to find which jar contains the JETCompileTask &
JETTransformTask classes. My ant sctipt is pasted below. I could not find
a reference on how these classes are supposed to be done with a taskdef.

BTW I am running ant from within eclipse. I am not running this from
outside eclipse with the eclipse antrunner in headless way.


p.s.
is there a way in eclipse i could say show me which which jar contains a
particular class ? this would be really nice !


<target name="jet-init" depends="init">
<path id="Plug-in Dependencies.libraryclasspath">
<pathelement
location=" ${eclipse.home.dir}/plugins/org.eclipse.text_3.3.0.v20070606 -0010.jar "
/>
<pathelement
location=" .${eclipse.modeling.dir}/3rdp/eclipse/plugins/modeling/model ing-2008-01-10/eclipse/plugins/org.eclipse.jet_0.8.1.v200709 20.jar "
/>
<pathelement
location=" .${eclipse.modeling.dir}/3rdp/eclipse/plugins/modeling/model ing-2008-01-10/eclipse/plugins/org.eclipse.jet.core_1.0.1.v2 0070920.jar "
/>
<pathelement
location=" .${eclipse.modeling.dir}/3rdp/eclipse/plugins/modeling/model ing-2008-01-10/eclipse/plugins/org.eclipse.emf.common_2.3.0. v200709252135.jar "
/>
</path>

<path id="project.classpath">
<pathelement location="build" />
<pathelement location="build/" />
<path refid="Plug-in Dependencies.libraryclasspath" />
</path>

<taskdef name="jet.compile"
classname="org.eclipse.jet.ant.tasks.JETCompileTask">
<classpath refid="Plug-in Dependencies.libraryclasspath" />
</taskdef>
<taskdef name="jet.transform"
classname="org.eclipse.jet.ant.tasks.JETTransformTask">
<classpath refid="Plug-in Dependencies.libraryclasspath" />
</taskdef>
</target>

<target name="jet-build" description="" depends="jet-init">
<jet.transform transformid="test.jet"
resource="${path.src.viewer}/sample.xml" />
</target>
Re: jet ant task [message #39287 is a reply to message #39256] Fri, 11 January 2008 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ymo.noemail.com

Just for clarifications we want to ship the jet transformations runtime
only. This is not meant for crating new templates. Its just to run the
already compiled transformations. My understanding is that we need an
eclipse like environment even to run the jet transformations.
Re: jet ant task [message #39317 is a reply to message #39287] Fri, 11 January 2008 15:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ymo.noemail.com

Please disregard this.

I was supposed to update to the other thread i started.
Re: jet ant task [message #39872 is a reply to message #39256] Tue, 15 January 2008 14:47 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
jet.compile and jet.transform only run from the Eclipse ant runner:

eclipse -application org.eclipse.ant.core.AntRunner ...ant command line...

Also, because I had misunderstood PDE build, these tasks do generally not
work with PDE build, although I have a hack for jet.compile as a patch to:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=210447

Paul


"ymo" <ymo@noemail.com> wrote in message
news:a06d5bb24a551f7260bb32acef3c8ff3$1@www.eclipse.org...
> Hi.
>
> I am trying desperatly to find which jar contains the JETCompileTask &
> JETTransformTask classes. My ant sctipt is pasted below. I could not find
> a reference on how these classes are supposed to be done with a taskdef.
> BTW I am running ant from within eclipse. I am not running this from
> outside eclipse with the eclipse antrunner in headless way.
>
>
> p.s.
> is there a way in eclipse i could say show me which which jar contains a
> particular class ? this would be really nice !
>
>
> <target name="jet-init" depends="init">
> <path id="Plug-in Dependencies.libraryclasspath">
> <pathelement
> location=" ${eclipse.home.dir}/plugins/org.eclipse.text_3.3.0.v20070606 -0010.jar "
> />
> <pathelement
> location=" .${eclipse.modeling.dir}/3rdp/eclipse/plugins/modeling/model ing-2008-01-10/eclipse/plugins/org.eclipse.jet_0.8.1.v200709 20.jar "
> />
> <pathelement
> location=" .${eclipse.modeling.dir}/3rdp/eclipse/plugins/modeling/model ing-2008-01-10/eclipse/plugins/org.eclipse.jet.core_1.0.1.v2 0070920.jar "
> />
> <pathelement
> location=" .${eclipse.modeling.dir}/3rdp/eclipse/plugins/modeling/model ing-2008-01-10/eclipse/plugins/org.eclipse.emf.common_2.3.0. v200709252135.jar "
> />
> </path>
>
> <path id="project.classpath">
> <pathelement location="build" />
> <pathelement location="build/" />
> <path refid="Plug-in Dependencies.libraryclasspath" />
> </path>
>
> <taskdef name="jet.compile"
> classname="org.eclipse.jet.ant.tasks.JETCompileTask">
> <classpath refid="Plug-in Dependencies.libraryclasspath" />
> </taskdef>
> <taskdef name="jet.transform"
> classname="org.eclipse.jet.ant.tasks.JETTransformTask">
> <classpath refid="Plug-in Dependencies.libraryclasspath" />
> </taskdef>
> </target>
>
> <target name="jet-build" description="" depends="jet-init">
> <jet.transform transformid="test.jet"
> resource="${path.src.viewer}/sample.xml" />
> </target>
>
>
Re: jet ant task [message #40150 is a reply to message #39872] Wed, 16 January 2008 16:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ymo.noemail.com

Hi Paul.

What do you mean PDE build ? I have eclipse 3.3.1 augmented with the
latest modeling code (EMF.EMFT,GMF etc...) . From within eclipse i can
create an EMFT JET launch configration and use it to launch my
transformations.

However if i open the ant view and drop my ant files i cant execute them.
Is this normal ? Or ant files only run when started from outside eclipse
using the antrunner ?

It always complains about the ant tasks. BTW i figured the ant tasks are
in source format only there is no jar file containing these 2 tasks.
eclipse\plugins\org.eclipse.jet_0.8.1.v20070920.jar does not have these
tasks. They are available in source format only under
eclipse\plugins\org.eclipse.jet.source_0.8.1.v20070913\src\o rg.eclipse.jet_0.8.1.v20070920\antsrc\org\eclipse\jet\ant\ta sks


I am wondering why ?
Re: jet ant task [message #40268 is a reply to message #40150] Thu, 17 January 2008 14:12 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
PDE Build = Plug-in Development Environment Build. It is the ant-based
mechanism that most Eclipse projects use to do automated builds of their
components. If you're not using it don't worry. If your interested, take a
look at:

http://wiki.eclipse.org/index.php/PDEBuild

To host your Ant configuration is Eclipse, do the following:

1. From the Ant View, right click the target you want to execute, and click
Run As > Ant Build...
2. Click the JRE tab.
3. Click 'Run in the same JRE as the workspace'

You can also get this information by clicking Run > External Tools > Open
External Tools Dialog

In either case, it launches you Ant build using the Eclispe AntRunner, and
automatically makes the jet.compile and jet.transform tasks available.

Paul

"ymo" <ymo@noemail.com> wrote in message
news:663dbab91ef8725715b8c48a9827fdcc$1@www.eclipse.org...
> Hi Paul.
>
> What do you mean PDE build ? I have eclipse 3.3.1 augmented with the
> latest modeling code (EMF.EMFT,GMF etc...) . From within eclipse i can
> create an EMFT JET launch configration and use it to launch my
> transformations.
>
> However if i open the ant view and drop my ant files i cant execute them.
> Is this normal ? Or ant files only run when started from outside eclipse
> using the antrunner ?
>
> It always complains about the ant tasks. BTW i figured the ant tasks are
> in source format only there is no jar file containing these 2 tasks.
> eclipse\plugins\org.eclipse.jet_0.8.1.v20070920.jar does not have these
> tasks. They are available in source format only under
> eclipse\plugins\org.eclipse.jet.source_0.8.1.v20070913\src\o rg.eclipse.jet_0.8.1.v20070920\antsrc\org\eclipse\jet\ant\ta sks
>
>
> I am wondering why ?
>
>
>
Previous Topic:JET ws:file tag options for Japanese characters
Next Topic:[JET] How can I make scriptlet not occupy a new line in the generated file?
Goto Forum:
  


Current Time: Thu Oct 10 22:33:16 GMT 2024

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

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

Back to the top