C
Christopher Ho
Hi all,
I have a build script which uses <fileset> nested in <path> to store
the classpath and then this <path> is used in javac. e.g.
<path id="MY_CLASSPATH">
<fileset dir="${build.dir.lib}" includes="**/*.*"/>
<fileset file="${global.lib.j2ee}"/>
</path>
<javac
srcdir = "${project.compile.src}"
destdir = "${project.compile.dest}">
<classpath>
<path refid="MY_CLASSPATH"/>
</classpath>
</javac>
I just wondering is it possible to store the fileset in the properties
file so that I can reference it in other place? I want to do a fileset
instead of writing all the jar file names explicitly.
e.g.
In the properties file:
project.compile.classpath=dir:${build.dir.lib}:file:${global.lib.j2ee}
(or something like that....)
then in my build.xml:
<javac
srcdir = "${project.compile.src}"
destdir = "${project.compile.dest}">
classpath = "${project.compile.classpath}">
</javac>
I have a build script which uses <fileset> nested in <path> to store
the classpath and then this <path> is used in javac. e.g.
<path id="MY_CLASSPATH">
<fileset dir="${build.dir.lib}" includes="**/*.*"/>
<fileset file="${global.lib.j2ee}"/>
</path>
<javac
srcdir = "${project.compile.src}"
destdir = "${project.compile.dest}">
<classpath>
<path refid="MY_CLASSPATH"/>
</classpath>
</javac>
I just wondering is it possible to store the fileset in the properties
file so that I can reference it in other place? I want to do a fileset
instead of writing all the jar file names explicitly.
e.g.
In the properties file:
project.compile.classpath=dir:${build.dir.lib}:file:${global.lib.j2ee}
(or something like that....)
then in my build.xml:
<javac
srcdir = "${project.compile.src}"
destdir = "${project.compile.dest}">
classpath = "${project.compile.classpath}">
</javac>