Browse Source

Probably fixes issue 0003520: Unit tests run on renji don't use plugin libs

Change-Id: I178b3bd2d6197b3f77ae2fd941f1148098585861
Reviewed-on: http://gerrit.dmdirc.com/503
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.3b1
Shane Mc Cormack 14 years ago
parent
commit
7761753b26
2 changed files with 15 additions and 10 deletions
  1. 9
    3
      nbproject/build-impl.xml
  2. 6
    7
      nbproject/project.properties

+ 9
- 3
nbproject/build-impl.xml View File

@@ -34,9 +34,6 @@ is divided into following sections:
34 34
         <!-- You can override this target in the ../build.xml file. -->
35 35
     </target>
36 36
     <target depends="-pre-init" name="-init-private">
37
-        <!-- Try to set this property only after -pre-init has been called. -->
38
-        <property name="plugins.libs.path" value="${toString:plugins.libs}" />
39
-
40 37
         <property file="nbproject/private/config.properties"/>
41 38
         <property file="nbproject/private/configs/${config}.properties"/>
42 39
         <property file="nbproject/private/private.properties"/>
@@ -163,6 +160,7 @@ is divided into following sections:
163 160
             <element name="customize" optional="true"/>
164 161
             <sequential>
165 162
                 <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}">
163
+                    <classpath refid="plugins.libs"/>
166 164
                     <classpath>
167 165
                         <path path="@{classpath}"/>
168 166
                     </classpath>
@@ -180,6 +178,7 @@ is divided into following sections:
180 178
                     <classpath>
181 179
                         <path path="@{classpath}"/>
182 180
                     </classpath>
181
+                    <classpath refid="plugins.libs"/>
183 182
                 </depend>
184 183
             </sequential>
185 184
         </macrodef>
@@ -212,6 +211,7 @@ is divided into following sections:
212 211
                     <classpath>
213 212
                         <pathelement path="${clover.jar}"/>
214 213
                     </classpath>
214
+                    <classpath refid="plugins.libs"/>
215 215
                     <batchtest todir="${build.test.results.dir}">
216 216
                         <clover-optimized-testset>
217 217
                             <fileset dir="${main.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
@@ -260,6 +260,7 @@ is divided into following sections:
260 260
                     <classpath>
261 261
                         <pathelement path="${clover.jar}"/>
262 262
                     </classpath>
263
+                    <classpath refid="plugins.libs"/>
263 264
                     <batchtest todir="${build.test.results.dir}">
264 265
                         <fileset dir="${main.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
265 266
                             <filename name="@{testincludes}"/>
@@ -296,6 +297,7 @@ is divided into following sections:
296 297
                     <classpath>
297 298
                         <path path="@{classpath}"/>
298 299
                     </classpath>
300
+                    <classpath refid="plugins.libs"/>
299 301
                 </nbjpdastart>
300 302
             </sequential>
301 303
         </macrodef>
@@ -329,6 +331,7 @@ is divided into following sections:
329 331
             <element name="customize" optional="true"/>
330 332
             <sequential>
331 333
                 <java classname="@{classname}" dir="${work.dir}" fork="true">
334
+                    <classpath refid="plugins.libs"/>
332 335
                     <jvmarg line="${debug-args-line}"/>
333 336
                     <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
334 337
                     <jvmarg line="${run.jvmargs}"/>
@@ -350,6 +353,7 @@ is divided into following sections:
350 353
             <element name="customize" optional="true"/>
351 354
             <sequential>
352 355
                 <java classname="@{classname}" dir="${work.dir}" fork="true">
356
+                    <classpath refid="plugins.libs"/>
353 357
                     <jvmarg line="${run.jvmargs}"/>
354 358
                     <classpath>
355 359
                         <path path="${run.classpath}"/>
@@ -541,6 +545,7 @@ is divided into following sections:
541 545
             <classpath>
542 546
                 <path path="${javac.classpath}"/>
543 547
             </classpath>
548
+            <classpath refid="plugins.libs"/>
544 549
             <fileset dir="${main.src.dir}" excludes="${excludes}" includes="${includes}">
545 550
                 <filename name="**/*.java"/>
546 551
             </fileset>
@@ -569,6 +574,7 @@ is divided into following sections:
569 574
             <classpath>
570 575
                 <path path="${javac.classpath}"/>
571 576
             </classpath>
577
+            <classpath refid="plugins.libs"/>
572 578
         </javadoc>
573 579
     </target>
574 580
 

+ 6
- 7
nbproject/project.properties View File

@@ -60,17 +60,16 @@ parser.test.dir=modules/parser/test
60 60
 plugins.test.dir=modules/plugins/test
61 61
 
62 62
 # Classpaths
63
-# ${plugins.libs.path} generates at compile-time a string containing all
64
-# the plugin jars.
65
-# However netbeans fails miserably at understanding this in  the IDE, so we
63
+# The plugin libraries are automatically added at compile time by the javac
64
+# task.
65
+# However netbeans fails miserably at understanding this in the IDE, so we
66 66
 # have the private.classpath variable that can be defined by the user in
67 67
 # private.properties that contains any jars they need to satisfy netbeans
68 68
 # suckiness.
69 69
 # Without this parameter, everything will still compile, but netbeans won't
70
-# know about any files it isn't explicitly told about.
71
-javac.classpath=\
72
-    ${private.classpath}:\
73
-    ${plugins.libs.path}
70
+# know about any files it isn't explicitly told about, and will show code as
71
+# errors.
72
+javac.classpath=${private.classpath}
74 73
 javac.test.classpath=\
75 74
     ${javac.classpath}:\
76 75
     ${build.classes.dir}:\

Loading…
Cancel
Save