svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.mkmvnproject.app / org.gvsig.mkmvnproject.app.mainplugin / src / main / ant / prepare-templates.xml @ 40557
History | View | Annotate | Download (5.47 KB)
1 |
<!--
|
---|---|
2 |
|
3 |
gvSIG. Desktop Geographic Information System.
|
4 |
|
5 |
Copyright (C) 2007-2013 gvSIG Association.
|
6 |
|
7 |
This program is free software; you can redistribute it and/or
|
8 |
modify it under the terms of the GNU General Public License
|
9 |
as published by the Free Software Foundation; either version 3
|
10 |
of the License, or (at your option) any later version.
|
11 |
|
12 |
This program is distributed in the hope that it will be useful,
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
GNU General Public License for more details.
|
16 |
|
17 |
You should have received a copy of the GNU General Public License
|
18 |
along with this program; if not, write to the Free Software
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
20 |
MA 02110-1301, USA.
|
21 |
|
22 |
For any additional information, do not hesitate to contact us
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com.
|
24 |
|
25 |
-->
|
26 |
<project name="prepare-templates.build" default="prepare-templates"> |
27 |
|
28 |
<dirname property="prepare-templates.build.basedir" |
29 |
file="${ant.file.prepare-templates.build}" /> |
30 |
|
31 |
<property name="target" location="${prepare-templates.build.basedir}/../../../target"/> |
32 |
|
33 |
<target name="prepare-templates" depends="prepare-fortunecookies,prepare-landregistryviewer"> |
34 |
</target>
|
35 |
|
36 |
<!-- *************** Fortune cookies template **************** -->
|
37 |
|
38 |
<target name="check-fortunecookies"> |
39 |
<available file="${target}/templates/downloads/fortunecookies" |
40 |
type="dir" |
41 |
property="fortunecookies.downloaded" /> |
42 |
</target>
|
43 |
|
44 |
<target name="download-fortunecookies" |
45 |
depends="check-fortunecookies" |
46 |
unless="fortunecookies.downloaded"> |
47 |
<echo>Downloading fortunecookies templates...</echo> |
48 |
<mkdir dir="${target}/templates/downloads/fortunecookies" /> |
49 |
<mkdir dir="${target}/templates-zips" /> |
50 |
|
51 |
<java classname="org.tmatesoft.svn.cli.SVN" |
52 |
classpath="${runtime_classpath}" |
53 |
dir="${target}/templates/downloads/fortunecookies/" |
54 |
fork="true" |
55 |
failonerror="true"> |
56 |
<arg value="--non-interactive"/> |
57 |
<arg value="export" /> |
58 |
<arg value="https://devel.gvsig.org/svn/gvsig-plugintemplates/org.gvsig.fortunecookies/trunk/basic-with-user-interface" /> |
59 |
</java>
|
60 |
<java classname="org.tmatesoft.svn.cli.SVN" |
61 |
classpath="${runtime_classpath}" |
62 |
dir="${target}/templates/downloads/fortunecookies/" |
63 |
fork="true" |
64 |
failonerror="true"> |
65 |
<arg value="--non-interactive"/> |
66 |
<arg value="export" /> |
67 |
<arg value="https://devel.gvsig.org/svn/gvsig-plugintemplates/org.gvsig.fortunecookies/trunk/provider-based-implementation-with-user-interface" /> |
68 |
</java>
|
69 |
</target>
|
70 |
|
71 |
<target name="prepare-fortunecookies" depends="download-fortunecookies"> |
72 |
<echo>Zipping fortunecookies...</echo> |
73 |
<delete file="${target}/templates-zips/fortunecookies-basic.zip"/> |
74 |
<delete file="${target}/templates-zips/fortunecookies-pbi.zip"/> |
75 |
<zip destfile="${target}/templates-zips/fortunecookies-basic.zip" |
76 |
basedir="${target}/templates/downloads/fortunecookies/basic-with-user-interface/" |
77 |
includes="**/*" /> |
78 |
<zip destfile="${target}/templates-zips/fortunecookies-pbi.zip" |
79 |
basedir="${target}/templates/downloads/fortunecookies/provider-based-implementation-with-user-interface/" |
80 |
includes="**/*" /> |
81 |
</target>
|
82 |
|
83 |
|
84 |
<!-- *************** Land registry viewer template **************** -->
|
85 |
|
86 |
<target name="check-landregistryviewer"> |
87 |
<available file="${target}/templates/downloads/landregistryviewer" |
88 |
type="dir" |
89 |
property="landregistryviewer.downloaded" /> |
90 |
</target>
|
91 |
|
92 |
<target name="download-landregistryviewer" |
93 |
depends="check-landregistryviewer" |
94 |
unless="landregistryviewer.downloaded"> |
95 |
<echo>Downloading landregistryviewer template...</echo> |
96 |
<mkdir dir="${target}/templates/downloads/landregistryviewer" /> |
97 |
<mkdir dir="${target}/templates-zips" /> |
98 |
|
99 |
<java classname="org.tmatesoft.svn.cli.SVN" |
100 |
classpath="${runtime_classpath}" |
101 |
dir="${target}/templates/downloads/landregistryviewer/" |
102 |
fork="true" |
103 |
failonerror="true"> |
104 |
<arg value="--non-interactive"/> |
105 |
<arg value="export" /> |
106 |
<arg value="https://devel.gvsig.org/svn/gvsig-plugintemplates/org.gvsig.landregistryviewer/trunk/org.gvsig.landregistryviewer" /> |
107 |
</java>
|
108 |
<java classname="org.tmatesoft.svn.cli.SVN" |
109 |
classpath="${runtime_classpath}" |
110 |
dir="${target}/templates/downloads/landregistryviewer/" |
111 |
fork="true" |
112 |
failonerror="true"> |
113 |
<arg value="--non-interactive"/> |
114 |
<arg value="export" /> |
115 |
<arg value="https://devel.gvsig.org/svn/gvsig-plugintemplates/org.gvsig.landregistryviewer.app/trunk/org.gvsig.landregistryviewer.app" /> |
116 |
</java>
|
117 |
</target>
|
118 |
|
119 |
<target name="prepare-landregistryviewer" depends="download-landregistryviewer"> |
120 |
<echo>Zipping landregistryviewer...</echo> |
121 |
<delete file="${target}/templates-zips/landregistryviewer.zip"/> |
122 |
<zip destfile="${target}/templates-zips/landregistryviewer.zip" |
123 |
basedir="${target}/templates/downloads/landregistryviewer/" |
124 |
includes="**/*" /> |
125 |
</target>
|
126 |
|
127 |
|
128 |
</project>
|