Myrna van Lunteren wrote:
Just to make sure I can continue to work as I have been; I have no
desire to let my environment be set to a standard setup.
I have been using my own name and directory locations for the (ibm
*and* sun) jvms, much shorter than the default names, and I like/need
to be able to switch around at will, and the automation put in place
so far doesn't work for me.
Please confirm that dontAutosetProps will remain in place?
Myrna,
I won't remove it. According to the item list Rick wrote, there will be
a poll before anything is removed and he indicated there were wrinkles
left that needed to be straightened out.
That said, I'm still having trouble understanding what doesn't work. Can
you help me understand?
For instance, I can compile Derby with the following ant.properties,
using non-standard directories:
$ cat ~/ant.properties
j15lib=/private/kw160128/tmp/vms/vm/jre/lib
j14lib=/private/kw160128/tmp/vms/o/jre/lib
jdk16=/usr/local/java/jdk1.6
$
The property setter yields the output I have attached at the bottom.
If I had very custom jar files (spread around in multipe dirs, not in
j1Xlib), and maybe a VM vender the property setter doesn't recognize, I
would specify java14compile.classpath, java15compile.classpath and
java16compile.classpath.
Now, there is at least one other pitfall, and that is if you are running
lower level ant targets. One example is "ant client". The dependencies
for this target does not include the compiler property setter task, and
thus you will have to do something manually for this to work.
Right now I can think of using one of these;
a) Set the java1Xcompile.classpath variables
b) Call the property setter; ant setCompilerProperties client
(for custom directories, I believe you still need j1Xlib variables
set manually)
c) Use higher-level targets
d) Introduce dependencies in the build scripts
Please note that I am not trying to force a change here, I just want to
bring out problems so we can fix them.
regards,
--
Kristian
setCompilerProperties:
[setJdkProperties] Setting property java14compile.classpath to
/private/kw160128
/tmp/vms/o/jre/lib/charsets.jar:/private/kw160128/tmp/vms/o/jre/lib/jce.jar:/pri
vate/kw160128/tmp/vms/o/jre/lib/jsse.jar:/private/kw160128/tmp/vms/o/jre/lib/plu
gin.jar:/private/kw160128/tmp/vms/o/jre/lib/rt.jar:/private/kw160128/tmp/vms/o/j
re/lib/sunrsasign.jar
[setJdkProperties] Setting property java15compile.classpath to
/private/kw160128
/tmp/vms/vm/jre/lib/charsets.jar:/private/kw160128/tmp/vms/vm/jre/lib/deploy.jar
:/private/kw160128/tmp/vms/vm/jre/lib/javaws.jar:/private/kw160128/tmp/vms/vm/jr
e/lib/jce.jar:/private/kw160128/tmp/vms/vm/jre/lib/jsse.jar:/private/kw160128/tm
p/vms/vm/jre/lib/plugin.jar:/private/kw160128/tmp/vms/vm/jre/lib/rt.jar
[setJdkProperties] Setting property java14compile.classpath to
/private/kw160128
/tmp/vms/o/jre/lib/charsets.jar:/private/kw160128/tmp/vms/o/jre/lib/jce.jar:/pri
vate/kw160128/tmp/vms/o/jre/lib/jsse.jar:/private/kw160128/tmp/vms/o/jre/lib/plu
gin.jar:/private/kw160128/tmp/vms/o/jre/lib/rt.jar:/private/kw160128/tmp/vms/o/j
re/lib/sunrsasign.jar
[setJdkProperties] Setting property java15compile.classpath to
/private/kw160128
/tmp/vms/vm/jre/lib/charsets.jar:/private/kw160128/tmp/vms/vm/jre/lib/deploy.jar
:/private/kw160128/tmp/vms/vm/jre/lib/javaws.jar:/private/kw160128/tmp/vms/vm/jr
e/lib/jce.jar:/private/kw160128/tmp/vms/vm/jre/lib/jsse.jar:/private/kw160128/tm
p/vms/vm/jre/lib/plugin.jar:/private/kw160128/tmp/vms/vm/jre/lib/rt.jar
Thx,
Myrna