root / trunk / build / extension-pom / build.xml @ 20506
History | View | Annotate | Download (1.14 KB)
1 |
<project name="Complete build system" default="make-extension" 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}/lib" /> |
12 |
|
13 |
<echo message="Copying file ${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging} to ${temporaly-build}/lib/" /> |
14 |
<copy file="${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}" tofile="${temporaly-build}/lib/${plugin-name}.${project.packaging}"> |
15 |
</copy>
|
16 |
|
17 |
<copy todir="${temporaly-build}/images"> |
18 |
<fileset dir="${basedir}/images/" includes="**/**" excludes="**/*.db" /> |
19 |
</copy>
|
20 |
<echo message="Copying config files to ${extension-dir}" /> |
21 |
<copy todir="${temporaly-build}"> |
22 |
<fileset dir="${basedir}/${config}" includes="**/**" /> |
23 |
</copy>
|
24 |
<move todir="${extension-dir}/${plugin-name}/"> |
25 |
<fileset dir="${temporaly-build}" includes="**/**" /> |
26 |
</move>
|
27 |
</target>
|
28 |
</project>
|