Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Eclipse Generation Factories (EGF) » Activity Ant Task(Launching Activity Ant Task)
Activity Ant Task [message #1102227] Thu, 05 September 2013 14:36 Go to next message
Catalin Bota is currently offline Catalin BotaFriend
Messages: 5
Registered: September 2013
Junior Member
Hello all

I am searching for some documentation w.r.t launching an Ant Task from an EGF Activity.

I have found code and explanation of how to do a Java Task, but my goal is to try to launch an Ant Script from EGF.

Any help would be appreciated.

Thank you
Re: Activity Ant Task [message #1106070 is a reply to message #1102227] Tue, 10 September 2013 16:49 Go to previous messageGo to next message
Benoit Langlois is currently offline Benoit LangloisFriend
Messages: 18
Registered: July 2009
Junior Member
Hello Catalin,

You have an example of Ant task.
- Import the EGF Basic examples.
- Open the "ant_task.fcore" of the "org.eclipse.egf.example.task.ant" plugin, you will find the "ant_task" example.

Double-click on the Task, and you will directly access to the Ant script.

Next, you right-click on the task to run it, or you can invoke it in a production plan of a factory component.

Benoît
Re: Activity Ant Task [message #1106093 is a reply to message #1106070] Tue, 10 September 2013 17:28 Go to previous messageGo to next message
Catalin Bota is currently offline Catalin BotaFriend
Messages: 5
Registered: September 2013
Junior Member
Hi Benoit

Thank you for your response.
Unfortunately when i run this example on Juno and also Kepler, also on two different PCs
I get the following error
:

'Run EGF Activity ...' has encountered a problem.
Unexpected exception while instantiating class 'HelloWorld' in bundle 'org.eclipse.egf.example.task.ant'.
java.lang.NullPointerException


Any ideas will be helpful.

Thank you
Re: Activity Ant Task [message #1114931 is a reply to message #1106093] Mon, 23 September 2013 12:27 Go to previous messageGo to next message
Thomas Guiu is currently offline Thomas GuiuFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

I tested this example on juno and I got the expected output:
main:
     [echo] Ant task says Hello !

BUILD SUCCESSFUL
Total time: 0 seconds

Could you post the full stacktrace of the NPE ?

Best regards,
Thomas
Re: Activity Ant Task [message #1115518 is a reply to message #1114931] Tue, 24 September 2013 07:56 Go to previous message
Catalin Bota is currently offline Catalin BotaFriend
Messages: 5
Registered: September 2013
Junior Member
Hi Thomas

Thank you for your response.
Could tell me more precisely how to do that ? I am still in the process of learning acronyms and eclipse terminology.

Thank you
Previous Topic:Unable to find an Fcore associated with problem
Next Topic:Programmatically invoking EGF activity and configure the contract
Goto Forum:
  


Current Time: Fri Mar 29 09:01:53 GMT 2024

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

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

Back to the top