Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Resource Files
Resource Files [message #207358] Wed, 23 January 2008 13:36 Go to next message
Richi Plana is currently offline Richi Plana
Messages: 11
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] Sat, 26 January 2008 23:22 Go to previous messageGo to next message
John J. Barton is currently offline John J. Barton
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 12:48 Go to previous messageGo to next message
Richi Plana is currently offline Richi Plana
Messages: 11
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 13:05 Go to previous message
Eclipse User
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: Fri Aug 22 04:04:52 EDT 2014

Powered by FUDForum. Page generated in 0.16406 seconds