Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Resource Files
Resource Files [message #207358] Wed, 23 January 2008 18:36 Go to next message
Richi Plana is currently offline Richi PlanaFriend
Messages: 12
Registered: July 2009
Junior Member
Hi.

Is there an Eclipse function in Java Projects or Web Projects to copy
certain files to the distribution directory, optionally performing
transforms on it (a'la Ant's filters functionality) before the JAR, WAR
or EAR is built? If there is, how is it done? and is the system smart
enough to know to only update the distribution copy if the source file
and its dependencies are newer than the distribution copy?
--

Richard Plana
Re: Resource Files [message #207485 is a reply to message #207358] Sun, 27 January 2008 04:22 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
Sounds like a job for ant...

Richard Plana wrote:
> Hi.
>
> Is there an Eclipse function in Java Projects or Web Projects to copy
> certain files to the distribution directory, optionally performing
> transforms on it (a'la Ant's filters functionality) before the JAR, WAR
> or EAR is built? If there is, how is it done? and is the system smart
> enough to know to only update the distribution copy if the source file
> and its dependencies are newer than the distribution copy?
> --
>
> Richard Plana
Re: Resource Files [message #207709 is a reply to message #207485] Tue, 29 January 2008 17:48 Go to previous messageGo to next message
Richi Plana is currently offline Richi PlanaFriend
Messages: 12
Registered: July 2009
Junior Member
Ant indeed is what we normally use, but Ant is usually executed manually
from the Ant view. Is there a way to integrate calls to Ant targets from
Eclipse packaging tasks like JAR, WAR and EAR creation? I'm particularly
interested in performing transforms (filterset or xslt) on files before
they are packaged. The context of the transformation depends on the
deployment or compiler situation.
--

Richard Plana

John J. Barton wrote:
> Sounds like a job for ant...
>
> Richard Plana wrote:
>> Hi.
>>
>> Is there an Eclipse function in Java Projects or Web Projects to copy
>> certain files to the distribution directory, optionally performing
>> transforms on it (a'la Ant's filters functionality) before the JAR,
>> WAR or EAR is built? If there is, how is it done? and is the system
>> smart enough to know to only update the distribution copy if the
>> source file and its dependencies are newer than the distribution copy?
>> --
>>
>> Richard Plana
Re: Resource Files [message #208370 is a reply to message #207709] Sat, 09 February 2008 18:05 Go to previous message
Eclipse UserFriend
Originally posted by: dimich.gmx.net

Richard Plana wrote:

> Ant indeed is what we normally use, but Ant is usually executed manually
> from the Ant view. Is there a way to integrate calls to Ant targets from
> Eclipse packaging tasks like JAR, WAR and EAR creation? I'm particularly
> interested in performing transforms (filterset or xslt) on files before
> they are packaged. The context of the transformation depends on the
> deployment or compiler situation.

you can add Ant calls to the Eclipse build process. Open the project
properties, then select Builders --> New... --> Ant Builder. There you can
configure the Ant task that is to be executed on Eclipse builds.

Dirk
Previous Topic:WTP Eclipse 3.4 Installation Procedure
Next Topic:Eclipse 3.3 with WAS CE 2.0: IWAB0523E Error moving resource: null
Goto Forum:
  


Current Time: Thu Mar 28 12:32:34 GMT 2024

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

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

Back to the top