Browse Source

Dynamic private.properties.

Fixes issue 0003653: Automatically generate private.classpath

Change-Id: Iffbd50307eaf82664f37edc6e1c0392509b9d262
Reviewed-on: http://gerrit.dmdirc.com/683
Automatic-Compile: Chris Smith <chris@dmdirc.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
tags/0.6.3b1
Shane Mc Cormack 14 years ago
parent
commit
65326e1473
2 changed files with 8 additions and 8 deletions
  1. 6
    2
      nbproject/build-impl.xml
  2. 2
    6
      nbproject/project.properties

+ 6
- 2
nbproject/build-impl.xml View File

@@ -38,6 +38,12 @@ is divided into following sections:
38 38
         <property file="nbproject/private/config.properties"/>
39 39
         <property file="nbproject/private/configs/${config}.properties"/>
40 40
         <property file="nbproject/private/private.properties"/>
41
+	<delete file="nbproject/private/dynamic.properties" />
42
+        <echo file="nbproject/private/dynamic.properties" append="true">&lt;!-- DO NOT EDIT THIS FILE, IT WILL BE OVERWRITTEN BY ANT --&gt;
43
+</echo>
44
+        <echo file="nbproject/private/dynamic.properties" append="true">private.classpath=${toString:plugins.libs}
45
+</echo>
46
+        <property file="nbproject/private/dynamic.properties"/>
41 47
     </target>
42 48
     <target depends="-pre-init,-init-private" name="-init-user">
43 49
         <property file="${user.properties.file}"/>
@@ -49,8 +55,6 @@ is divided into following sections:
49 55
     <target depends="-pre-init,-init-private,-init-user" name="-init-project">
50 56
         <property file="nbproject/configs/${config}.properties"/>
51 57
         <property file="nbproject/project.properties"/>
52
-        <echo message="For development purposes, adding a private.classpath value to nbproject/private/private.properties will stop netbeans complaining." />
53
-        <echo message="The value should (currently) be: ${toString:plugins.libs}" />
54 58
     </target>
55 59
     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
56 60
         <available file="${manifest.file}" property="manifest.available"/>

+ 2
- 6
nbproject/project.properties View File

@@ -66,12 +66,8 @@ util.test.dir=modules/util/test
66 66
 # The plugin libraries are automatically added at compile time by the javac
67 67
 # task.
68 68
 # However netbeans fails miserably at understanding this in the IDE, so we
69
-# have the private.classpath variable that can be defined by the user in
70
-# private.properties that contains any jars they need to satisfy netbeans
71
-# suckiness.
72
-# Without this parameter, everything will still compile, but netbeans won't
73
-# know about any files it isn't explicitly told about, and will show code as
74
-# errors.
69
+# have the private.classpath variable that will be updated in dynamic.propeties
70
+# automatically by ant.
75 71
 javac.classpath=${private.classpath}
76 72
 javac.test.classpath=\
77 73
     ${javac.classpath}:\

Loading…
Cancel
Save