forked from nvinayshetty/DTOnator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule_dtonator.xml
200 lines (178 loc) · 10.3 KB
/
module_dtonator.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<?xml version="1.0" encoding="UTF-8"?>
<project name="module_dtonator" default="compile.module.dtonator">
<dirname property="module.dtonator.basedir" file="${ant.file.module_dtonator}"/>
<property name="module.jdk.home.dtonator" value="${jdk.home.intellij_idea_community_edition_ic-143.1184.17}"/>
<property name="module.jdk.bin.dtonator" value="${jdk.bin.intellij_idea_community_edition_ic-143.1184.17}"/>
<property name="module.jdk.classpath.dtonator" value="jdk.classpath.intellij_idea_community_edition_ic-143.1184.17"/>
<property name="compiler.args.dtonator" value="-encoding UTF-8 -source 1.7 -target 1.7 ${compiler.args}"/>
<property name="dtonator.output.dir" value="${module.dtonator.basedir}/out/production/DTOnator"/>
<property name="dtonator.testoutput.dir" value="${module.dtonator.basedir}/out/test/DTOnator"/>
<path id="dtonator.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="dtonator.module.production.classpath">
<path refid="${module.jdk.classpath.dtonator}"/>
<path refid="library.org.classpath"/>
<pathelement location="${basedir}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${basedir}/lib/junit-4.12.jar"/>
</path>
<path id="dtonator.runtime.production.module.classpath">
<pathelement location="${dtonator.output.dir}"/>
<path refid="library.org.classpath"/>
<pathelement location="${basedir}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${basedir}/lib/junit-4.12.jar"/>
</path>
<path id="dtonator.module.classpath">
<path refid="${module.jdk.classpath.dtonator}"/>
<pathelement location="${dtonator.output.dir}"/>
<path refid="library.org.classpath"/>
<pathelement location="${basedir}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${basedir}/lib/junit-4.12.jar"/>
</path>
<path id="dtonator.runtime.module.classpath">
<pathelement location="${dtonator.testoutput.dir}"/>
<pathelement location="${dtonator.output.dir}"/>
<path refid="library.org.classpath"/>
<pathelement location="${basedir}/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${basedir}/lib/junit-4.12.jar"/>
</path>
<patternset id="excluded.from.module.dtonator">
<patternset refid="ignored.files"/>
<exclude name="out/**"/>
<exclude name="out/production/**"/>
<exclude name="out/production/org/**"/>
<exclude name="out/production/org/org/**"/>
<exclude name="out/production/org/org/json/**"/>
<exclude name="out/production/DTOnator/**"/>
<exclude name="out/production/DTOnator/com/**"/>
<exclude name="out/production/DTOnator/com/intellij/**"/>
<exclude name="out/production/DTOnator/com/intellij/uiDesigner/**"/>
<exclude name="out/production/DTOnator/com/intellij/uiDesigner/core/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/Ui/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/Logger/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/Utility/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/FeedParser/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/ClassCreator/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/FieldCreator/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/FeedValidator/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/ActionListener/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/FieldRepresentors/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/DtoCreationOptions/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/nameConflictResolvers/**"/>
<exclude name="out/production/DTOnator/com/nvinayshetty/DTOnator/NameConventionCommands/**"/>
<exclude name="out/production/DTOnator/lib/**"/>
<exclude name="out/production/DTOnator/org/**"/>
<exclude name="out/production/DTOnator/org/org/**"/>
<exclude name="out/production/DTOnator/org/org/json/**"/>
<exclude name="out/production/DTOnator/org/json/**"/>
<exclude name="out/production/DTOnator/src/**"/>
<exclude name="out/production/DTOnator/src/test/**"/>
<exclude name="out/production/DTOnator/src/test/com/**"/>
<exclude name="out/production/DTOnator/src/test/com/nvinayshetty/**"/>
<exclude name="out/production/DTOnator/src/test/com/nvinayshetty/DTOnator/**"/>
<exclude name="out/production/DTOnator/src/test/com/nvinayshetty/DTOnator/testData/**"/>
<exclude name="out/production/DTOnator/test/**"/>
<exclude name="out/production/DTOnator/test/com/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/DTOnator/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/DTOnator/Utility/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/DTOnator/testData/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/DTOnator/FieldCreator/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/DTOnator/FeedValidator/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/DTOnator/DtoGeneratorTest/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/DTOnator/fieldRepresentors/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/DTOnator/nameConflictResolvers/**"/>
<exclude name="out/production/DTOnator/test/com/nvinayshetty/DTOnator/NameConventionCommands/**"/>
<exclude name="out/production/DTOnator/META-INF/**"/>
<exclude name="out/production/DTOnator/Screenshot/**"/>
<exclude name=".idea/**"/>
<exclude name=".idea/scopes/**"/>
<exclude name=".idea/copyright/**"/>
<exclude name=".idea/libraries/**"/>
<exclude name=".idea/inspectionProfiles/**"/>
<exclude name="Screenshot/**"/>
</patternset>
<patternset id="excluded.from.compilation.dtonator">
<patternset refid="excluded.from.module.dtonator"/>
</patternset>
<path id="dtonator.module.sourcepath">
<dirset dir="${module.dtonator.basedir}/../../DTOnator1.0">
<include name="DTOnator"/>
<include name="DTOnator/src/com"/>
<include name="DTOnator/org"/>
</dirset>
</path>
<path id="dtonator.module.test.sourcepath">
<dirset dir="${module.dtonator.basedir}/../../DTOnator1.0">
<include name="DTOnator/src/test"/>
</dirset>
</path>
<target name="compile.module.dtonator" depends="compile.module.dtonator.production,compile.module.dtonator.tests" description="Compile module DTOnator"/>
<target name="compile.module.dtonator.production" depends="register.custom.compilers" description="Compile module DTOnator; production classes">
<mkdir dir="${dtonator.output.dir}"/>
<javac2 destdir="${dtonator.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.dtonator}/javac">
<compilerarg line="${compiler.args.dtonator}"/>
<bootclasspath refid="dtonator.module.bootclasspath"/>
<classpath refid="dtonator.module.production.classpath"/>
<src refid="dtonator.module.sourcepath"/>
<patternset refid="excluded.from.compilation.dtonator"/>
</javac2>
<copy todir="${dtonator.output.dir}">
<fileset dir="${module.dtonator.basedir}">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
<fileset dir="${module.dtonator.basedir}/src/com">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
<fileset dir="${module.dtonator.basedir}/org">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.dtonator.tests" depends="register.custom.compilers,compile.module.dtonator.production" description="compile module DTOnator; test classes" unless="skip.tests">
<mkdir dir="${dtonator.testoutput.dir}"/>
<javac2 destdir="${dtonator.testoutput.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.dtonator}/javac">
<compilerarg line="${compiler.args.dtonator}"/>
<bootclasspath refid="dtonator.module.bootclasspath"/>
<classpath refid="dtonator.module.classpath"/>
<src refid="dtonator.module.test.sourcepath"/>
<patternset refid="excluded.from.compilation.dtonator"/>
</javac2>
<copy todir="${dtonator.testoutput.dir}">
<fileset dir="${module.dtonator.basedir}/src/test">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="clean.module.dtonator" description="cleanup module">
<delete dir="${dtonator.output.dir}"/>
<delete dir="${dtonator.testoutput.dir}"/>
</target>
<property name="dtonator.plugin.path.jar" value="${module.dtonator.basedir}/DTOnator.zip"/>
<!-- Build archive for plugin 'DTOnator' -->
<target name="plugin.build.jar.dtonator" depends="compile.module.dtonator" description="Build plugin archive for module 'DTOnator'">
<property name="tmp.dir.dtonator" value="${module.dtonator.basedir}/../temp"/>
<mkdir dir="${tmp.dir.dtonator}"/>
<mkdir dir="${tmp.dir.dtonator}/lib"/>
<jar destfile="${tmp.dir.dtonator}/lib/DTOnator.jar" duplicate="preserve">
<zipfileset dir="${module.dtonator.basedir}/out/production/DTOnator"/>
<zipfileset file="${module.dtonator.basedir}/META-INF/plugin.xml" prefix="META-INF"/>
<manifest>
<attribute name="Created-By" value="IntelliJ IDEA"/>
<attribute name="Manifest-Version" value="1.0"/>
</manifest>
</jar>
<copy file="${module.dtonator.basedir}/lib/junit-4.12.jar" tofile="${tmp.dir.dtonator}/lib/junit-4.12.jar"/>
<copy file="${module.dtonator.basedir}/lib/hamcrest-core-1.3.jar" tofile="${tmp.dir.dtonator}/lib/hamcrest-core-1.3.jar"/>
<zip destfile="${dtonator.plugin.path.jar}">
<fileset dir="${module.dtonator.basedir}/../temp"/>
</zip>
<delete dir="${tmp.dir.dtonator}"/>
</target>
</project>