|
@@ -14,12 +14,12 @@
|
14
|
14
|
<taskdef resource="net/sf/fikin/ant/ant.properties" classpathref="libclasspath"/>
|
15
|
15
|
<taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="libclasspath"/>
|
16
|
16
|
</target>
|
17
|
|
-
|
|
17
|
+
|
18
|
18
|
<target name="-create-private-properties" unless="private.properties.exists">
|
19
|
19
|
<mkdir dir="nbproject/private"/>
|
20
|
20
|
<echo file="nbproject/private/private.properties"/>
|
21
|
21
|
</target>
|
22
|
|
-
|
|
22
|
+
|
23
|
23
|
<target name="-check-private-classpath">
|
24
|
24
|
<loadfile property="private.properties.old" srcFile="nbproject/private/private.properties"/>
|
25
|
25
|
<condition property="private.properties.needsinsert">
|
|
@@ -28,14 +28,19 @@
|
28
|
28
|
</not>
|
29
|
29
|
</condition>
|
30
|
30
|
</target>
|
31
|
|
-
|
|
31
|
+
|
32
|
32
|
<target name="-create-private-classpath" if="private.properties.needsinsert">
|
33
|
33
|
<echo append="true" file="nbproject/private/private.properties">${line.separator}private.classpath=${line.separator}</echo>
|
34
|
34
|
</target>
|
35
|
35
|
|
36
|
36
|
<target name="-init-private-properties" depends="-init-properties,-create-private-properties,-check-private-classpath,-create-private-classpath">
|
|
37
|
+ <path id="all.libs">
|
|
38
|
+ <fileset dir="modules" includes="*/lib/*.jar"/>
|
|
39
|
+ <fileset dir="lib" includes="*.jar"/>
|
|
40
|
+ </path>
|
|
41
|
+
|
37
|
42
|
<propertyregex property="private.classpath.value" input="${toString:all.libs}" regexp="\\" replace="/" global="true" defaultValue="${toString:all.libs}"/>
|
38
|
43
|
<replaceregexp file="nbproject/private/private.properties" match="^private.classpath=(.*)$" flags="im" replace="private.classpath=${private.classpath.value}"/>
|
39
|
44
|
</target>
|
40
|
|
-
|
|
45
|
+
|
41
|
46
|
</project>
|