Howto invoke an antfile through transformation? [message #31346] |
Mon, 20 August 2007 11:12 |
Eclipse User |
|
|
|
Originally posted by: Thalya79.web.de
Hello everyone!
Is it possible to pass any arguments to the transformation to invoke any
ant build-files during/after transformation?
I generate several files which after generating are used by an antfile. It
would be great, if I could invoke the ant automatically within the
jet-transformation.
I hope anyone can understand what I mean. For a java-project for example
it is possible to define arguments in the run configurations - I hope
something like that ist also possible for jet!
Thank you for any help.
|
|
|
|
Re: Howto invoke an antfile through transformation? [message #31711 is a reply to message #31438] |
Tue, 28 August 2007 09:18 |
Eclipse User |
|
|
|
Originally posted by: Thalya79.web.de
Thank you, Paul.
My first idea was to write a ant-file which would start both ant-tasks -
for the jet-transformation and for the other.
But I wasn't able to get the jet-ant-task running, so I tried to do it
another way.
But I guess, I should try it the other way again.
Paul Elder wrote:
> Yasmin:
> There isn't a JET tag to invoke ant, but it would certainly be possible to
> write one. If you decide to go that route, the only trick would be that JET
> defers all its IO until all templates have executed, the ant tag would have
> to defer its actions, too.
> The other possibility is to invoke your JET transformation from ANT, and
> then invoke the other ANT scripts. Personally, I think this would be easier.
> JET includes an ANT task for invoking a transformation. The only catch is
> that the ANT build must be invoked with the Eclipse ant runner. The JET ant
> task looks like:
> <jet.transform transformid="my.transform.id"
> resource="myProject/path-to-input-file"/>
> You can use Eclipse as an ant runner by using the Eclipse ant runner
> application:
> eclipse -application org.eclipse.ant.core.antRunner ...ant command line..
> Paul
> "Yasmin Stoesser" <Thalya79@web.de> wrote in message
> news:0825fd1bf0a4131145c55cbe25f4ccd9$1@www.eclipse.org...
>> Hello everyone!
>>
>> Is it possible to pass any arguments to the transformation to invoke any
>> ant build-files during/after transformation?
>>
>> I generate several files which after generating are used by an antfile. It
>> would be great, if I could invoke the ant automatically within the
>> jet-transformation.
>>
>> I hope anyone can understand what I mean. For a java-project for example
>> it is possible to define arguments in the run configurations - I hope
>> something like that ist also possible for jet!
>>
>> Thank you for any help.
>>
|
|
|
Re: Howto invoke an antfile through transformation? [message #31815 is a reply to message #31438] |
Wed, 29 August 2007 08:05 |
Eclipse User |
|
|
|
Originally posted by: Thalya79.web.de
Paul:
Can you tell me which .jar-libs I need to invoke the antbuild?
I get several Errors and I've got the feeling, it won't work.
So far I use jetant.jar, org.eclipse.jet.jar, ant.jar and antlr.jar
Any thoughts?
Thank you,
Yasmin
|
|
|
|
Re: Howto invoke an antfile through transformation? [message #32095 is a reply to message #31956] |
Thu, 30 August 2007 09:24 |
Eclipse User |
|
|
|
Originally posted by: Thalya79.web.de
ok, I think I begin to understand.
Is it possible to use the pde-build?
Paul Elder wrote:
> Yasmin:
> You should not need to play with jar-libs at all, but you must use eclipse
> as your ant runner...
> eclipse -data workspace-location -application org.eclipse.ant.core.antRunner
> ....ant command line...
> Paul
|
|
|
Re: Howto invoke an antfile through transformation? [message #32235 is a reply to message #32095] |
Thu, 30 August 2007 14:03 |
Eclipse User |
|
|
|
Originally posted by: Thalya79.web.de
Sorry to ask such silly questions...
Please forget the PDE-question.
If I start the buildfile like you suggested, I get the Error "could not
find transformation with id..."
Now my question is where the transformId is set. In the plugin.xml? I
can't find it.
If I start the generator within eclipse, the Id in the run configurations
is the same I used in the build-file.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03711 seconds