svn-gvsig-desktop / tags / v1_11_0_Build_1303 / build / extension-pom / build.xml @ 45573
History | View | Annotate | Download (1.65 KB)
1 | 22700 | jcampos | <project name="Complete build system" default="make-extension-new" basedir="."> |
---|---|---|---|
2 | 20506 | jcampos | <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 | 21097 | jcampos | <echo message="======================== Copying to extensions dir..." /> |
10 | 20506 | jcampos | <mkdir dir="${temporaly-build}" /> |
11 | 20783 | jcampos | <mkdir dir="${temporaly-build}/${library-dir}" /> |
12 | <echo message="librari directory ${temporaly-build}/${library-dir}" /> |
||
13 | 21097 | jcampos | |
14 | 20506 | jcampos | <echo message="Copying file ${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging} to ${temporaly-build}/lib/" /> |
15 | 20783 | jcampos | <copy file="${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}" tofile="${temporaly-build}/${library-dir}/${plugin-name}.${project.packaging}"> |
16 | 20506 | jcampos | </copy>
|
17 | 21097 | jcampos | |
18 | 20506 | jcampos | <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 | 22700 | jcampos | </move>
|
28 | 20506 | jcampos | </target>
|
29 | 22700 | jcampos | |
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 | 20506 | jcampos | </project> |