-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.xml
56 lines (47 loc) · 3.34 KB
/
init.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<project name="init.proj" default="help" basedir=".">
<dirname property="root.dir" file="${ant.file.init.proj}"/>
<property name="script.dir" value="${root.dir}/script"/>
<property name="target.dir" value="${root.dir}/target"/>
<property name="temp.dir" value="${target.dir}/temp"/>
<property name="repo.url" value="http://github.com/astrid/CommonScripts/raw/master"/>
<property name="script.url" value="${repo.url}/script"/>
<property name="proj_root.url" value="${repo.url}/proj_root"/>
<property name="script.lib.url" value="${script.url}/template/lib"/>
<property name="script.web.url" value="${script.url}/template/web"/>
<target name="help">
<echo message="${line.separator}This script can be used to download the scripts when starting a new project,${line.separator}
or update the scripts to the latest. Usage:${line.separator}
ant -f init.xml init${line.separator} "/>
</target>
<target name="init" description="-> Downloads the common scripts.">
<get src="${proj_root.url}/build.properties" dest="${root.dir}/build.properties"/>
<get src="${proj_root.url}/build.xml" dest="${root.dir}/build.xml"/>
<get src="${proj_root.url}/ivy.xml" dest="${root.dir}/ivy.xml"/>
<get src="${proj_root.url}/ivysettings-ide.xml" dest="${root.dir}/ivysettings-ide.xml"/>
<get src="${proj_root.url}/ivysettings-local.xml" dest="${root.dir}/ivysettings-local.xml"/>
<mkdir dir="${script.dir}/template/lib"/>
<get src="${script.url}/common-analyze.xml" dest="${script.dir}/common-analyze.xml"/>
<get src="${script.url}/common-lib.xml" dest="${script.dir}/common-lib.xml"/>
<get src="${script.url}/common-standalone.xml" dest="${script.dir}/common-standalone.xml"/>
<get src="${script.url}/common-web.xml" dest="${script.dir}/common-web.xml"/>
<get src="${script.url}/common.xml" dest="${script.dir}/common.xml"/>
<get src="${script.url}/generator.xml" dest="${script.dir}/generator.xml"/>
<get src="${script.url}/hsqldb.xml" dest="${script.dir}/hsqldb.xml"/>
<get src="${script.url}/ivy-targets.xml" dest="${script.dir}/ivy-targets.xml"/>
<get src="${script.url}/script-setup.xml" dest="${script.dir}/script-setup.xml"/>
<get src="${script.url}/tomcat-users.xml" dest="${script.dir}/tomcat-users.xml"/>
<get src="${script.url}/tomcat.xml" dest="${script.dir}/tomcat.xml"/>
<get src="${script.url}/util.xml" dest="${script.dir}/util.xml"/>
<get src="${script.lib.url}/_build.xml" dest="${script.dir}/template/lib/_build.xml"/>
<get src="${script.lib.url}/_ivy.xml" dest="${script.dir}/template/lib/_ivy.xml"/>
<get src="${script.lib.url}/custom.xml" dest="${script.dir}/template/lib/custom.xml"/>
<get src="${script.url}/template/standalone-template.zip" dest="${script.dir}/template/standalone-template.zip"/>
<get src="${script.url}/template/web-template.zip" dest="${script.dir}/template/web-template.zip"/>
<mkdir dir="${script.dir}/template/standalone"/>
<echo message="${line.separator}
You can start by running:${line.separator} ant generate-web-module -Dmodule.name=PROJNAME${line.separator}
to set up a web module skeleton. Type${line.separator} ant help${line.separator}
for further information.${line.separator}
"/>
</target>
</project>