forked from omnifaces/omnifaces
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eclipse.xml
46 lines (37 loc) · 1.36 KB
/
eclipse.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project>
<!--
OmniFaces ANT Build file with Eclipse specific convenience targets
-->
<project name="eclipse" default="all">
<import file="build.xml" />
<macrodef name="copylib">
<attribute name="todir" />
<attribute name="srcdir" default="@{todir}" />
<sequential>
<eclipse.convertPath resourcePath="@{todir}" property="toFileSystemDir" />
<delete>
<fileset dir="${toFileSystemDir}" includes="${artifactId}-*" />
</delete>
<copy todir="${toFileSystemDir}" overwrite="true">
<fileset file="${implementation-jar}" />
</copy>
<eclipse.refreshLocal resource="@{todir}" depth="infinite" />
<eclipse.convertPath resourcePath="@{srcdir}" property="srcFileSystemDir" />
<delete>
<fileset dir="${srcFileSystemDir}" includes="${artifactId}-*" />
</delete>
<copy todir="${srcFileSystemDir}" overwrite="true">
<fileset file="${sources-jar}" />
</copy>
<eclipse.refreshLocal resource="@{srcdir}" depth="infinite" />
</sequential>
</macrodef>
<target name="refresh" depends="dist">
<eclipse.refreshLocal resource="omnifaces" depth="infinite" />
</target>
<target name="copy_to_showcase" depends="refresh">
<copylib todir="omnifaces-showcase/WebContent/WEB-INF/lib" srcdir="omnifaces-showcase/lib-src" />
</target>
<target name="all" depends="copy_to_showcase"/>
</project>