-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate.build.xml
More file actions
97 lines (83 loc) · 3.49 KB
/
generate.build.xml
File metadata and controls
97 lines (83 loc) · 3.49 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" encoding="UTF-8"?>
<project default="generate-all" name="Generator">
<property name="config-file" value="generator.config.properties" />
<property name="project-name" value="kr.or.eclipse.swt.query" />
<target name="clean">
<echo>Cleaing...</echo>
<delete includeemptydirs="true">
<fileset dir="${basedir}">
<include name="gen/**/*" />
<include name="gen" />
</fileset>
</delete>
<eclipse.refreshLocal resource="${project-name}" depth="infinite" />
<eclipse.incrementalBuild project="${project-name}" kind="incremental" />
<sleep seconds="1" />
</target>
<target name="generate-all" depends="clean, init">
<eclipse.refreshLocal resource="${project-name}" depth="infinite" />
<echo>Building step 1...</echo>
<eclipse.incrementalBuild project="${project-name}" kind="incremental" />
<sleep seconds="1" />
<echo>Generating step 1...</echo>
<antcall target="generate">
<param name="options" value="basic" />
</antcall>
<echo>Building step 2...</echo>
<eclipse.incrementalBuild />
<sleep seconds="1" />
<echo>Generating step 2...</echo>
<antcall target="generate">
<param name="options" value="advanced" />
</antcall>
<eclipse.refreshLocal resource="${project-name}" depth="infinite" />
<echo>Building step 3...</echo>
<eclipse.incrementalBuild project="${project-name}" kind="incremental" />
</target>
<target name="generate">
<loadproperties srcfile="${config-file}" />
<path id="class.path">
<fileset dir="${target}/plugins">
<include name="org.eclipse.swt*.jar" />
<include name="org.eclipse.jface*.jar" />
<include name="org.eclipse.core.runtime*.jar" />
<include name="org.eclipse.core.jobs*.jar" />
<include name="org.eclipse.equinox.common*.jar" />
<include name="org.eclipse.ui.*.jar" />
</fileset>
</path>
<java classname="kr.or.eclipse.swt.query.internal.generators.Generator" fork="true" logerror="true" failonerror="true">
<arg path="gen" />
<arg value="${options}" />
<classpath refid="class.path" />
<classpath>
<pathelement location="bin" />
</classpath>
<jvmarg value="-XX:MaxPermSize=256m" />
</java>
<eclipse.refreshLocal resource="/" depth="infinite" />
</target>
<target name="check-config-file">
<available file="${config-file}" property="config-file-exists" />
</target>
<target name="load-config-from-file" if="config-file-exists" depends="check-config-file">
<loadproperties srcfile="generator.config.properties" />
<echo>${target} 이 로드됨</echo>
</target>
<target name="init">
<antcall target="create-new-config-file" />
<antcall target="load-config-from-file" />
</target>
<target name="create-new-config-file" unless="config-file-exists" depends="check-config-file">
<echo file="${config-file}">target = ${eclipse.home}</echo>
<replace file="${config-file}">
<replacefilter token="\" value="\\" />
</replace>
<echo>"${config-file}" has been generated. Build will use current eclipse as a Target Eclipse.</echo>
<echo>Edit "${config-file}" file to use other Target Eclipses.</echo>
<echo>"${config-file}" 파일이 생성되었습니다. 기본값으로 현재 실행중인 이클립스를 타겟으로 빌드합니다.</echo>
<echo>타겟 이클립스를 변경하려면 "${config-file}" 파일을 수정 하십시오.</echo>
<sleep seconds="3" />
<eclipse.refreshLocal resource="${project-name}" depth="infinite" />
</target>
</project>