svn-gvsig-desktop / tags / v2_0_0_Build_2001 / build / extension-pom / build.xml @ 47840
History | View | Annotate | Download (1.65 KB)
1 |
<project name="Complete build system" default="make-extension-new" basedir="."> |
---|---|
2 |
<description>
|
3 |
</description>
|
4 |
<condition property="isJar"> |
5 |
<equals arg1="${project.packaging}" arg2="jar" /> |
6 |
</condition>
|
7 |
|
8 |
<target name="make-extension" if="isJar"> |
9 |
<echo message="======================== Copying to extensions dir..." /> |
10 |
<mkdir dir="${temporaly-build}" /> |
11 |
<mkdir dir="${temporaly-build}/${library-dir}" /> |
12 |
<echo message="librari directory ${temporaly-build}/${library-dir}" /> |
13 |
|
14 |
<echo message="Copying file ${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging} to ${temporaly-build}/lib/" /> |
15 |
<copy file="${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}" tofile="${temporaly-build}/${library-dir}/${plugin-name}.${project.packaging}"> |
16 |
</copy>
|
17 |
|
18 |
<copy todir="${temporaly-build}/images"> |
19 |
<fileset dir="${basedir}/images/" includes="**/**" excludes="**/*.db" /> |
20 |
</copy>
|
21 |
<echo message="Copying config files to ${extension-dir}" /> |
22 |
<copy todir="${temporaly-build}"> |
23 |
<fileset dir="${basedir}/${config}" includes="**/**" /> |
24 |
</copy>
|
25 |
<move todir="${extension-dir}/${plugin-name}/"> |
26 |
<fileset dir="${temporaly-build}" includes="**/**" /> |
27 |
</move>
|
28 |
</target>
|
29 |
|
30 |
<target name="make-extension-new" if="isJar"> |
31 |
<echo message="======================== New target " /> |
32 |
<echo message="======================== Making Extension " /> |
33 |
<echo message="======================== Copying to extensions dir..." /> |
34 |
<copy todir="${extension-dir}/../../"> |
35 |
<fileset dir="target/${distribution-final-name}-distribution/${distribution-final-name}" includes="**/**" /> |
36 |
</copy>
|
37 |
</target>
|
38 |
</project>
|