Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Re: Question about wtp ant tasks
Re: Question about wtp ant tasks [message #186239] Mon, 15 January 2007 20:50 Go to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Alexandre Neubert wrote:
> Hello, The following message was posted today on wtp-jst-dev mailing
> list. One sayed that this question rather belongs to this newsgroup.

Actually, there is a newsgroup dedicated to WTP: eclipse.webtools - you
are likely to get more response by posting there. I have cross-posted
this reply to that group and set the Followup-To: header

Eric


--- Begin original message ---
> Hello list,
>
> I am new to wtp list, so I am not sure this is the list where my
> question belongs ; don?t hesitate to notify me about another list
> which might be more about my problem.
>
> OK, I am using WTP for over a year now and I need to know a little
> bit more about how WTP is handling compilation/packaging and
> dependencies.
>
> In short, I have an application for which I want to keep a way of
> compiling and packaging using ant (without eclipse since on some
> machines I don?t have graphical interface). The easiest way I thought
> about was if I could call directly the ant tasks of wtp for compiling
> and packaging (since WTP uses ant tasks to perform these actions,
> right?).
>
> I know for example that one could call the eclipse compiler directly
> by calling the class org.eclipse.jdt.internal.compiler.batch.Main.
>
> Is that possible? If yes, which are the classes I need to call or
> where can I find some documentation about that?
>
>
>
> Thanks a lot,
>
Re: Question about wtp ant tasks [message #186279 is a reply to message #186239] Tue, 16 January 2007 15:00 Go to previous messageGo to next message
Mark Hutchinson is currently offline Mark HutchinsonFriend
Messages: 53
Registered: July 2009
Member
I'm no expert on this kind of thing, but I know you can run ant tasks by
starting a headless eclipse instance. We do something similar to create
web services using ant tasks from the command line.

Have a look in the ant folder in the
eclipse\plugins\org.eclipse.wst.command.env plugin folder to see how we
do it. More specifically have a look at the wsant.bat or wsant.sh files
to see how we run an ant task without launching the eclipse UI.

Hope this helps!
Mark

Eric Rizzo wrote:
> Alexandre Neubert wrote:
>> Hello, The following message was posted today on wtp-jst-dev mailing
>> list. One sayed that this question rather belongs to this newsgroup.
>
> Actually, there is a newsgroup dedicated to WTP: eclipse.webtools - you
> are likely to get more response by posting there. I have cross-posted
> this reply to that group and set the Followup-To: header
>
> Eric
>
>
> --- Begin original message ---
>> Hello list,
>>
>> I am new to wtp list, so I am not sure this is the list where my
>> question belongs ; don?t hesitate to notify me about another list
>> which might be more about my problem.
>>
>> OK, I am using WTP for over a year now and I need to know a little
>> bit more about how WTP is handling compilation/packaging and
>> dependencies.
>>
>> In short, I have an application for which I want to keep a way of
>> compiling and packaging using ant (without eclipse since on some
>> machines I don?t have graphical interface). The easiest way I thought
>> about was if I could call directly the ant tasks of wtp for compiling
>> and packaging (since WTP uses ant tasks to perform these actions,
>> right?).
>>
>> I know for example that one could call the eclipse compiler directly
>> by calling the class org.eclipse.jdt.internal.compiler.batch.Main.
>>
>> Is that possible? If yes, which are the classes I need to call or
>> where can I find some documentation about that?
>>
>>
>>
>> Thanks a lot,
>>
>
>
Re: Question about wtp ant tasks [message #186460 is a reply to message #186279] Thu, 18 January 2007 11:25 Go to previous message
Eclipse UserFriend
Originally posted by: alexandre-michael.neubert.edifixio.com

Hello,
Thanks for your answer; so, if I summarize, with your script I know how to
launch the eclipse ant without having to start eclipse.
To solve my problem, I now have to know what ant task of wtp to call (in
clear, I have to adapt your wsgen.xml file, right?).
This is a good start, but what I wanted to know was:
- How do I get the ant tasks wtp is using for compiling and packaging to
know (is there an ant script somewhere?)?

Do you know where I can find this information?

Regards,
Alexandre
Previous Topic:Java EE 5
Next Topic:WSDL Formating
Goto Forum:
  


Current Time: Fri Apr 19 07:02:20 GMT 2024

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

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

Back to the top