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 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
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
> 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.