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 @ 41074
History | View | Annotate | Download (5.54 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 |
<!--
|
61 |
<java classname="org.tmatesoft.svn.cli.SVN"
|
62 |
classpath="${runtime_classpath}"
|
63 |
dir="${target}/templates/downloads/fortunecookies/"
|
64 |
fork="true"
|
65 |
failonerror="true">
|
66 |
<arg value="- - non-interactive"/> Ojo, que el "- -" va junto.
|
67 |
<arg value="export" />
|
68 |
<arg value="https://devel.gvsig.org/svn/gvsig-plugintemplates/org.gvsig.fortunecookies/trunk/provider-based-implementation-with-user-interface" />
|
69 |
</java>
|
70 |
-->
|
71 |
</target>
|
72 |
|
73 |
<target name="prepare-fortunecookies" depends="download-fortunecookies"> |
74 |
<echo>Zipping fortunecookies...</echo> |
75 |
<delete file="${target}/templates-zips/fortunecookies-basic.zip"/> |
76 |
<delete file="${target}/templates-zips/fortunecookies-pbi.zip"/> |
77 |
<zip destfile="${target}/templates-zips/fortunecookies-basic.zip" |
78 |
basedir="${target}/templates/downloads/fortunecookies/basic-with-user-interface/" |
79 |
includes="**/*" /> |
80 |
<!--
|
81 |
<zip destfile="${target}/templates-zips/fortunecookies-pbi.zip"
|
82 |
basedir="${target}/templates/downloads/fortunecookies/provider-based-implementation-with-user-interface/"
|
83 |
includes="**/*" />
|
84 |
-->
|
85 |
</target>
|
86 |
|
87 |
|
88 |
<!-- *************** Land registry viewer template **************** -->
|
89 |
|
90 |
<target name="check-landregistryviewer"> |
91 |
<available file="${target}/templates/downloads/landregistryviewer" |
92 |
type="dir" |
93 |
property="landregistryviewer.downloaded" /> |
94 |
</target>
|
95 |
|
96 |
<target name="download-landregistryviewer" |
97 |
depends="check-landregistryviewer" |
98 |
unless="landregistryviewer.downloaded"> |
99 |
<echo>Downloading landregistryviewer template...</echo> |
100 |
<mkdir dir="${target}/templates/downloads/landregistryviewer" /> |
101 |
<mkdir dir="${target}/templates-zips" /> |
102 |
|
103 |
<java classname="org.tmatesoft.svn.cli.SVN" |
104 |
classpath="${runtime_classpath}" |
105 |
dir="${target}/templates/downloads/landregistryviewer/" |
106 |
fork="true" |
107 |
failonerror="true"> |
108 |
<arg value="--non-interactive"/> |
109 |
<arg value="export" /> |
110 |
<arg value="https://devel.gvsig.org/svn/gvsig-plugintemplates/org.gvsig.landregistryviewer/trunk/org.gvsig.landregistryviewer" /> |
111 |
</java>
|
112 |
<java classname="org.tmatesoft.svn.cli.SVN" |
113 |
classpath="${runtime_classpath}" |
114 |
dir="${target}/templates/downloads/landregistryviewer/" |
115 |
fork="true" |
116 |
failonerror="true"> |
117 |
<arg value="--non-interactive"/> |
118 |
<arg value="export" /> |
119 |
<arg value="https://devel.gvsig.org/svn/gvsig-plugintemplates/org.gvsig.landregistryviewer.app/trunk/org.gvsig.landregistryviewer.app" /> |
120 |
</java>
|
121 |
</target>
|
122 |
|
123 |
<target name="prepare-landregistryviewer" depends="download-landregistryviewer"> |
124 |
<echo>Zipping landregistryviewer...</echo> |
125 |
<delete file="${target}/templates-zips/landregistryviewer.zip"/> |
126 |
<zip destfile="${target}/templates-zips/landregistryviewer.zip" |
127 |
basedir="${target}/templates/downloads/landregistryviewer/" |
128 |
includes="**/*" /> |
129 |
</target>
|
130 |
|
131 |
|
132 |
</project>
|