diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-07 12:13:32 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-07 12:13:32 +0000 |
commit | b898f9900b1ef36e326fb7f326856887184d4005 (patch) | |
tree | 993080e8bebcf85ac43ff5abc7f6618a4e61eb70 /update/plugin | |
parent | 65a964f0f2202ec21c44c493d6412f39ab86bffa (diff) | |
download | instadisc-b898f9900b1ef36e326fb7f326856887184d4005.tar.gz instadisc-b898f9900b1ef36e326fb7f326856887184d4005.tar.bz2 instadisc-b898f9900b1ef36e326fb7f326856887184d4005.zip |
Update: Created NetBeans project (for SVN Plugin)
Diffstat (limited to 'update/plugin')
-rw-r--r-- | update/plugin/svn/trunk/build.xml | 69 | ||||
-rw-r--r-- | update/plugin/svn/trunk/nbproject/build-impl.xml | 627 | ||||
-rw-r--r-- | update/plugin/svn/trunk/nbproject/genfiles.properties | 8 | ||||
-rw-r--r-- | update/plugin/svn/trunk/nbproject/project.properties | 59 | ||||
-rw-r--r-- | update/plugin/svn/trunk/nbproject/project.xml | 16 | ||||
-rw-r--r-- | update/plugin/svn/trunk/src/com/fourisland/instadisc/update/svn/Main.java | 0 |
6 files changed, 779 insertions, 0 deletions
diff --git a/update/plugin/svn/trunk/build.xml b/update/plugin/svn/trunk/build.xml new file mode 100644 index 0000000..b2772f4 --- /dev/null +++ b/update/plugin/svn/trunk/build.xml | |||
@@ -0,0 +1,69 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!-- You may freely edit this file. See commented blocks below for --> | ||
3 | <!-- some examples of how to customize the build. --> | ||
4 | <!-- (If you delete it and reopen the project it will be recreated.) --> | ||
5 | <project name="InstaDiscUpdateSVN" default="default" basedir="."> | ||
6 | <description>Builds, tests, and runs the project InstaDiscUpdateSVN.</description> | ||
7 | <import file="nbproject/build-impl.xml"/> | ||
8 | <!-- | ||
9 | |||
10 | There exist several targets which are by default empty and which can be | ||
11 | used for execution of your tasks. These targets are usually executed | ||
12 | before and after some main targets. They are: | ||
13 | |||
14 | -pre-init: called before initialization of project properties | ||
15 | -post-init: called after initialization of project properties | ||
16 | -pre-compile: called before javac compilation | ||
17 | -post-compile: called after javac compilation | ||
18 | -pre-compile-single: called before javac compilation of single file | ||
19 | -post-compile-single: called after javac compilation of single file | ||
20 | -pre-compile-test: called before javac compilation of JUnit tests | ||
21 | -post-compile-test: called after javac compilation of JUnit tests | ||
22 | -pre-compile-test-single: called before javac compilation of single JUnit test | ||
23 | -post-compile-test-single: called after javac compilation of single JUunit test | ||
24 | -pre-jar: called before JAR building | ||
25 | -post-jar: called after JAR building | ||
26 | -post-clean: called after cleaning build products | ||
27 | |||
28 | (Targets beginning with '-' are not intended to be called on their own.) | ||
29 | |||
30 | Example of inserting an obfuscator after compilation could look like this: | ||
31 | |||
32 | <target name="-post-compile"> | ||
33 | <obfuscate> | ||
34 | <fileset dir="${build.classes.dir}"/> | ||
35 | </obfuscate> | ||
36 | </target> | ||
37 | |||
38 | For list of available properties check the imported | ||
39 | nbproject/build-impl.xml file. | ||
40 | |||
41 | |||
42 | Another way to customize the build is by overriding existing main targets. | ||
43 | The targets of interest are: | ||
44 | |||
45 | -init-macrodef-javac: defines macro for javac compilation | ||
46 | -init-macrodef-junit: defines macro for junit execution | ||
47 | -init-macrodef-debug: defines macro for class debugging | ||
48 | -init-macrodef-java: defines macro for class execution | ||
49 | -do-jar-with-manifest: JAR building (if you are using a manifest) | ||
50 | -do-jar-without-manifest: JAR building (if you are not using a manifest) | ||
51 | run: execution of project | ||
52 | -javadoc-build: Javadoc generation | ||
53 | test-report: JUnit report generation | ||
54 | |||
55 | An example of overriding the target for project execution could look like this: | ||
56 | |||
57 | <target name="run" depends="InstaDiscUpdateSVN-impl.jar"> | ||
58 | <exec dir="bin" executable="launcher.exe"> | ||
59 | <arg file="${dist.jar}"/> | ||
60 | </exec> | ||
61 | </target> | ||
62 | |||
63 | Notice that the overridden target depends on the jar target and not only on | ||
64 | the compile target as the regular run target does. Again, for a list of available | ||
65 | properties which you can use, check the target you are overriding in the | ||
66 | nbproject/build-impl.xml file. | ||
67 | |||
68 | --> | ||
69 | </project> | ||
diff --git a/update/plugin/svn/trunk/nbproject/build-impl.xml b/update/plugin/svn/trunk/nbproject/build-impl.xml new file mode 100644 index 0000000..ac0e506 --- /dev/null +++ b/update/plugin/svn/trunk/nbproject/build-impl.xml | |||
@@ -0,0 +1,627 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!-- | ||
3 | *** GENERATED FROM project.xml - DO NOT EDIT *** | ||
4 | *** EDIT ../build.xml INSTEAD *** | ||
5 | |||
6 | For the purpose of easier reading the script | ||
7 | is divided into following sections: | ||
8 | |||
9 | - initialization | ||
10 | - compilation | ||
11 | - jar | ||
12 | - execution | ||
13 | - debugging | ||
14 | - javadoc | ||
15 | - junit compilation | ||
16 | - junit execution | ||
17 | - junit debugging | ||
18 | - applet | ||
19 | - cleanup | ||
20 | |||
21 | --> | ||
22 | <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="InstaDiscUpdateSVN-impl"> | ||
23 | <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> | ||
24 | <!-- | ||
25 | ====================== | ||
26 | INITIALIZATION SECTION | ||
27 | ====================== | ||
28 | --> | ||
29 | <target name="-pre-init"> | ||
30 | <!-- Empty placeholder for easier customization. --> | ||
31 | <!-- You can override this target in the ../build.xml file. --> | ||
32 | </target> | ||
33 | <target depends="-pre-init" name="-init-private"> | ||
34 | <property file="nbproject/private/config.properties"/> | ||
35 | <property file="nbproject/private/configs/${config}.properties"/> | ||
36 | <property file="nbproject/private/private.properties"/> | ||
37 | </target> | ||
38 | <target depends="-pre-init,-init-private" name="-init-user"> | ||
39 | <property file="${user.properties.file}"/> | ||
40 | <!-- The two properties below are usually overridden --> | ||
41 | <!-- by the active platform. Just a fallback. --> | ||
42 | <property name="default.javac.source" value="1.4"/> | ||
43 | <property name="default.javac.target" value="1.4"/> | ||
44 | </target> | ||
45 | <target depends="-pre-init,-init-private,-init-user" name="-init-project"> | ||
46 | <property file="nbproject/configs/${config}.properties"/> | ||
47 | <property file="nbproject/project.properties"/> | ||
48 | </target> | ||
49 | <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> | ||
50 | <available file="${manifest.file}" property="manifest.available"/> | ||
51 | <condition property="manifest.available+main.class"> | ||
52 | <and> | ||
53 | <isset property="manifest.available"/> | ||
54 | <isset property="main.class"/> | ||
55 | <not> | ||
56 | <equals arg1="${main.class}" arg2="" trim="true"/> | ||
57 | </not> | ||
58 | </and> | ||
59 | </condition> | ||
60 | <condition property="manifest.available+main.class+mkdist.available"> | ||
61 | <and> | ||
62 | <istrue value="${manifest.available+main.class}"/> | ||
63 | <isset property="libs.CopyLibs.classpath"/> | ||
64 | </and> | ||
65 | </condition> | ||
66 | <condition property="have.tests"> | ||
67 | <or> | ||
68 | <available file="${test.src.dir}"/> | ||
69 | </or> | ||
70 | </condition> | ||
71 | <condition property="have.sources"> | ||
72 | <or> | ||
73 | <available file="${src.dir}"/> | ||
74 | </or> | ||
75 | </condition> | ||
76 | <condition property="netbeans.home+have.tests"> | ||
77 | <and> | ||
78 | <isset property="netbeans.home"/> | ||
79 | <isset property="have.tests"/> | ||
80 | </and> | ||
81 | </condition> | ||
82 | <condition property="no.javadoc.preview"> | ||
83 | <and> | ||
84 | <isset property="javadoc.preview"/> | ||
85 | <isfalse value="${javadoc.preview}"/> | ||
86 | </and> | ||
87 | </condition> | ||
88 | <property name="run.jvmargs" value=""/> | ||
89 | <property name="javac.compilerargs" value=""/> | ||
90 | <property name="work.dir" value="${basedir}"/> | ||
91 | <condition property="no.deps"> | ||
92 | <and> | ||
93 | <istrue value="${no.dependencies}"/> | ||
94 | </and> | ||
95 | </condition> | ||
96 | <property name="javac.debug" value="true"/> | ||
97 | <property name="javadoc.preview" value="true"/> | ||
98 | <property name="application.args" value=""/> | ||
99 | <property name="source.encoding" value="${file.encoding}"/> | ||
100 | <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> | ||
101 | <and> | ||
102 | <isset property="javadoc.encoding"/> | ||
103 | <not> | ||
104 | <equals arg1="${javadoc.encoding}" arg2=""/> | ||
105 | </not> | ||
106 | </and> | ||
107 | </condition> | ||
108 | <property name="javadoc.encoding.used" value="${source.encoding}"/> | ||
109 | <property name="includes" value="**"/> | ||
110 | <property name="excludes" value=""/> | ||
111 | <property name="do.depend" value="false"/> | ||
112 | <condition property="do.depend.true"> | ||
113 | <istrue value="${do.depend}"/> | ||
114 | </condition> | ||
115 | <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"> | ||
116 | <and> | ||
117 | <isset property="jaxws.endorsed.dir"/> | ||
118 | <available file="nbproject/jaxws-build.xml"/> | ||
119 | </and> | ||
120 | </condition> | ||
121 | </target> | ||
122 | <target name="-post-init"> | ||
123 | <!-- Empty placeholder for easier customization. --> | ||
124 | <!-- You can override this target in the ../build.xml file. --> | ||
125 | </target> | ||
126 | <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check"> | ||
127 | <fail unless="src.dir">Must set src.dir</fail> | ||
128 | <fail unless="test.src.dir">Must set test.src.dir</fail> | ||
129 | <fail unless="build.dir">Must set build.dir</fail> | ||
130 | <fail unless="dist.dir">Must set dist.dir</fail> | ||
131 | <fail unless="build.classes.dir">Must set build.classes.dir</fail> | ||
132 | <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> | ||
133 | <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> | ||
134 | <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> | ||
135 | <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> | ||
136 | <fail unless="dist.jar">Must set dist.jar</fail> | ||
137 | </target> | ||
138 | <target name="-init-macrodef-property"> | ||
139 | <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
140 | <attribute name="name"/> | ||
141 | <attribute name="value"/> | ||
142 | <sequential> | ||
143 | <property name="@{name}" value="${@{value}}"/> | ||
144 | </sequential> | ||
145 | </macrodef> | ||
146 | </target> | ||
147 | <target name="-init-macrodef-javac"> | ||
148 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
149 | <attribute default="${src.dir}" name="srcdir"/> | ||
150 | <attribute default="${build.classes.dir}" name="destdir"/> | ||
151 | <attribute default="${javac.classpath}" name="classpath"/> | ||
152 | <attribute default="${includes}" name="includes"/> | ||
153 | <attribute default="${excludes}" name="excludes"/> | ||
154 | <attribute default="${javac.debug}" name="debug"/> | ||
155 | <attribute default="" name="sourcepath"/> | ||
156 | <element name="customize" optional="true"/> | ||
157 | <sequential> | ||
158 | <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}"> | ||
159 | <classpath> | ||
160 | <path path="@{classpath}"/> | ||
161 | </classpath> | ||
162 | <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/> | ||
163 | <customize/> | ||
164 | </javac> | ||
165 | </sequential> | ||
166 | </macrodef> | ||
167 | <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
168 | <attribute default="${src.dir}" name="srcdir"/> | ||
169 | <attribute default="${build.classes.dir}" name="destdir"/> | ||
170 | <attribute default="${javac.classpath}" name="classpath"/> | ||
171 | <sequential> | ||
172 | <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> | ||
173 | <classpath> | ||
174 | <path path="@{classpath}"/> | ||
175 | </classpath> | ||
176 | </depend> | ||
177 | </sequential> | ||
178 | </macrodef> | ||
179 | <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
180 | <attribute default="${build.classes.dir}" name="destdir"/> | ||
181 | <sequential> | ||
182 | <fail unless="javac.includes">Must set javac.includes</fail> | ||
183 | <pathconvert pathsep="," property="javac.includes.binary"> | ||
184 | <path> | ||
185 | <filelist dir="@{destdir}" files="${javac.includes}"/> | ||
186 | </path> | ||
187 | <globmapper from="*.java" to="*.class"/> | ||
188 | </pathconvert> | ||
189 | <delete> | ||
190 | <files includes="${javac.includes.binary}"/> | ||
191 | </delete> | ||
192 | </sequential> | ||
193 | </macrodef> | ||
194 | </target> | ||
195 | <target name="-init-macrodef-junit"> | ||
196 | <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
197 | <attribute default="${includes}" name="includes"/> | ||
198 | <attribute default="${excludes}" name="excludes"/> | ||
199 | <attribute default="**" name="testincludes"/> | ||
200 | <sequential> | ||
201 | <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> | ||
202 | <batchtest todir="${build.test.results.dir}"> | ||
203 | <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | ||
204 | <filename name="@{testincludes}"/> | ||
205 | </fileset> | ||
206 | </batchtest> | ||
207 | <classpath> | ||
208 | <path path="${run.test.classpath}"/> | ||
209 | </classpath> | ||
210 | <syspropertyset> | ||
211 | <propertyref prefix="test-sys-prop."/> | ||
212 | <mapper from="test-sys-prop.*" to="*" type="glob"/> | ||
213 | </syspropertyset> | ||
214 | <formatter type="brief" usefile="false"/> | ||
215 | <formatter type="xml"/> | ||
216 | <jvmarg line="${run.jvmargs}"/> | ||
217 | </junit> | ||
218 | </sequential> | ||
219 | </macrodef> | ||
220 | </target> | ||
221 | <target name="-init-macrodef-nbjpda"> | ||
222 | <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
223 | <attribute default="${main.class}" name="name"/> | ||
224 | <attribute default="${debug.classpath}" name="classpath"/> | ||
225 | <attribute default="" name="stopclassname"/> | ||
226 | <sequential> | ||
227 | <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket"> | ||
228 | <classpath> | ||
229 | <path path="@{classpath}"/> | ||
230 | </classpath> | ||
231 | </nbjpdastart> | ||
232 | </sequential> | ||
233 | </macrodef> | ||
234 | <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
235 | <attribute default="${build.classes.dir}" name="dir"/> | ||
236 | <sequential> | ||
237 | <nbjpdareload> | ||
238 | <fileset dir="@{dir}" includes="${fix.includes}*.class"/> | ||
239 | </nbjpdareload> | ||
240 | </sequential> | ||
241 | </macrodef> | ||
242 | </target> | ||
243 | <target name="-init-debug-args"> | ||
244 | <property name="version-output" value="java version "${ant.java.version}"/> | ||
245 | <condition property="have-jdk-older-than-1.4"> | ||
246 | <or> | ||
247 | <contains string="${version-output}" substring="java version "1.0"/> | ||
248 | <contains string="${version-output}" substring="java version "1.1"/> | ||
249 | <contains string="${version-output}" substring="java version "1.2"/> | ||
250 | <contains string="${version-output}" substring="java version "1.3"/> | ||
251 | </or> | ||
252 | </condition> | ||
253 | <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> | ||
254 | <istrue value="${have-jdk-older-than-1.4}"/> | ||
255 | </condition> | ||
256 | </target> | ||
257 | <target depends="-init-debug-args" name="-init-macrodef-debug"> | ||
258 | <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
259 | <attribute default="${main.class}" name="classname"/> | ||
260 | <attribute default="${debug.classpath}" name="classpath"/> | ||
261 | <element name="customize" optional="true"/> | ||
262 | <sequential> | ||
263 | <java classname="@{classname}" dir="${work.dir}" fork="true"> | ||
264 | <jvmarg line="${debug-args-line}"/> | ||
265 | <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/> | ||
266 | <jvmarg line="${run.jvmargs}"/> | ||
267 | <classpath> | ||
268 | <path path="@{classpath}"/> | ||
269 | </classpath> | ||
270 | <syspropertyset> | ||
271 | <propertyref prefix="run-sys-prop."/> | ||
272 | <mapper from="run-sys-prop.*" to="*" type="glob"/> | ||
273 | </syspropertyset> | ||
274 | <customize/> | ||
275 | </java> | ||
276 | </sequential> | ||
277 | </macrodef> | ||
278 | </target> | ||
279 | <target name="-init-macrodef-java"> | ||
280 | <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
281 | <attribute default="${main.class}" name="classname"/> | ||
282 | <element name="customize" optional="true"/> | ||
283 | <sequential> | ||
284 | <java classname="@{classname}" dir="${work.dir}" fork="true"> | ||
285 | <jvmarg line="${run.jvmargs}"/> | ||
286 | <classpath> | ||
287 | <path path="${run.classpath}"/> | ||
288 | </classpath> | ||
289 | <syspropertyset> | ||
290 | <propertyref prefix="run-sys-prop."/> | ||
291 | <mapper from="run-sys-prop.*" to="*" type="glob"/> | ||
292 | </syspropertyset> | ||
293 | <customize/> | ||
294 | </java> | ||
295 | </sequential> | ||
296 | </macrodef> | ||
297 | </target> | ||
298 | <target name="-init-presetdef-jar"> | ||
299 | <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
300 | <jar compress="${jar.compress}" jarfile="${dist.jar}"> | ||
301 | <j2seproject1:fileset dir="${build.classes.dir}"/> | ||
302 | </jar> | ||
303 | </presetdef> | ||
304 | </target> | ||
305 | <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/> | ||
306 | <!-- | ||
307 | =================== | ||
308 | COMPILATION SECTION | ||
309 | =================== | ||
310 | --> | ||
311 | <target depends="init" name="deps-jar" unless="no.deps"/> | ||
312 | <target depends="init,deps-jar" name="-pre-pre-compile"> | ||
313 | <mkdir dir="${build.classes.dir}"/> | ||
314 | </target> | ||
315 | <target name="-pre-compile"> | ||
316 | <!-- Empty placeholder for easier customization. --> | ||
317 | <!-- You can override this target in the ../build.xml file. --> | ||
318 | </target> | ||
319 | <target if="do.depend.true" name="-compile-depend"> | ||
320 | <j2seproject3:depend/> | ||
321 | </target> | ||
322 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile"> | ||
323 | <j2seproject3:javac/> | ||
324 | <copy todir="${build.classes.dir}"> | ||
325 | <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | ||
326 | </copy> | ||
327 | </target> | ||
328 | <target name="-post-compile"> | ||
329 | <!-- Empty placeholder for easier customization. --> | ||
330 | <!-- You can override this target in the ../build.xml file. --> | ||
331 | </target> | ||
332 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> | ||
333 | <target name="-pre-compile-single"> | ||
334 | <!-- Empty placeholder for easier customization. --> | ||
335 | <!-- You can override this target in the ../build.xml file. --> | ||
336 | </target> | ||
337 | <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> | ||
338 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | ||
339 | <j2seproject3:force-recompile/> | ||
340 | <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/> | ||
341 | </target> | ||
342 | <target name="-post-compile-single"> | ||
343 | <!-- Empty placeholder for easier customization. --> | ||
344 | <!-- You can override this target in the ../build.xml file. --> | ||
345 | </target> | ||
346 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> | ||
347 | <!-- | ||
348 | ==================== | ||
349 | JAR BUILDING SECTION | ||
350 | ==================== | ||
351 | --> | ||
352 | <target depends="init" name="-pre-pre-jar"> | ||
353 | <dirname file="${dist.jar}" property="dist.jar.dir"/> | ||
354 | <mkdir dir="${dist.jar.dir}"/> | ||
355 | </target> | ||
356 | <target name="-pre-jar"> | ||
357 | <!-- Empty placeholder for easier customization. --> | ||
358 | <!-- You can override this target in the ../build.xml file. --> | ||
359 | </target> | ||
360 | <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available"> | ||
361 | <j2seproject1:jar/> | ||
362 | </target> | ||
363 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class"> | ||
364 | <j2seproject1:jar manifest="${manifest.file}"/> | ||
365 | </target> | ||
366 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> | ||
367 | <j2seproject1:jar manifest="${manifest.file}"> | ||
368 | <j2seproject1:manifest> | ||
369 | <j2seproject1:attribute name="Main-Class" value="${main.class}"/> | ||
370 | </j2seproject1:manifest> | ||
371 | </j2seproject1:jar> | ||
372 | <echo>To run this application from the command line without Ant, try:</echo> | ||
373 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | ||
374 | <property location="${dist.jar}" name="dist.jar.resolved"/> | ||
375 | <pathconvert property="run.classpath.with.dist.jar"> | ||
376 | <path path="${run.classpath}"/> | ||
377 | <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> | ||
378 | </pathconvert> | ||
379 | <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> | ||
380 | </target> | ||
381 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries"> | ||
382 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | ||
383 | <pathconvert property="run.classpath.without.build.classes.dir"> | ||
384 | <path path="${run.classpath}"/> | ||
385 | <map from="${build.classes.dir.resolved}" to=""/> | ||
386 | </pathconvert> | ||
387 | <pathconvert pathsep=" " property="jar.classpath"> | ||
388 | <path path="${run.classpath.without.build.classes.dir}"/> | ||
389 | <chainedmapper> | ||
390 | <flattenmapper/> | ||
391 | <globmapper from="*" to="lib/*"/> | ||
392 | </chainedmapper> | ||
393 | </pathconvert> | ||
394 | <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | ||
395 | <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | ||
396 | <fileset dir="${build.classes.dir}"/> | ||
397 | <manifest> | ||
398 | <attribute name="Main-Class" value="${main.class}"/> | ||
399 | <attribute name="Class-Path" value="${jar.classpath}"/> | ||
400 | </manifest> | ||
401 | </copylibs> | ||
402 | <echo>To run this application from the command line without Ant, try:</echo> | ||
403 | <property location="${dist.jar}" name="dist.jar.resolved"/> | ||
404 | <echo>java -jar "${dist.jar.resolved}"</echo> | ||
405 | </target> | ||
406 | <target name="-post-jar"> | ||
407 | <!-- Empty placeholder for easier customization. --> | ||
408 | <!-- You can override this target in the ../build.xml file. --> | ||
409 | </target> | ||
410 | <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/> | ||
411 | <!-- | ||
412 | ================= | ||
413 | EXECUTION SECTION | ||
414 | ================= | ||
415 | --> | ||
416 | <target depends="init,compile" description="Run a main class." name="run"> | ||
417 | <j2seproject1:java> | ||
418 | <customize> | ||
419 | <arg line="${application.args}"/> | ||
420 | </customize> | ||
421 | </j2seproject1:java> | ||
422 | </target> | ||
423 | <target name="-do-not-recompile"> | ||
424 | <property name="javac.includes.binary" value=""/> | ||
425 | </target> | ||
426 | <target depends="init,-do-not-recompile,compile-single" name="run-single"> | ||
427 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | ||
428 | <j2seproject1:java classname="${run.class}"/> | ||
429 | </target> | ||
430 | <!-- | ||
431 | ================= | ||
432 | DEBUGGING SECTION | ||
433 | ================= | ||
434 | --> | ||
435 | <target depends="init" if="netbeans.home" name="-debug-start-debugger"> | ||
436 | <j2seproject1:nbjpdastart name="${debug.class}"/> | ||
437 | </target> | ||
438 | <target depends="init,compile" name="-debug-start-debuggee"> | ||
439 | <j2seproject3:debug> | ||
440 | <customize> | ||
441 | <arg line="${application.args}"/> | ||
442 | </customize> | ||
443 | </j2seproject3:debug> | ||
444 | </target> | ||
445 | <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> | ||
446 | <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> | ||
447 | <j2seproject1:nbjpdastart stopclassname="${main.class}"/> | ||
448 | </target> | ||
449 | <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> | ||
450 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> | ||
451 | <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | ||
452 | <j2seproject3:debug classname="${debug.class}"/> | ||
453 | </target> | ||
454 | <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> | ||
455 | <target depends="init" name="-pre-debug-fix"> | ||
456 | <fail unless="fix.includes">Must set fix.includes</fail> | ||
457 | <property name="javac.includes" value="${fix.includes}.java"/> | ||
458 | </target> | ||
459 | <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> | ||
460 | <j2seproject1:nbjpdareload/> | ||
461 | </target> | ||
462 | <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> | ||
463 | <!-- | ||
464 | =============== | ||
465 | JAVADOC SECTION | ||
466 | =============== | ||
467 | --> | ||
468 | <target depends="init" name="-javadoc-build"> | ||
469 | <mkdir dir="${dist.javadoc.dir}"/> | ||
470 | <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}"> | ||
471 | <classpath> | ||
472 | <path path="${javac.classpath}"/> | ||
473 | </classpath> | ||
474 | <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | ||
475 | <filename name="**/*.java"/> | ||
476 | </fileset> | ||
477 | </javadoc> | ||
478 | </target> | ||
479 | <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> | ||
480 | <nbbrowse file="${dist.javadoc.dir}/index.html"/> | ||
481 | </target> | ||
482 | <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> | ||
483 | <!-- | ||
484 | ========================= | ||
485 | JUNIT COMPILATION SECTION | ||
486 | ========================= | ||
487 | --> | ||
488 | <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> | ||
489 | <mkdir dir="${build.test.classes.dir}"/> | ||
490 | </target> | ||
491 | <target name="-pre-compile-test"> | ||
492 | <!-- Empty placeholder for easier customization. --> | ||
493 | <!-- You can override this target in the ../build.xml file. --> | ||
494 | </target> | ||
495 | <target if="do.depend.true" name="-compile-test-depend"> | ||
496 | <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | ||
497 | </target> | ||
498 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> | ||
499 | <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | ||
500 | <copy todir="${build.test.classes.dir}"> | ||
501 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | ||
502 | </copy> | ||
503 | </target> | ||
504 | <target name="-post-compile-test"> | ||
505 | <!-- Empty placeholder for easier customization. --> | ||
506 | <!-- You can override this target in the ../build.xml file. --> | ||
507 | </target> | ||
508 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> | ||
509 | <target name="-pre-compile-test-single"> | ||
510 | <!-- Empty placeholder for easier customization. --> | ||
511 | <!-- You can override this target in the ../build.xml file. --> | ||
512 | </target> | ||
513 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> | ||
514 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | ||
515 | <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> | ||
516 | <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/> | ||
517 | <copy todir="${build.test.classes.dir}"> | ||
518 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | ||
519 | </copy> | ||
520 | </target> | ||
521 | <target name="-post-compile-test-single"> | ||
522 | <!-- Empty placeholder for easier customization. --> | ||
523 | <!-- You can override this target in the ../build.xml file. --> | ||
524 | </target> | ||
525 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> | ||
526 | <!-- | ||
527 | ======================= | ||
528 | JUNIT EXECUTION SECTION | ||
529 | ======================= | ||
530 | --> | ||
531 | <target depends="init" if="have.tests" name="-pre-test-run"> | ||
532 | <mkdir dir="${build.test.results.dir}"/> | ||
533 | </target> | ||
534 | <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> | ||
535 | <j2seproject3:junit testincludes="**/*Test.java"/> | ||
536 | </target> | ||
537 | <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> | ||
538 | <fail if="tests.failed">Some tests failed; see details above.</fail> | ||
539 | </target> | ||
540 | <target depends="init" if="have.tests" name="test-report"/> | ||
541 | <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> | ||
542 | <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> | ||
543 | <target depends="init" if="have.tests" name="-pre-test-run-single"> | ||
544 | <mkdir dir="${build.test.results.dir}"/> | ||
545 | </target> | ||
546 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> | ||
547 | <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> | ||
548 | <j2seproject3:junit excludes="" includes="${test.includes}"/> | ||
549 | </target> | ||
550 | <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> | ||
551 | <fail if="tests.failed">Some tests failed; see details above.</fail> | ||
552 | </target> | ||
553 | <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/> | ||
554 | <!-- | ||
555 | ======================= | ||
556 | JUNIT DEBUGGING SECTION | ||
557 | ======================= | ||
558 | --> | ||
559 | <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> | ||
560 | <fail unless="test.class">Must select one file in the IDE or set test.class</fail> | ||
561 | <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> | ||
562 | <delete file="${test.report.file}"/> | ||
563 | <mkdir dir="${build.test.results.dir}"/> | ||
564 | <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}"> | ||
565 | <customize> | ||
566 | <syspropertyset> | ||
567 | <propertyref prefix="test-sys-prop."/> | ||
568 | <mapper from="test-sys-prop.*" to="*" type="glob"/> | ||
569 | </syspropertyset> | ||
570 | <arg value="${test.class}"/> | ||
571 | <arg value="showoutput=true"/> | ||
572 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> | ||
573 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> | ||
574 | </customize> | ||
575 | </j2seproject3:debug> | ||
576 | </target> | ||
577 | <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> | ||
578 | <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> | ||
579 | </target> | ||
580 | <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> | ||
581 | <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> | ||
582 | <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> | ||
583 | </target> | ||
584 | <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> | ||
585 | <!-- | ||
586 | ========================= | ||
587 | APPLET EXECUTION SECTION | ||
588 | ========================= | ||
589 | --> | ||
590 | <target depends="init,compile-single" name="run-applet"> | ||
591 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | ||
592 | <j2seproject1:java classname="sun.applet.AppletViewer"> | ||
593 | <customize> | ||
594 | <arg value="${applet.url}"/> | ||
595 | </customize> | ||
596 | </j2seproject1:java> | ||
597 | </target> | ||
598 | <!-- | ||
599 | ========================= | ||
600 | APPLET DEBUGGING SECTION | ||
601 | ========================= | ||
602 | --> | ||
603 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> | ||
604 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | ||
605 | <j2seproject3:debug classname="sun.applet.AppletViewer"> | ||
606 | <customize> | ||
607 | <arg value="${applet.url}"/> | ||
608 | </customize> | ||
609 | </j2seproject3:debug> | ||
610 | </target> | ||
611 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> | ||
612 | <!-- | ||
613 | =============== | ||
614 | CLEANUP SECTION | ||
615 | =============== | ||
616 | --> | ||
617 | <target depends="init" name="deps-clean" unless="no.deps"/> | ||
618 | <target depends="init" name="-do-clean"> | ||
619 | <delete dir="${build.dir}"/> | ||
620 | <delete dir="${dist.dir}"/> | ||
621 | </target> | ||
622 | <target name="-post-clean"> | ||
623 | <!-- Empty placeholder for easier customization. --> | ||
624 | <!-- You can override this target in the ../build.xml file. --> | ||
625 | </target> | ||
626 | <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> | ||
627 | </project> | ||
diff --git a/update/plugin/svn/trunk/nbproject/genfiles.properties b/update/plugin/svn/trunk/nbproject/genfiles.properties new file mode 100644 index 0000000..1012552 --- /dev/null +++ b/update/plugin/svn/trunk/nbproject/genfiles.properties | |||
@@ -0,0 +1,8 @@ | |||
1 | build.xml.data.CRC32=a07c171d | ||
2 | build.xml.script.CRC32=10186d9c | ||
3 | build.xml.stylesheet.CRC32=be360661 | ||
4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. | ||
5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. | ||
6 | nbproject/build-impl.xml.data.CRC32=a07c171d | ||
7 | nbproject/build-impl.xml.script.CRC32=b31666c6 | ||
8 | nbproject/build-impl.xml.stylesheet.CRC32=f1d9da08 | ||
diff --git a/update/plugin/svn/trunk/nbproject/project.properties b/update/plugin/svn/trunk/nbproject/project.properties new file mode 100644 index 0000000..77bb3db --- /dev/null +++ b/update/plugin/svn/trunk/nbproject/project.properties | |||
@@ -0,0 +1,59 @@ | |||
1 | build.classes.dir=${build.dir}/classes | ||
2 | build.classes.excludes=**/*.java,**/*.form | ||
3 | # This directory is removed when the project is cleaned: | ||
4 | build.dir=build | ||
5 | build.generated.dir=${build.dir}/generated | ||
6 | # Only compile against the classpath explicitly listed here: | ||
7 | build.sysclasspath=ignore | ||
8 | build.test.classes.dir=${build.dir}/test/classes | ||
9 | build.test.results.dir=${build.dir}/test/results | ||
10 | debug.classpath=\ | ||
11 | ${run.classpath} | ||
12 | debug.test.classpath=\ | ||
13 | ${run.test.classpath} | ||
14 | # This directory is removed when the project is cleaned: | ||
15 | dist.dir=dist | ||
16 | dist.jar=${dist.dir}/InstaDiscUpdateSVN.jar | ||
17 | dist.javadoc.dir=${dist.dir}/javadoc | ||
18 | excludes= | ||
19 | includes=** | ||
20 | jar.compress=false | ||
21 | javac.classpath= | ||
22 | # Space-separated list of extra javac options | ||
23 | javac.compilerargs= | ||
24 | javac.deprecation=false | ||
25 | javac.source=1.5 | ||
26 | javac.target=1.5 | ||
27 | javac.test.classpath=\ | ||
28 | ${javac.classpath}:\ | ||
29 | ${build.classes.dir}:\ | ||
30 | ${libs.junit.classpath}:\ | ||
31 | ${libs.junit_4.classpath} | ||
32 | javadoc.additionalparam= | ||
33 | javadoc.author=false | ||
34 | javadoc.encoding=${source.encoding} | ||
35 | javadoc.noindex=false | ||
36 | javadoc.nonavbar=false | ||
37 | javadoc.notree=false | ||
38 | javadoc.private=false | ||
39 | javadoc.splitindex=true | ||
40 | javadoc.use=true | ||
41 | javadoc.version=false | ||
42 | javadoc.windowtitle= | ||
43 | main.class=com.fourisland.instadisc.update.svn.Main | ||
44 | manifest.file=manifest.mf | ||
45 | meta.inf.dir=${src.dir}/META-INF | ||
46 | platform.active=default_platform | ||
47 | run.classpath=\ | ||
48 | ${javac.classpath}:\ | ||
49 | ${build.classes.dir} | ||
50 | # Space-separated list of JVM arguments used when running the project | ||
51 | # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value | ||
52 | # or test-sys-prop.name=value to set system properties for unit tests): | ||
53 | run.jvmargs= | ||
54 | run.test.classpath=\ | ||
55 | ${javac.test.classpath}:\ | ||
56 | ${build.test.classes.dir} | ||
57 | source.encoding=UTF-8 | ||
58 | src.dir=src | ||
59 | test.src.dir=test | ||
diff --git a/update/plugin/svn/trunk/nbproject/project.xml b/update/plugin/svn/trunk/nbproject/project.xml new file mode 100644 index 0000000..1a38c15 --- /dev/null +++ b/update/plugin/svn/trunk/nbproject/project.xml | |||
@@ -0,0 +1,16 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <project xmlns="http://www.netbeans.org/ns/project/1"> | ||
3 | <type>org.netbeans.modules.java.j2seproject</type> | ||
4 | <configuration> | ||
5 | <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> | ||
6 | <name>InstaDiscUpdateSVN</name> | ||
7 | <minimum-ant-version>1.6.5</minimum-ant-version> | ||
8 | <source-roots> | ||
9 | <root id="src.dir"/> | ||
10 | </source-roots> | ||
11 | <test-roots> | ||
12 | <root id="test.src.dir"/> | ||
13 | </test-roots> | ||
14 | </data> | ||
15 | </configuration> | ||
16 | </project> | ||
diff --git a/update/plugin/svn/trunk/src/com/fourisland/instadisc/update/svn/Main.java b/update/plugin/svn/trunk/src/com/fourisland/instadisc/update/svn/Main.java new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/update/plugin/svn/trunk/src/com/fourisland/instadisc/update/svn/Main.java | |||